[packages] transmission: add run_daemon_as user to default config, build for embedded...
authorCezary Jackiewicz <cezary@eko.one.pl>
Sun, 6 Feb 2011 19:13:35 +0000 (19:13 +0000)
committerCezary Jackiewicz <cezary@eko.one.pl>
Sun, 6 Feb 2011 19:13:35 +0000 (19:13 +0000)
SVN-Revision: 25392

net/transmission/Makefile
net/transmission/files/transmission.config
net/transmission/files/transmission.init

index c1e2377d7a69504e12534036072c3f37fae5f7a2..d6fe79ad86cf24657f07b609c2a460a618376034 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=transmission
 PKG_VERSION:=2.20b4
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=http://mirrors.m0k.org/transmission/files
@@ -81,7 +81,8 @@ CONFIGURE_ARGS += \
        --enable-daemon \
        --enable-cli \
        --disable-gtk \
-       --enable-largefile
+       --enable-largefile \
+       --enable-lightweight
 
 MAKE_FLAGS += \
        CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE"
index bacacccdf427a55585c110fea9f8e6a2cbbb15e5..36cbacc1b114f94bf2374b7dbdebab79efb42714 100644 (file)
@@ -1,6 +1,7 @@
 config transmission
        option enabled 0
        option config_dir '/tmp/transmission'
+       option run_daemon_as_user root
        option alt_speed_down 50
        option alt_speed_enabled false
        option alt_speed_time_begin  540
index c3e870377af5be9dec9b24551eebbc49331bd60b..e790a7cf5323b7d80c2866d6d24d38b6ae697949 100644 (file)
@@ -72,7 +72,9 @@ start_service() {
 
        echo "\""invalid-key"\": false" >> $config_dir/settings.json
        echo "}" >> $config_dir/settings.json
-       
+
+       chown -R $run_as_usr $config_dir
+
        eval "$SSD -c $run_as_usr -q -b -x $BIN -S -- -g $config_dir"
 }