public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "David Seifert" <soap@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/opentmpfiles/
Date: Sun, 20 Nov 2022 21:42:55 +0000 (UTC)	[thread overview]
Message-ID: <1668980562.0d9480e981b6b074eeb29005f181d6d0a35d2ced.soap@gentoo> (raw)

commit:     0d9480e981b6b074eeb29005f181d6d0a35d2ced
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 20 21:42:42 2022 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sun Nov 20 21:42:42 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d9480e9

sys-apps/opentmpfiles: update EAPI 6 -> 8

Signed-off-by: David Seifert <soap <AT> gentoo.org>

 ...files-0.2.ebuild => opentmpfiles-0.2-r1.ebuild} | 29 +++++++++++++---------
 1 file changed, 17 insertions(+), 12 deletions(-)

diff --git a/sys-apps/opentmpfiles/opentmpfiles-0.2.ebuild b/sys-apps/opentmpfiles/opentmpfiles-0.2-r1.ebuild
similarity index 74%
rename from sys-apps/opentmpfiles/opentmpfiles-0.2.ebuild
rename to sys-apps/opentmpfiles/opentmpfiles-0.2-r1.ebuild
index dd790533d3ca..84ffc0148d5d 100644
--- a/sys-apps/opentmpfiles/opentmpfiles-0.2.ebuild
+++ b/sys-apps/opentmpfiles/opentmpfiles-0.2-r1.ebuild
@@ -1,7 +1,8 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=8
+
 inherit prefix
 
 if [[ ${PV} = 9999* ]]; then
@@ -20,33 +21,37 @@ LICENSE="BSD-2"
 SLOT="0"
 IUSE="selinux"
 
-RDEPEND="!<sys-apps/openrc-0.23
+RDEPEND="
+	!<sys-apps/openrc-0.23
 	selinux? ( sec-policy/selinux-base-policy )"
 
 src_prepare() {
 	default
 	hprefixify tmpfiles
 }
+
 src_install() {
 	emake DESTDIR="${ED}" install
 	einstalldocs
-	cd openrc
+
+	cd openrc || die
+	local f
 	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
+pkg_postinst() {
+	add_service() {
+		local initd=$1
+		local runlevel=$2
 
-	elog "Auto-adding '${initd}' service to your ${runlevel} runlevel"
-	mkdir -p "${EROOT}"etc/runlevels/${runlevel}
-	ln -snf /etc/init.d/${initd} "${EROOT}"etc/runlevels/${runlevel}/${initd}
-}
+		elog "Auto-adding '${initd}' service to your ${runlevel} runlevel"
+		mkdir -p "${EROOT}"/etc/runlevels/${runlevel}
+		ln -snf /etc/init.d/${initd} "${EROOT}"/etc/runlevels/${runlevel}/${initd}
+	}
 
-pkg_postinst() {
 	if [[ -z $REPLACING_VERSIONS ]]; then
 		add_service opentmpfiles-dev sysinit
 		add_service opentmpfiles-setup boot


             reply	other threads:[~2022-11-20 21:42 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-20 21:42 David Seifert [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
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-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=1668980562.0d9480e981b6b074eeb29005f181d6d0a35d2ced.soap@gentoo \
    --to=soap@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