You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

103 lines
2.8 KiB

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