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.

55 lines
1.6 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. include $(INCLUDE_DIR)/package.mk
  20. define Package/opentracker
  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/description
  29. opentracker - An open and free bittorrent tracker
  30. opentracker is an open and free bittorrent tracker project.
  31. It aims for minimal resource usage and is intended to run at your wlan router.
  32. Currently it is deployed as an open and free tracker instance.
  33. Read our free and open tracker blog and announce your torrents there
  34. (but do not hesitate to setup your own free trackers!).
  35. endef
  36. MAKE_FLAGS += PREFIX="$(STAGING_DIR)/usr"
  37. define Package/opentracker/install
  38. $(INSTALL_DIR) $(1)/usr/bin
  39. $(INSTALL_BIN) $(PKG_BUILD_DIR)/opentracker $(1)/usr/bin
  40. $(INSTALL_DIR) $(1)/etc
  41. $(INSTALL_CONF) $(PKG_BUILD_DIR)/opentracker.conf.sample $(1)/etc/opentracker.conf
  42. $(INSTALL_DIR) $(1)/etc/init.d
  43. $(INSTALL_BIN) ./files/opentracker.init $(1)/etc/init.d/opentracker
  44. endef
  45. $(eval $(call BuildPackage,opentracker))