public inbox for ipfire-scm@lists.ipfire.org
 help / color / mirror / Atom feed
From: git@ipfire.org
To: ipfire-scm@lists.ipfire.org
Subject: [git.ipfire.org] IPFire 3.x development tree branch, master, updated. ae577412af787c2b8ea9bae2529bc230c78312ca
Date: Tue, 23 Apr 2013 21:35:13 +0200	[thread overview]
Message-ID: <20130423193533.BD718207F5@argus.ipfire.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 6173 bytes --]

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "IPFire 3.x development tree".

The branch, master has been updated
       via  ae577412af787c2b8ea9bae2529bc230c78312ca (commit)
       via  f892bffed3d268f0305dde0e25d9b3acc9860c7c (commit)
       via  8361588eb3f49e9aca0d9ae6a2a2fb77712b8619 (commit)
       via  d8c6de58a462a10950f078f18a2f14525cec0a5b (commit)
      from  3c8feabab81c77fdace9ee9019ccfce07e5bd050 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit ae577412af787c2b8ea9bae2529bc230c78312ca
Merge: f892bff d8c6de5
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date:   Tue Apr 23 21:35:06 2013 +0200

    Merge remote-tracking branch 'stevee/transmission-update'

commit f892bffed3d268f0305dde0e25d9b3acc9860c7c
Merge: 3c8feab 8361588
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date:   Tue Apr 23 21:35:00 2013 +0200

    Merge remote-tracking branch 'stevee/libnfsidmap-fix'

commit 8361588eb3f49e9aca0d9ae6a2a2fb77712b8619
Author: Stefan Schantl <stefan.schantl(a)ipfire.org>
Date:   Tue Apr 23 19:43:35 2013 +0200

    libnfsidmap: Set pluginpath.
    
    Set the pluginpath for libnfsidmap to be able to dynamically load and find the required plugins.

commit d8c6de58a462a10950f078f18a2f14525cec0a5b
Author: Stefan Schantl <stefan.schantl(a)ipfire.org>
Date:   Tue Apr 23 19:19:51 2013 +0200

    transmission: Update to 2.77.
    
    Minor update to the latest stable version.
    
    A lot of more changes:
    * Splitt into subpackages - transmission, transmission-cli and transmission-daemon.
    * Create transmission user and group for daemon.
    * Add systemd file and scriptlet for daemon.

-----------------------------------------------------------------------

Summary of changes:
 libnfsidmap/libnfsidmap.nm                       |  3 +-
 transmission/systemd/transmission-daemon.service | 11 +++
 transmission/transmission.nm                     | 85 +++++++++++++++++++++++-
 3 files changed, 96 insertions(+), 3 deletions(-)
 create mode 100644 transmission/systemd/transmission-daemon.service

Difference in files:
diff --git a/libnfsidmap/libnfsidmap.nm b/libnfsidmap/libnfsidmap.nm
index 40a8f14..7cd1bd1 100644
--- a/libnfsidmap/libnfsidmap.nm
+++ b/libnfsidmap/libnfsidmap.nm
@@ -5,7 +5,7 @@
 
 name       = libnfsidmap
 version    = 0.25
-release    = 1
+release    = 2
 
 groups     = System/Libraries
 url        = http://www.citi.umich.edu/projects/nfsv4/linux/
@@ -28,6 +28,7 @@ build
 	end
 
 	configure_options += \
+		--with-pluginpath=%{libdir}/%{name} \
 		--disable-static
 
 	prepare_cmds
diff --git a/transmission/systemd/transmission-daemon.service b/transmission/systemd/transmission-daemon.service
new file mode 100644
index 0000000..8692007
--- /dev/null
+++ b/transmission/systemd/transmission-daemon.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Transmission Daemon
+After=network.target
+
+[Service]
+User=transmission
+ExecStart=/usr/bin/transmission-daemon -f --blocklist -g /var/lib/transmission/.config/transmission
+
+[Install]
+WantedBy=multi-user.target
+
diff --git a/transmission/transmission.nm b/transmission/transmission.nm
index 7aaf8f2..78bef0d 100644
--- a/transmission/transmission.nm
+++ b/transmission/transmission.nm
@@ -4,7 +4,7 @@
 ###############################################################################
 
 name       = transmission
-version    = 2.22
+version    = 2.77
 release    = 1
 
 groups     = Internet/P2P
@@ -18,7 +18,7 @@ description
 end
 
 source_dl  = http://download.transmissionbt.com/files/
-sources    = %{thisapp}.tar.bz2
+sources    = %{thisapp}.tar.xz
 
 build
 	requires
@@ -26,11 +26,92 @@ build
 		libcurl-devel
 		libevent-devel
 		openssl-devel
+		shadow-utils
+		zlib-devel
 	end
+
+	prepare_cmds
+		# Create transmission user and group.
+		%{create_user}
+	end
+
+	install_cmds
+		# Create missing folders and set correct ownership.
+		mkdir -pv %{BUILDROOT}%{sharedstatedir}/transmission
+		chown transmission:transmission %{BUILDROOT}%{sharedstatedir}/transmission
+	end
+end
+
+create_user
+	getent group transmission >/dev/null || groupadd -r transmission
+	getent passwd transmission >/dev/null || \
+	useradd -r -g transmission -d %{sharedstatedir}/transmission -s /sbin/nologin \
+		-c "transmission daemon" transmission
 end
 
 packages
 	package %{name}
+
+	package %{name}-cli
+		summary = Transmission command line implementation.
+		description
+			Command line version of Transmission BitTorrent client.
+		end
+
+		requires
+			transmission = %{thisver}
+		end
+
+		files
+			%{bindir}/transmission-cli
+			%{mandir}/man1/transmission-cli*
+		end
+	end
+
+	package %{name}-daemon
+		summary = Transmission daemon.
+		description
+			Transmission BitTorrent client daemon.
+		end
+
+		prerequires += shadow-utils
+
+		requires
+			transmission = %{thisver}
+		end
+
+		datadir
+			%{sharedstatedir}/transmission
+		end
+
+		files
+			%{bindir}/transmission-daemon
+			%{mandir}/man1/transmission-daemon*
+			%{unitdir}/transmission-daemon.service
+			%{sharedstatedir}/transmission
+		end
+
+		script prein
+			%{create_user}
+		end
+
+		script postin
+			systemctl daemon-reload >/dev/null 2>&1 || :
+		end
+
+		script preun
+			systemctl --no-reload disable transmission-daemon.service >/dev/null 2>&1 || :
+			systemctl stop transmission-daemon.service >/dev/null 2>&1 || :
+		end
+
+		script postun
+			systemctl daemon-reload >/dev/null 2>&1 || :
+		end
+
+		script postup
+			systemctl daemon-reload >/dev/null 2>&1 || :
+			systemctl try-restart transmission-daemon.service >/dev/null 2>&1 || :
+		end
 	end
 
 	package %{name}-debuginfo


hooks/post-receive
--
IPFire 3.x development tree

                 reply	other threads:[~2013-04-23 19:35 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130423193533.BD718207F5@argus.ipfire.org \
    --to=git@ipfire.org \
    --cc=ipfire-scm@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox