X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=blobdiff_plain;f=net%2Ftransmission%2FMakefile;h=4738a76d6f1ae3a2c07debbe6f6f51c4be50316b;hp=6808b17bc335589155b358afda8a1c1434ee4793;hb=8262df31ad2d7eb3b591ad36faa7e0c298d79e6d;hpb=dd7231e3162b7f65ec95d1afe8e52cb0e01e7cb4 diff --git a/net/transmission/Makefile b/net/transmission/Makefile index 6808b17bc3..4738a76d6f 100644 --- a/net/transmission/Makefile +++ b/net/transmission/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2009 OpenWrt.org +# Copyright (C) 2009-2012 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -8,14 +8,16 @@ include $(TOPDIR)/rules.mk PKG_NAME:=transmission -PKG_VERSION:=1.52 +PKG_VERSION:=2.52 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 -PKG_SOURCE_URL:=http://download.m0k.org/transmission/files -PKG_MD5SUM:=2a1a628c2a8872934575cb4351bca291 +PKG_SOURCE_URL:=http://mirrors.m0k.org/transmission/files +PKG_MD5SUM:=9490ed97a03f7b8b1ac8b0822c3dce92 -PKG_FIXUP = libtool +PKG_FIXUP:=libtool +PKG_INSTALL:=1 +PKG_BUILD_PARALLEL:=1 include $(INCLUDE_DIR)/package.mk @@ -25,11 +27,12 @@ define Package/transmission/template CATEGORY:=Network TITLE:=A free, lightweight BitTorrent client URL:=http://www.transmissionbt.com + MAINTAINER:=Cezary Jackiewicz endef define Package/transmission-daemon $(call Package/transmission/template) - DEPENDS:=+libcurl +libopenssl +libpthread + DEPENDS:=+libcurl +libopenssl +libpthread +libevent2 +librt +libminiupnpc MENU:=1 endef @@ -38,11 +41,16 @@ define Package/transmission-cli DEPENDS:=transmission-daemon endef +define Package/transmission-remote + $(call Package/transmission/template) +endef + define Package/transmission-web $(call Package/transmission/template) DEPENDS:=transmission-daemon endef + define Package/transmission-daemon/description Transmission is a simple BitTorrent client. It features a very simple, intuitive interface @@ -54,39 +62,60 @@ define Package/transmission-cli/description CLI utilities for transmission. endef +define Package/transmission-remote/description + CLI remote interface for transmission. +endef + define Package/transmission-web/description Webinterface resources for transmission. endef +define Package/transmission-daemon/conffiles +/etc/config/transmission +endef + +CONFIGURE_VARS += \ + LIBEVENT_LIBS="$(STAGING_DIR)/usr/lib/libevent-2.0.so.5" + CONFIGURE_ARGS += \ --enable-daemon \ + --enable-cli \ --disable-gtk \ - --disable-wx \ - --with-wx-config="$(STAGING_DIR)/usr/bin/" \ + --enable-largefile \ + --enable-lightweight -define Build/Compile - $(MAKE) -C $(PKG_BUILD_DIR) \ - $(TARGET_CONFIGURE_OPTS) \ - CFLAGS="$(TARGET_CFLAGS)" -endef +MAKE_FLAGS += \ + CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE" define Package/transmission-daemon/install - $(INSTALL_DIR) $(1)/usr/sbin - $(INSTALL_BIN) $(PKG_BUILD_DIR)/daemon/transmission-daemon $(1)/usr/sbin/ + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/transmission-daemon $(1)/usr/bin/ + $(INSTALL_DIR) $(1)/etc/init.d/ + $(INSTALL_BIN) files/transmission.init $(1)/etc/init.d/transmission + $(INSTALL_DIR) $(1)/etc/config + $(INSTALL_CONF) files/transmission.config $(1)/etc/config/transmission endef define Package/transmission-cli/install $(INSTALL_DIR) $(1)/usr/bin - $(INSTALL_BIN) $(PKG_BUILD_DIR)/cli/transmissioncli $(1)/usr/bin/ - $(INSTALL_BIN) $(PKG_BUILD_DIR)/daemon/transmission-remote $(1)/usr/bin/ + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/transmission-cli \ + $(PKG_INSTALL_DIR)/usr/bin/transmission-create \ + $(PKG_INSTALL_DIR)/usr/bin/transmission-edit \ + $(PKG_INSTALL_DIR)/usr/bin/transmission-show \ + $(1)/usr/bin/ +endef + +define Package/transmission-remote/install + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/transmission-remote $(1)/usr/bin/ endef define Package/transmission-web/install $(INSTALL_DIR) $(1)/usr/share/transmission - rm -rf `find $(PKG_BUILD_DIR)/web -type d -name .svn` - cp -rf $(PKG_BUILD_DIR)/web $(1)/usr/share/transmission + $(CP) $(PKG_INSTALL_DIR)/usr/share/transmission/web $(1)/usr/share/transmission/ endef $(eval $(call BuildPackage,transmission-daemon)) $(eval $(call BuildPackage,transmission-cli)) +$(eval $(call BuildPackage,transmission-remote)) $(eval $(call BuildPackage,transmission-web))