From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1610124-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id DDE98158041
	for <garchives@archives.gentoo.org>; Tue, 12 Mar 2024 15:19:39 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 225DBE29A9;
	Tue, 12 Mar 2024 15:19:39 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 0BC06E29A9
	for <gentoo-commits@lists.gentoo.org>; Tue, 12 Mar 2024 15:19:39 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 3FF9E33B864
	for <gentoo-commits@lists.gentoo.org>; Tue, 12 Mar 2024 15:19:38 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id C051513DE
	for <gentoo-commits@lists.gentoo.org>; Tue, 12 Mar 2024 15:19:36 +0000 (UTC)
From: "Marc Schiffbauer" <mschiff@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Marc Schiffbauer" <mschiff@gentoo.org>
Message-ID: <1710256768.3a45eb92b4a944b1e4f9d805c84f76a0c51d91e1.mschiff@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/restart-services/
X-VCS-Repository: repo/gentoo
X-VCS-Files: app-admin/restart-services/Manifest app-admin/restart-services/restart-services-0.17.0-r1.ebuild
X-VCS-Directories: app-admin/restart-services/
X-VCS-Committer: mschiff
X-VCS-Committer-Name: Marc Schiffbauer
X-VCS-Revision: 3a45eb92b4a944b1e4f9d805c84f76a0c51d91e1
X-VCS-Branch: master
Date: Tue, 12 Mar 2024 15:19:36 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 37966637-35bf-4a1a-b110-b3541127ecbf
X-Archives-Hash: e05f0900f4728b57d26d287bb8f80479

commit:     3a45eb92b4a944b1e4f9d805c84f76a0c51d91e1
Author:     Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 12 15:18:49 2024 +0000
Commit:     Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
CommitDate: Tue Mar 12 15:19:28 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a45eb92

Revert "app-admin/restart-services: drop 0.17.0-r1"

This reverts commit bab8e8c71d636614c31504c4e6b788d9693cd89c.

Signed-off-by: Marc Schiffbauer <mschiff <AT> gentoo.org>

 app-admin/restart-services/Manifest                |  1 +
 .../restart-services-0.17.0-r1.ebuild              | 61 ++++++++++++++++++++++
 2 files changed, 62 insertions(+)

diff --git a/app-admin/restart-services/Manifest b/app-admin/restart-services/Manifest
index ddccc861195b..5114080c53de 100644
--- a/app-admin/restart-services/Manifest
+++ b/app-admin/restart-services/Manifest
@@ -1,2 +1,3 @@
+DIST restart-services-0.17.0.tgz 25643 BLAKE2B 5999e12e38207d00266928504da05c00482c8297b7fee634f302f09cfa09e206bcf9d5a558d2a91e5de1d97318025fa995fbc3a61f0d0e74b8dfb1af3db8670b SHA512 c11ca431fbbc6899ab268e8979049144448479d953ed7373cc7483cca2c03cd4041a1ca1e47c0e810f91a18a43aa32cc305a4ea791e8b992246f972e0fbb19ab
 DIST restart-services-1.0.tgz 25872 BLAKE2B 912c3e2c3cd49732369a5a4452be1f171c33cd3364cf3224b4443f6f21ef0fccd4c533edd79214cc2dae00cea558409eacbcef4b1566bef402f1850537432c63 SHA512 9c4e269ac6db8bf13c512cc3556a9356b4b44960dd562cf633df6e03db57677c05738edc46010b01976a6b0ee2152ac1e8d410a6c9d98142295ff0cbd3f93df2
 DIST restart-services-1.1.tgz 26227 BLAKE2B 7893aa01c965fca24b42312f6b01cac46b0bbd3d8304865539adb00cc6f7cdcf8cff1a912cce98534eb4f3bd0af0e01df3387dab87b8e53193152b3966ff3c9b SHA512 165e4b07fa9a15a749f8e50064da83e9e1749f465248259de5b0dc97c2ef249131e1e993d8e34975628ed69b35e194b3d75a578f6279188f76236d02a970ac4b

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..aee74d1cc63c
--- /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
+}