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.

104 lines
2.9 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:=20170428
  7. PKG_RELEASE:=1
  8. PKG_REV:=9c7be324f5a4306dd81eab2f982f87e2c42ffdf1
  9. PKG_MIRROR_HASH:=fda6098a9bdf080c852c5b513ada67d065c1286ad3d4617c05f3a3d9ebb81536
  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. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/opentracker/Default
  21. SUBMENU:=BitTorrent
  22. SECTION:=net
  23. CATEGORY:=Network
  24. TITLE:=opentracker
  25. URL:=http://erdgeist.org/arts/software/opentracker/
  26. DEPENDS:=+zlib +libpthread
  27. endef
  28. define Package/opentracker
  29. $(call Package/opentracker/Default)
  30. VARIANT:=ipv4
  31. endef
  32. define Package/opentracker6
  33. $(call Package/opentracker/Default)
  34. TITLE+= (IPv6 build)
  35. VARIANT:=ipv6
  36. endef
  37. define Package/opentracker-default/description
  38. opentracker - An open and free bittorrent tracker
  39. opentracker is an open and free bittorrent tracker project.
  40. It aims for minimal resource usage and is intended to run at your wlan router.
  41. Currently it is deployed as an open and free tracker instance.
  42. Read our free and open tracker blog and announce your torrents there
  43. (but do not hesitate to setup your own free trackers!).
  44. endef
  45. define Package/opentracker/description
  46. $(call Package/opentracker-default/description)
  47. This package contains the IPv4-build of opentracker.
  48. endef
  49. define Package/opentracker6/description
  50. $(call Package/opentracker-default/description)
  51. This package contains the IPv6-build of opentracker.
  52. endef
  53. MAKE_FLAGS += PREFIX="$(STAGING_DIR)/usr"
  54. ifeq ($(BUILD_VARIANT),ipv6)
  55. MAKE_FLAGS += FEATURES="-DWANT_V6"
  56. endif
  57. define Package/opentracker/conffiles
  58. /etc/opentracker.conf
  59. endef
  60. define Package/opentracker6/conffiles
  61. /etc/opentracker6.conf
  62. endef
  63. define Package/opentracker/install
  64. $(INSTALL_DIR) $(1)/usr/bin
  65. $(INSTALL_BIN) $(PKG_BUILD_DIR)/opentracker $(1)/usr/bin
  66. $(INSTALL_DIR) $(1)/etc
  67. $(INSTALL_CONF) $(PKG_BUILD_DIR)/opentracker.conf.sample $(1)/etc/opentracker.conf
  68. $(INSTALL_DIR) $(1)/etc/init.d
  69. $(INSTALL_BIN) ./files/opentracker.init $(1)/etc/init.d/opentracker
  70. endef
  71. define Package/opentracker6/install
  72. $(INSTALL_DIR) $(1)/usr/bin
  73. $(INSTALL_BIN) $(PKG_BUILD_DIR)/opentracker $(1)/usr/bin/opentracker6
  74. $(INSTALL_DIR) $(1)/etc
  75. $(INSTALL_CONF) $(PKG_BUILD_DIR)/opentracker.conf.sample $(1)/etc/opentracker6.conf
  76. $(INSTALL_DIR) $(1)/etc/init.d
  77. $(INSTALL_BIN) ./files/opentracker6.init $(1)/etc/init.d/opentracker6
  78. endef
  79. $(eval $(call BuildPackage,opentracker))
  80. $(eval $(call BuildPackage,opentracker6))