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.

125 lines
3.3 KiB

  1. #
  2. # Copyright (C) 2009-2016 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:=transmission
  9. PKG_VERSION:=2.92
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=http://download-origin.transmissionbt.com/files/ http://mirrors.m0k.org/transmission/files
  13. PKG_MD5SUM:=3fce404a436e3cd7fde80fb6ed61c264
  14. PKG_FIXUP:=autoreconf
  15. PKG_INSTALL:=1
  16. PKG_BUILD_PARALLEL:=1
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/transmission/template
  19. SUBMENU:=BitTorrent
  20. SECTION:=net
  21. CATEGORY:=Network
  22. TITLE:=A free, lightweight BitTorrent client
  23. URL:=http://www.transmissionbt.com
  24. MAINTAINER:=Cezary Jackiewicz <cezary@eko.one.pl>
  25. endef
  26. define Package/transmission-daemon
  27. $(call Package/transmission/template)
  28. DEPENDS:=+libcurl +libopenssl +libpthread +libevent2 +librt
  29. MENU:=1
  30. USERID:=transmission=224:transmission=224
  31. endef
  32. define Package/transmission-cli
  33. $(call Package/transmission/template)
  34. DEPENDS:=transmission-daemon
  35. endef
  36. define Package/transmission-remote
  37. $(call Package/transmission/template)
  38. DEPENDS:=+libcurl +libopenssl +libpthread +libevent2 +librt
  39. endef
  40. define Package/transmission-web
  41. $(call Package/transmission/template)
  42. DEPENDS:=transmission-daemon
  43. endef
  44. define Package/transmission-daemon/description
  45. Transmission is a simple BitTorrent client.
  46. It features a very simple, intuitive interface
  47. on top on an efficient, cross-platform back-end.
  48. This package contains the daemon itself.
  49. endef
  50. define Package/transmission-cli/description
  51. CLI utilities for transmission.
  52. endef
  53. define Package/transmission-remote/description
  54. CLI remote interface for transmission.
  55. endef
  56. define Package/transmission-web/description
  57. Webinterface resources for transmission.
  58. endef
  59. define Package/transmission-daemon/conffiles
  60. /etc/config/transmission
  61. endef
  62. CONFIGURE_VARS += \
  63. LIBEVENT_LIBS="$(STAGING_DIR)/usr/lib/libevent-2.0.so.5"
  64. CONFIGURE_ARGS += \
  65. --enable-daemon \
  66. --enable-cli \
  67. --without-gtk \
  68. --enable-largefile \
  69. --enable-lightweight
  70. MAKE_FLAGS += \
  71. CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE"
  72. TARGET_CFLAGS += -std=gnu99
  73. define Package/transmission-daemon/install
  74. $(INSTALL_DIR) $(1)/usr/bin
  75. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/transmission-daemon $(1)/usr/bin/
  76. $(INSTALL_DIR) $(1)/etc/init.d/
  77. $(INSTALL_BIN) files/transmission.init $(1)/etc/init.d/transmission
  78. $(INSTALL_DIR) $(1)/etc/config
  79. $(INSTALL_CONF) files/transmission.config $(1)/etc/config/transmission
  80. endef
  81. define Package/transmission-cli/install
  82. $(INSTALL_DIR) $(1)/usr/bin
  83. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/transmission-cli \
  84. $(PKG_INSTALL_DIR)/usr/bin/transmission-create \
  85. $(PKG_INSTALL_DIR)/usr/bin/transmission-edit \
  86. $(PKG_INSTALL_DIR)/usr/bin/transmission-show \
  87. $(1)/usr/bin/
  88. endef
  89. define Package/transmission-remote/install
  90. $(INSTALL_DIR) $(1)/usr/bin
  91. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/transmission-remote $(1)/usr/bin/
  92. endef
  93. define Package/transmission-web/install
  94. $(INSTALL_DIR) $(1)/usr/share/transmission
  95. $(CP) $(PKG_INSTALL_DIR)/usr/share/transmission/web $(1)/usr/share/transmission/
  96. endef
  97. $(eval $(call BuildPackage,transmission-daemon))
  98. $(eval $(call BuildPackage,transmission-cli))
  99. $(eval $(call BuildPackage,transmission-remote))
  100. $(eval $(call BuildPackage,transmission-web))