public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Arthur Zamarin" <arthurzam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/restart-services/
Date: Fri, 15 Sep 2023 06:42:03 +0000 (UTC)	[thread overview]
Message-ID: <1694759864.f03c9e3ab64eedcb5fa95275a110190d1031b319.arthurzam@gentoo> (raw)

commit:     f03c9e3ab64eedcb5fa95275a110190d1031b319
Author:     Leonardo Hernández Hernández <leohdz172 <AT> proton <DOT> me>
AuthorDate: Fri Sep 15 03:31:03 2023 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Fri Sep 15 06:37:44 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f03c9e3a

app-admin/restart-services: update EAPI 6 -> 8

Signed-off-by: Leonardo Hernández Hernández <leohdz172 <AT> proton.me>
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 .../restart-services-0.17.0-r1.ebuild              | 61 ++++++++++++++++++++++
 1 file changed, 61 insertions(+)

diff --git a/app-admin/restart-services/restart-services-0.17.0-r1.ebuild b/app-admin/restart-services/restart-services-0.17.0-r1.ebuild
new file mode 100644
index 000000000000..7baedbc6e948
--- /dev/null
+++ b/app-admin/restart-services/restart-services-0.17.0-r1.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="Tool to manage OpenRC and systemd services that need to be restarted"
+HOMEPAGE="https://dev.gentoo.org/~mschiff/restart-services/"
+SRC_URI="https://dev.gentoo.org/~mschiff/src/${PN}/${P}.tgz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86"
+
+RDEPEND="
+	app-admin/lib_users
+	app-portage/portage-utils
+	|| ( sys-apps/openrc sys-apps/systemd )
+"
+
+src_install() {
+	dosbin restart-services
+	doman restart-services.1
+	keepdir /etc/restart-services.d
+	insinto /etc
+	doins restart-services.conf
+	dodoc README CHANGES
+
+	sed -i -e 's/^#include/include/' "${ED}"/etc/restart-services.conf || die
+	cat > "${ED}"/etc/restart-services.d/00-local.conf <<- EOF || die
+	# You may put your local changes here or in any other *.conf file
+	# in this directory so you can leave /etc/restart-services.conf as is.
+	# Example:
+	# *extend* SV_ALWAYS to match 'myservice'
+	# SV_ALWAYS+=( myservice )
+	EOF
+}
+
+pkg_postinst() {
+	# migrate config data for versions < 0.13.2
+	if [[ -n ${REPLACING_VERSIONS} ]]; then
+
+		if [[ $(ver_cut 1 ${REPLACING_VERSIONS}) -eq 0 ]] \
+				&& [[ $(ver_cut 2 ${REPLACING_VERSIONS}) -lt 14 ]]; then
+			local have_old_config=0
+			ebegin "Checking for old config"
+			if [[ -f /etc/restart_services.conf ]]; then
+				have_old_config=1
+				ewarn "Old config file found: /etc/restart_services.conf"
+				ewarn "It will be ignored so please migrate settings to a file in"
+				ewarn "/etc/restart-services.d/ and/or remove /etc/restart_services.conf"
+			fi
+			if [[ -d /etc/restart_services.d ]]; then
+				have_old_config=1
+				ewarn "Old config directory found: /etc/restart_services.d"
+				ewarn "It will be ignored so please migrate files to /etc/restart-services.d"
+				ewarn "and/or remove /etc/restart_services.d"
+			fi
+			eend ${have_old_config}
+		fi
+	fi
+}


             reply	other threads:[~2023-09-15  6:42 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-15  6:42 Arthur Zamarin [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-07-21  0:31 [gentoo-commits] repo/gentoo:master commit in: app-admin/restart-services/ Sam James
2024-05-07  1:16 Sam James
2024-05-07  1:16 Sam James
2024-04-07 11:43 Marc Schiffbauer
2024-04-01 12:46 Marc Schiffbauer
2024-04-01 12:46 Marc Schiffbauer
2024-03-12 15:19 Marc Schiffbauer
2024-03-12 12:08 Marc Schiffbauer
2024-03-12 12:08 Marc Schiffbauer
2023-12-06 13:55 Marc Schiffbauer
2023-11-14 18:35 Andreas Sturmlechner
2023-10-08 15:29 Arthur Zamarin
2023-10-08 15:29 Arthur Zamarin
2022-08-28 15:16 Andreas Sturmlechner
2021-02-21 19:50 Sam James
2021-02-21  8:10 Sam James
2021-02-09 21:41 Sam James
2021-02-09 21:37 Sam James
2021-02-09 14:11 Sergei Trofimovich
2020-10-26 14:02 Marc Schiffbauer
2020-10-07 23:20 Marc Schiffbauer
2020-09-19 15:45 Marc Schiffbauer
2020-09-19 15:44 Marc Schiffbauer
2020-09-05 16:17 Thomas Deutschmann
2020-09-05 15:19 Sam James
2020-06-07 21:24 Marc Schiffbauer
2020-06-07 21:24 Marc Schiffbauer
2020-05-13  5:22 Marc Schiffbauer
2020-05-05  6:14 Marc Schiffbauer
2020-05-05  6:13 Marc Schiffbauer
2019-03-11 11:05 Marc Schiffbauer
2019-02-24 12:01 Marc Schiffbauer
2019-02-22 19:03 Marc Schiffbauer
2019-02-22 19:03 Marc Schiffbauer
2018-11-19 10:24 Marc Schiffbauer
2018-02-14 14:17 Jason Zaman
2018-02-06 18:55 Thomas Deutschmann
2018-02-02 12:40 Marc Schiffbauer
2018-02-02  2:13 Marc Schiffbauer

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=1694759864.f03c9e3ab64eedcb5fa95275a110190d1031b319.arthurzam@gentoo \
    --to=arthurzam@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