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.

102 lines
2.7 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_RELEASE:=$(AUTORELEASE)
  7. PKG_SOURCE_PROTO:=git
  8. PKG_SOURCE_URL:=https://erdgeist.org/gitweb/opentracker
  9. PKG_SOURCE_DATE:=2021-08-23
  10. PKG_SOURCE_VERSION:=110868ec4ebe60521d5a4ced63feca6a1cf0aa2a
  11. PKG_MIRROR_HASH:=02db684fa9b28952df4aa8de2a1d20ca840695b51103f0b6eb716a4ca370c5d7
  12. PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
  13. PKG_LICENSE:=Beerware
  14. PKG_BUILD_DEPENDS:=libowfat
  15. include $(INCLUDE_DIR)/package.mk
  16. define Package/opentracker/Default
  17. SUBMENU:=BitTorrent
  18. SECTION:=net
  19. CATEGORY:=Network
  20. TITLE:=opentracker
  21. URL:=http://erdgeist.org/arts/software/opentracker/
  22. DEPENDS:=+zlib +libpthread
  23. endef
  24. define Package/opentracker
  25. $(call Package/opentracker/Default)
  26. VARIANT:=ipv4
  27. endef
  28. define Package/opentracker6
  29. $(call Package/opentracker/Default)
  30. TITLE+= (IPv6 build)
  31. VARIANT:=ipv6
  32. endef
  33. define Package/opentracker-default/description
  34. opentracker - An open and free bittorrent tracker
  35. opentracker is an open and free bittorrent tracker project.
  36. It aims for minimal resource usage and is intended to run at your wlan router.
  37. Currently it is deployed as an open and free tracker instance.
  38. Read our free and open tracker blog and announce your torrents there
  39. (but do not hesitate to setup your own free trackers!).
  40. endef
  41. define Package/opentracker/description
  42. $(call Package/opentracker-default/description)
  43. This package contains the IPv4-build of opentracker.
  44. endef
  45. define Package/opentracker6/description
  46. $(call Package/opentracker-default/description)
  47. This package contains the IPv6-build of opentracker.
  48. endef
  49. MAKE_FLAGS += PREFIX="$(STAGING_DIR)/usr"
  50. ifeq ($(BUILD_VARIANT),ipv6)
  51. MAKE_FLAGS += FEATURES="-DWANT_V6"
  52. endif
  53. define Package/opentracker/conffiles
  54. /etc/opentracker.conf
  55. endef
  56. define Package/opentracker6/conffiles
  57. /etc/opentracker6.conf
  58. endef
  59. define Package/opentracker/install
  60. $(INSTALL_DIR) $(1)/usr/bin
  61. $(INSTALL_BIN) $(PKG_BUILD_DIR)/opentracker $(1)/usr/bin
  62. $(INSTALL_DIR) $(1)/etc
  63. $(INSTALL_CONF) $(PKG_BUILD_DIR)/opentracker.conf.sample $(1)/etc/opentracker.conf
  64. $(INSTALL_DIR) $(1)/etc/init.d
  65. $(INSTALL_BIN) ./files/opentracker.init $(1)/etc/init.d/opentracker
  66. endef
  67. define Package/opentracker6/install
  68. $(INSTALL_DIR) $(1)/usr/bin
  69. $(INSTALL_BIN) $(PKG_BUILD_DIR)/opentracker $(1)/usr/bin/opentracker6
  70. $(INSTALL_DIR) $(1)/etc
  71. $(INSTALL_CONF) $(PKG_BUILD_DIR)/opentracker.conf.sample $(1)/etc/opentracker6.conf
  72. $(INSTALL_DIR) $(1)/etc/init.d
  73. $(INSTALL_BIN) ./files/opentracker6.init $(1)/etc/init.d/opentracker6
  74. endef
  75. $(eval $(call BuildPackage,opentracker))
  76. $(eval $(call BuildPackage,opentracker6))