From: "William Hubbs" <williamh@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/opentmpfiles/
Date: Thu, 1 Dec 2016 22:18:51 +0000 (UTC) [thread overview]
Message-ID: <1480630630.4ec6c9b12ead972f977e78314aabfbac74ce2ac8.williamh@gentoo> (raw)
commit: 4ec6c9b12ead972f977e78314aabfbac74ce2ac8
Author: William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 1 21:33:33 2016 +0000
Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Thu Dec 1 22:17:10 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ec6c9b1
sys-apps/opentmpfiles: install service scripts and block older openrc versions
Package-Manager: portage-2.3.0
sys-apps/opentmpfiles/opentmpfiles-9999.ebuild | 27 +++++++++++++++++++++++---
1 file changed, 24 insertions(+), 3 deletions(-)
diff --git a/sys-apps/opentmpfiles/opentmpfiles-9999.ebuild b/sys-apps/opentmpfiles/opentmpfiles-9999.ebuild
index 62984cd..011fa7a 100644
--- a/sys-apps/opentmpfiles/opentmpfiles-9999.ebuild
+++ b/sys-apps/opentmpfiles/opentmpfiles-9999.ebuild
@@ -10,7 +10,7 @@ if [[ ${PV} = 9999* ]]; then
else
SRC_URI="https://github.com/openrc/${PN}/archive/${PV}.tar.gz ->
${P}.tar.gz"
- KEYWORDS="~amd64"
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
fi
DESCRIPTION="A standalone utility to process systemd-style tmpfiles.d files"
@@ -20,5 +20,26 @@ LICENSE="BSD-2"
SLOT="0"
IUSE=""
-DEPEND=""
-RDEPEND=""
+RDEPEND="!<sys-apps/openrc-0.23"
+
+src_install() {
+ default
+ cd openrc
+ for f in opentmpfiles-dev opentmpfiles-setup; do
+ newconfd ${f}.confd ${f}
+ newinitd ${f}.initd ${f}
+ done
+}
+
+add_service() {
+ local initd=$1
+ local runlevel=$2
+
+ elog "Auto-adding '${initd}' service to your ${runlevel} runlevel"
+ ln -snf /etc/init.d/${initd} "${EROOT}"etc/runlevels/${runlevel}/${initd}
+}
+
+pkg_postinst() {
+ add_service opentmpfiles-dev sysinit
+ add_service opentmpfiles-setup boot
+}
next reply other threads:[~2016-12-01 22:18 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-01 22:18 William Hubbs [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-11-20 21:42 [gentoo-commits] repo/gentoo:master commit in: sys-apps/opentmpfiles/ David Seifert
2022-11-20 21:42 David Seifert
2021-07-09 4:19 William Hubbs
2021-01-06 15:26 Fabian Groffen
2020-10-28 14:50 William Hubbs
2020-10-25 19:57 William Hubbs
2020-10-25 19:44 William Hubbs
2020-10-25 2:08 William Hubbs
2019-05-04 9:39 Mikle Kolyada
2018-12-07 9:01 Fabian Groffen
2018-12-04 15:11 William Hubbs
2018-11-23 7:41 Mikle Kolyada
2018-11-10 23:53 William Hubbs
2018-11-10 23:53 William Hubbs
2018-07-04 14:08 Michael Haubenwallner
2018-04-30 13:52 Benda XU
2018-02-06 3:17 Benda XU
2018-01-01 10:34 Michał Górny
2017-04-14 23:20 William Hubbs
2017-04-14 19:13 William Hubbs
2017-04-08 8:58 Jeroen Roovers
2017-03-11 17:07 Agostino Sarubbo
2017-03-08 23:47 William Hubbs
2017-02-28 11:22 Tobias Klausmann
2017-02-27 16:30 Jason Zaman
2017-02-25 10:03 Agostino Sarubbo
2017-02-24 21:50 William Hubbs
2017-02-24 21:50 William Hubbs
2017-02-24 8:30 Michael Weber
2017-02-24 5:45 Mike Frysinger
2017-02-22 16:08 Agostino Sarubbo
2017-02-22 15:06 Agostino Sarubbo
2017-02-21 20:01 William Hubbs
2016-12-01 22:18 William Hubbs
2016-11-30 0:48 William Hubbs
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=1480630630.4ec6c9b12ead972f977e78314aabfbac74ce2ac8.williamh@gentoo \
--to=williamh@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.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