source: packages/net/transmission/Makefile @ 22065

Last change on this file since 22065 was 22065, checked in by jow, 6 years ago

[packages] transmission: offer option to run transmission as different user (#7555)

  • Property svn:copyright set to Copyright (C) 2008 OpenWrt.org
  • Property svn:eol-style set to native
  • Property svn:licence set to GPLv2
File size: 2.6 KB
Line 
1#
2# Copyright (C) 2009-2010 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=transmission
11PKG_VERSION:=2.00
12PKG_RELEASE:=2
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15PKG_SOURCE_URL:=http://mirrors.m0k.org/transmission/files
16PKG_MD5SUM:=02a4d23bdd6be2fba6d8e0b24f630dab
17
18PKG_FIXUP:=libtool
19PKG_INSTALL:=1
20
21include $(INCLUDE_DIR)/package.mk
22
23define Package/transmission/template
24  SUBMENU:=BitTorrent
25  SECTION:=net
26  CATEGORY:=Network
27  TITLE:=A free, lightweight BitTorrent client
28  URL:=http://www.transmissionbt.com
29  MAINTAINER:=Cezary Jackiewicz <cezary@eko.one.pl>
30endef
31
32define Package/transmission-daemon
33  $(call Package/transmission/template)
34  DEPENDS:=+libcurl +libopenssl +libpthread +libevent
35  MENU:=1
36endef
37
38define Package/transmission-cli
39  $(call Package/transmission/template)
40  DEPENDS:=transmission-daemon
41endef
42
43define Package/transmission-web
44  $(call Package/transmission/template)
45  DEPENDS:=transmission-daemon
46endef
47
48
49define Package/transmission-daemon/description
50 Transmission is a simple BitTorrent client.
51 It features a very simple, intuitive interface
52 on top on an efficient, cross-platform back-end.
53 This package contains the daemon itself.
54endef
55
56define Package/transmission-cli/description
57 CLI utilities for transmission.
58endef
59
60define Package/transmission-web/description
61 Webinterface resources for transmission.
62endef
63
64define Package/transmission-daemon/conffiles
65/etc/config/transmission
66endef
67
68CONFIGURE_VARS += \
69        LIBEVENT_LIBS="$(STAGING_DIR)/usr/lib/libevent.so"
70
71CONFIGURE_ARGS += \
72        --enable-daemon \
73        --disable-gtk
74
75MAKE_FLAGS += \
76        CFLAGS="$(TARGET_CFLAGS)"
77
78define Package/transmission-daemon/install
79        $(INSTALL_DIR) $(1)/usr/bin
80        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/transmission-daemon $(1)/usr/bin/
81        $(INSTALL_DIR) $(1)/etc/init.d/
82        $(INSTALL_BIN) files/transmission.init $(1)/etc/init.d/transmission
83        $(INSTALL_DIR) $(1)/etc/config
84        $(INSTALL_CONF) files/transmission.config $(1)/etc/config/transmission
85endef
86
87define Package/transmission-cli/install
88        $(INSTALL_DIR) $(1)/usr/bin
89        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/transmissioncli $(1)/usr/bin/
90        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/transmission-remote $(1)/usr/bin/
91endef
92
93define Package/transmission-web/install
94        $(INSTALL_DIR) $(1)/usr/share/transmission
95        $(CP) $(PKG_INSTALL_DIR)/usr/share/transmission/web $(1)/usr/share/transmission/
96endef
97
98$(eval $(call BuildPackage,transmission-daemon))
99$(eval $(call BuildPackage,transmission-cli))
100$(eval $(call BuildPackage,transmission-web))
Note: See TracBrowser for help on using the repository browser.