[package] add startup script and sample uci configuration file (#5329)
[openwrt/svn-archive/archive.git] / net / btpd / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=btpd
4 PKG_VERSION:=0.13
5 PKG_RELEASE:=2
6
7 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
8 PKG_SOURCE_URL:=http://www.murmeldjur.se/btpd/
9 PRG_MD5SUM:=0d9c4a672eea6f298fa6e44d94da1657
10
11 include $(INCLUDE_DIR)/package.mk
12
13 define Package/btpd
14 SECTION:=net
15 CATEGORY:=Network
16 SUBMENU:=BitTorrent
17 TITLE:=btpd - BitTorrent Protocol Daemon
18 URL:=http://www.murmeldjur.se/btpd/
19 endef
20
21 define Package/btpd/description
22 BTPD is a bittorrent client consisting of a daemon and client commands,
23 which can be used to read and/or manipulate the daemon state.
24 The daemon is capable of running several torrents simultaneously and only uses one tcp port.
25 It's fairly low on resource usage and should be perfect for file distribution sites.
26 Efficient downloads and ease of use makes this client a good choice for the casual user as well.
27 endef
28
29 CONFIGURE_ARGS += -C
30
31 define Package/btpd/install
32 $(INSTALL_DIR) $(1)/usr/bin
33 $(INSTALL_BIN) $(PKG_BUILD_DIR)/btpd/btpd $(1)/usr/bin
34 $(INSTALL_BIN) $(PKG_BUILD_DIR)/cli/btcli $(1)/usr/bin
35 $(INSTALL_BIN) $(PKG_BUILD_DIR)/cli/btinfo $(1)/usr/bin
36 $(INSTALL_DIR) $(1)/etc/init.d
37 $(INSTALL_BIN) ./files/btpd.init $(1)/etc/init.d/btpd
38 $(INSTALL_DIR) $(1)/etc/config
39 $(INSTALL_CONF) ./files/btpd.config $(1)/etc/config/btpd
40 endef
41
42 $(eval $(call BuildPackage,btpd))