source: packages/net/btpd/Makefile @ 29055

Last change on this file since 29055 was 29055, checked in by nico, 5 years ago

packages/btpd: use new service functions

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