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.

123 lines
3.3 KiB

  1. #
  2. # Copyright (C) 2009-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:=transmission
  9. PKG_VERSION:=2.84
  10. PKG_RELEASE:=4
  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:=411aec1c418c14f6765710d89743ae42
  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. define Package/transmission-daemon/install
  73. $(INSTALL_DIR) $(1)/usr/bin
  74. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/transmission-daemon $(1)/usr/bin/
  75. $(INSTALL_DIR) $(1)/etc/init.d/
  76. $(INSTALL_BIN) files/transmission.init $(1)/etc/init.d/transmission
  77. $(INSTALL_DIR) $(1)/etc/config
  78. $(INSTALL_CONF) files/transmission.config $(1)/etc/config/transmission
  79. endef
  80. define Package/transmission-cli/install
  81. $(INSTALL_DIR) $(1)/usr/bin
  82. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/transmission-cli \
  83. $(PKG_INSTALL_DIR)/usr/bin/transmission-create \
  84. $(PKG_INSTALL_DIR)/usr/bin/transmission-edit \
  85. $(PKG_INSTALL_DIR)/usr/bin/transmission-show \
  86. $(1)/usr/bin/
  87. endef
  88. define Package/transmission-remote/install
  89. $(INSTALL_DIR) $(1)/usr/bin
  90. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/transmission-remote $(1)/usr/bin/
  91. endef
  92. define Package/transmission-web/install
  93. $(INSTALL_DIR) $(1)/usr/share/transmission
  94. $(CP) $(PKG_INSTALL_DIR)/usr/share/transmission/web $(1)/usr/share/transmission/
  95. endef
  96. $(eval $(call BuildPackage,transmission-daemon))
  97. $(eval $(call BuildPackage,transmission-cli))
  98. $(eval $(call BuildPackage,transmission-remote))
  99. $(eval $(call BuildPackage,transmission-web))