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.

98 lines
2.7 KiB

  1. #
  2. # Copyright (C) 2006-2014 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=opentracker
  9. PKG_VERSION:=20150427
  10. PKG_RELEASE:=1
  11. PKG_REV:=27499d7a55bde404f3273a23026f2495e96adf87
  12. PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
  13. PKG_LICENSE:=Beerware
  14. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  15. PKG_SOURCE_URL:=git://erdgeist.org/opentracker
  16. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  17. PKG_SOURCE_VERSION:=$(PKG_REV)
  18. PKG_SOURCE_PROTO:=git
  19. PKG_BUILD_DEPENDS:=libowfat
  20. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/opentracker/Default
  23. SUBMENU:=BitTorrent
  24. SECTION:=net
  25. CATEGORY:=Network
  26. TITLE:=opentracker
  27. URL:=http://erdgeist.org/arts/software/opentracker/
  28. DEPENDS:=+zlib +libpthread
  29. endef
  30. define Package/opentracker
  31. $(call Package/opentracker/Default)
  32. VARIANT:=ipv4
  33. endef
  34. define Package/opentracker6
  35. $(call Package/opentracker/Default)
  36. TITLE+= (IPv6 build)
  37. VARIANT:=ipv6
  38. endef
  39. define Package/opentracker-default/description
  40. opentracker - An open and free bittorrent tracker
  41. opentracker is an open and free bittorrent tracker project.
  42. It aims for minimal resource usage and is intended to run at your wlan router.
  43. Currently it is deployed as an open and free tracker instance.
  44. Read our free and open tracker blog and announce your torrents there
  45. (but do not hesitate to setup your own free trackers!).
  46. endef
  47. define Package/opentracker/description
  48. $(call Package/opentracker-default/description)
  49. This package contains the IPv4-build of opentracker.
  50. endef
  51. define Package/opentracker6/description
  52. $(call Package/opentracker-default/description)
  53. This package contains the IPv6-build of opentracker.
  54. endef
  55. MAKE_FLAGS += PREFIX="$(STAGING_DIR)/usr"
  56. ifeq ($(BUILD_VARIANT),ipv6)
  57. MAKE_FLAGS += FEATURES="-DWANT_V6"
  58. endif
  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))