1 # This is free software, licensed under the GNU General Public License v2.
2 # See /LICENSE for more information.
5 include $(TOPDIR
)/rules.mk
10 PKG_REV
:=9c7be324f5a4306dd81eab2f982f87e2c42ffdf1
11 PKG_MIRROR_HASH
:=fda6098a9bdf080c852c5b513ada67d065c1286ad3d4617c05f3a3d9ebb81536
12 PKG_MAINTAINER
:=Daniel Golle
<daniel@makrotopia.org
>
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
)
20 PKG_BUILD_DEPENDS
:=libowfat
21 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(BUILD_VARIANT
)/$(PKG_NAME
)-$(PKG_VERSION
)
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/opentracker
/Default
30 URL
:=http
://erdgeist.org
/arts
/software
/opentracker
/
31 DEPENDS
:=+zlib
+libpthread
34 define Package
/opentracker
35 $(call Package
/opentracker
/Default
)
39 define Package
/opentracker6
40 $(call Package
/opentracker
/Default
)
46 define Package
/opentracker-default
/description
47 opentracker
- An open and free bittorrent tracker
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
!).
56 define Package
/opentracker
/description
57 $(call Package
/opentracker-default
/description
)
59 This package contains the IPv4-build of opentracker.
63 define Package
/opentracker6
/description
64 $(call Package
/opentracker-default
/description
)
66 This package contains the IPv6-build of opentracker.
71 MAKE_FLAGS
+= PREFIX
="$(STAGING_DIR)/usr"
73 ifeq ($(BUILD_VARIANT
),ipv6
)
74 MAKE_FLAGS
+= FEATURES
="-DWANT_V6"
77 define Package
/opentracker
/conffiles
81 define Package
/opentracker6
/conffiles
82 /etc
/opentracker6.conf
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
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
103 $(eval
$(call BuildPackage
,opentracker
))
104 $(eval
$(call BuildPackage
,opentracker6
))