Merge pull request #4485 from pprindeville/php7-enable-snmp
[feed/packages.git] / net / opentracker / Makefile
1 # This is free software, licensed under the GNU General Public License v2.
2 # See /LICENSE for more information.
3 #
4
5 include $(TOPDIR)/rules.mk
6
7 PKG_NAME:=opentracker
8 PKG_VERSION:=20170428
9 PKG_RELEASE:=1
10 PKG_REV:=9c7be324f5a4306dd81eab2f982f87e2c42ffdf1
11 PKG_MIRROR_HASH:=fda6098a9bdf080c852c5b513ada67d065c1286ad3d4617c05f3a3d9ebb81536
12 PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
13 PKG_LICENSE:=Beerware
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=git://erdgeist.org/opentracker
17 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
18 PKG_SOURCE_VERSION:=$(PKG_REV)
19 PKG_SOURCE_PROTO:=git
20 PKG_BUILD_DEPENDS:=libowfat
21 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/opentracker/Default
26 SUBMENU:=BitTorrent
27 SECTION:=net
28 CATEGORY:=Network
29 TITLE:=opentracker
30 URL:=http://erdgeist.org/arts/software/opentracker/
31 DEPENDS:=+zlib +libpthread
32 endef
33
34 define Package/opentracker
35 $(call Package/opentracker/Default)
36 VARIANT:=ipv4
37 endef
38
39 define Package/opentracker6
40 $(call Package/opentracker/Default)
41 TITLE+= (IPv6 build)
42 VARIANT:=ipv6
43 endef
44
45
46 define Package/opentracker-default/description
47 opentracker - An open and free bittorrent tracker
48
49 opentracker is an open and free bittorrent tracker project.
50 It aims for minimal resource usage and is intended to run at your wlan router.
51 Currently it is deployed as an open and free tracker instance.
52 Read our free and open tracker blog and announce your torrents there
53 (but do not hesitate to setup your own free trackers!).
54 endef
55
56 define Package/opentracker/description
57 $(call Package/opentracker-default/description)
58
59 This package contains the IPv4-build of opentracker.
60
61 endef
62
63 define Package/opentracker6/description
64 $(call Package/opentracker-default/description)
65
66 This package contains the IPv6-build of opentracker.
67
68 endef
69
70
71 MAKE_FLAGS += PREFIX="$(STAGING_DIR)/usr"
72
73 ifeq ($(BUILD_VARIANT),ipv6)
74 MAKE_FLAGS += FEATURES="-DWANT_V6"
75 endif
76
77 define Package/opentracker/conffiles
78 /etc/opentracker.conf
79 endef
80
81 define Package/opentracker6/conffiles
82 /etc/opentracker6.conf
83 endef
84
85 define Package/opentracker/install
86 $(INSTALL_DIR) $(1)/usr/bin
87 $(INSTALL_BIN) $(PKG_BUILD_DIR)/opentracker $(1)/usr/bin
88 $(INSTALL_DIR) $(1)/etc
89 $(INSTALL_CONF) $(PKG_BUILD_DIR)/opentracker.conf.sample $(1)/etc/opentracker.conf
90 $(INSTALL_DIR) $(1)/etc/init.d
91 $(INSTALL_BIN) ./files/opentracker.init $(1)/etc/init.d/opentracker
92 endef
93
94 define Package/opentracker6/install
95 $(INSTALL_DIR) $(1)/usr/bin
96 $(INSTALL_BIN) $(PKG_BUILD_DIR)/opentracker $(1)/usr/bin/opentracker6
97 $(INSTALL_DIR) $(1)/etc
98 $(INSTALL_CONF) $(PKG_BUILD_DIR)/opentracker.conf.sample $(1)/etc/opentracker6.conf
99 $(INSTALL_DIR) $(1)/etc/init.d
100 $(INSTALL_BIN) ./files/opentracker6.init $(1)/etc/init.d/opentracker6
101 endef
102
103 $(eval $(call BuildPackage,opentracker))
104 $(eval $(call BuildPackage,opentracker6))