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.

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