diff options
author | Dominik Kriegner <dominik.kriegner@gmail.com> | 2016-01-26 12:12:26 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2016-11-19 21:30:26 -0800 |
commit | 3c17bfa27ffd29237d81154a3d181f631ac0f0f4 (patch) | |
tree | 8d0b71394f05bc977720e9b5a1549a16abee5d36 /net-misc | |
parent | sys-apps/policycoreutils: some utils have been split out into separate packages (diff) | |
download | gentoo-3c17bfa27ffd29237d81154a3d181f631ac0f0f4.tar.gz gentoo-3c17bfa27ffd29237d81154a3d181f631ac0f0f4.tar.bz2 gentoo-3c17bfa27ffd29237d81154a3d181f631ac0f0f4.zip |
net-misc/tlsdate: systemd support, bug 533380
Package-Manager: portage-2.3.2
Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/tlsdate/files/tlsdate-0.0.13-tlsdated-service.patch | 22 | ||||
-rw-r--r-- | net-misc/tlsdate/files/tlsdated.default | 4 | ||||
-rw-r--r-- | net-misc/tlsdate/files/tlsdated.tmpfiles.conf | 1 | ||||
-rw-r--r-- | net-misc/tlsdate/tlsdate-0.0.13.ebuild | 10 |
4 files changed, 35 insertions, 2 deletions
diff --git a/net-misc/tlsdate/files/tlsdate-0.0.13-tlsdated-service.patch b/net-misc/tlsdate/files/tlsdate-0.0.13-tlsdated-service.patch new file mode 100644 index 000000000000..df03833f7cd5 --- /dev/null +++ b/net-misc/tlsdate/files/tlsdate-0.0.13-tlsdated-service.patch @@ -0,0 +1,22 @@ +From: Dominik Kriegner <dominik.kriegner@gmail.com> +Date: Tue, 26 Jan 2016 12:12:26 +0000 +Subject: [PATCH] Fix systemd unit file + +Project-Bug-URL: https://github.com/ioerror/tlsdate/pull/162 +Gentoo-Bug-URL: https://bugs.gentoo.org/533380 + +--- a/systemd/tlsdated.service ++++ b/systemd/tlsdated.service +@@ -5,6 +5,9 @@ After=network.target + [Service] + Type=simple + EnvironmentFile=/etc/default/tlsdated +-ExecStart=/usr/sbin/tlsdated ${DAEMON_OPTS} +-ExecReload=/bin/kill -HUP ${MAINPID} +-ExecStop=/bin/kill -INT ${MAINPID} ++ExecStart=/usr/sbin/tlsdated $DAEMON_OPTS ++ExecReload=/bin/kill -HUP $MAINPID ++ExecStop=/bin/kill -INT $MAINPID ++ ++[Install] ++WantedBy=multi-user.target diff --git a/net-misc/tlsdate/files/tlsdated.default b/net-misc/tlsdate/files/tlsdated.default new file mode 100644 index 000000000000..08186f75ef31 --- /dev/null +++ b/net-misc/tlsdate/files/tlsdated.default @@ -0,0 +1,4 @@ +# defaults file for /etc/default/tlsdated + +# Additional options; see `man tlsdated` for reference. +DEAMON_OPTS="" diff --git a/net-misc/tlsdate/files/tlsdated.tmpfiles.conf b/net-misc/tlsdate/files/tlsdated.tmpfiles.conf new file mode 100644 index 000000000000..07a7966cc873 --- /dev/null +++ b/net-misc/tlsdate/files/tlsdated.tmpfiles.conf @@ -0,0 +1 @@ +d /var/cache/tlsdated 0700 tlsdate tlsdate - diff --git a/net-misc/tlsdate/tlsdate-0.0.13.ebuild b/net-misc/tlsdate/tlsdate-0.0.13.ebuild index 1fb4cc88136d..5b1f523bbfd3 100644 --- a/net-misc/tlsdate/tlsdate-0.0.13.ebuild +++ b/net-misc/tlsdate/tlsdate-0.0.13.ebuild @@ -1,10 +1,10 @@ -# Copyright 1999-2015 Gentoo Foundation +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ EAPI="4" -inherit autotools vcs-snapshot user +inherit autotools eutils systemd vcs-snapshot user DESCRIPTION="Update local time over HTTPS" HOMEPAGE="https://github.com/ioerror/tlsdate" @@ -26,6 +26,7 @@ src_prepare() { sed -i \ -e 's:/tlsdate/ca-roots/tlsdate-ca-roots.conf:/ssl/certs/ca-certificates.crt:' \ Makefile.am || die + epatch "${FILESDIR}"/${P}-tlsdated-service.patch eautoreconf } @@ -53,6 +54,11 @@ src_install() { newinitd "${FILESDIR}"/tlsdate.rc tlsdate newconfd "${FILESDIR}"/tlsdate.confd tlsdate + systemd_newunit "${S}"/systemd/tlsdated.service tlsdated.service + systemd_newtmpfilesd "${FILESDIR}"/tlsdated.tmpfiles.conf tlsdated.conf + insinto /etc/default + newins "${FILESDIR}"/tlsdated.default tlsdated + insinto /etc/dbus-1/system.d/ doins dbus/org.torproject.tlsdate.conf |