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.

122 lines
3.2 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:=3
  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. endef
  31. define Package/transmission-cli
  32. $(call Package/transmission/template)
  33. DEPENDS:=transmission-daemon
  34. endef
  35. define Package/transmission-remote
  36. $(call Package/transmission/template)
  37. DEPENDS:=+libcurl +libopenssl +libpthread +libevent2 +librt
  38. endef
  39. define Package/transmission-web
  40. $(call Package/transmission/template)
  41. DEPENDS:=transmission-daemon
  42. endef
  43. define Package/transmission-daemon/description
  44. Transmission is a simple BitTorrent client.
  45. It features a very simple, intuitive interface
  46. on top on an efficient, cross-platform back-end.
  47. This package contains the daemon itself.
  48. endef
  49. define Package/transmission-cli/description
  50. CLI utilities for transmission.
  51. endef
  52. define Package/transmission-remote/description
  53. CLI remote interface for transmission.
  54. endef
  55. define Package/transmission-web/description
  56. Webinterface resources for transmission.
  57. endef
  58. define Package/transmission-daemon/conffiles
  59. /etc/config/transmission
  60. endef
  61. CONFIGURE_VARS += \
  62. LIBEVENT_LIBS="$(STAGING_DIR)/usr/lib/libevent-2.0.so.5"
  63. CONFIGURE_ARGS += \
  64. --enable-daemon \
  65. --enable-cli \
  66. --without-gtk \
  67. --enable-largefile \
  68. --enable-lightweight
  69. MAKE_FLAGS += \
  70. CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE"
  71. define Package/transmission-daemon/install
  72. $(INSTALL_DIR) $(1)/usr/bin
  73. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/transmission-daemon $(1)/usr/bin/
  74. $(INSTALL_DIR) $(1)/etc/init.d/
  75. $(INSTALL_BIN) files/transmission.init $(1)/etc/init.d/transmission
  76. $(INSTALL_DIR) $(1)/etc/config
  77. $(INSTALL_CONF) files/transmission.config $(1)/etc/config/transmission
  78. endef
  79. define Package/transmission-cli/install
  80. $(INSTALL_DIR) $(1)/usr/bin
  81. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/transmission-cli \
  82. $(PKG_INSTALL_DIR)/usr/bin/transmission-create \
  83. $(PKG_INSTALL_DIR)/usr/bin/transmission-edit \
  84. $(PKG_INSTALL_DIR)/usr/bin/transmission-show \
  85. $(1)/usr/bin/
  86. endef
  87. define Package/transmission-remote/install
  88. $(INSTALL_DIR) $(1)/usr/bin
  89. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/transmission-remote $(1)/usr/bin/
  90. endef
  91. define Package/transmission-web/install
  92. $(INSTALL_DIR) $(1)/usr/share/transmission
  93. $(CP) $(PKG_INSTALL_DIR)/usr/share/transmission/web $(1)/usr/share/transmission/
  94. endef
  95. $(eval $(call BuildPackage,transmission-daemon))
  96. $(eval $(call BuildPackage,transmission-cli))
  97. $(eval $(call BuildPackage,transmission-remote))
  98. $(eval $(call BuildPackage,transmission-web))