[packages] btpd: update to 0.16
[openwrt/svn-archive/archive.git] / net / btpd / Makefile
1 #
2 # Copyright (C) 2009-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=btpd
11 PKG_VERSION:=0.16
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://github.com/downloads/btpd/btpd
16 PKG_MD5SUM:=fe042aae8d7c515ecd855673d1c2b33e
17
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/btpd
23 SECTION:=net
24 CATEGORY:=Network
25 DEPENDS:=+libpthread
26 SUBMENU:=BitTorrent
27 TITLE:=btpd - BitTorrent Protocol Daemon
28 URL:=https://github.com/btpd/btpd/wiki/
29 endef
30
31 define Package/btpd/description
32 BTPD is a bittorrent client consisting of a daemon and client commands,
33 which can be used to read and/or manipulate the daemon state.
34 The daemon is capable of running several torrents simultaneously and only uses one tcp port.
35 It's fairly low on resource usage and should be perfect for file distribution sites.
36 Efficient downloads and ease of use makes this client a good choice for the casual user as well.
37 endef
38
39 define Package/btpd/conffiles
40 /etc/config/btpd
41 endef
42
43 CONFIGURE_ARGS += -C --with-evloop-method=poll
44
45 define Package/btpd/install
46 $(INSTALL_DIR) $(1)/usr/bin
47 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/bt{cli,info,pd} $(1)/usr/bin/
48 $(INSTALL_DIR) $(1)/etc/init.d
49 $(INSTALL_BIN) ./files/btpd.init $(1)/etc/init.d/btpd
50 $(INSTALL_DIR) $(1)/etc/config
51 $(INSTALL_CONF) ./files/btpd.config $(1)/etc/config/btpd
52 endef
53
54 $(eval $(call BuildPackage,btpd))