From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9378A138359 for ; Sat, 19 Sep 2020 15:44:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D2325E070D; Sat, 19 Sep 2020 15:44:48 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B4BA9E070D for ; Sat, 19 Sep 2020 15:44:48 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 90909340EA7 for ; Sat, 19 Sep 2020 15:44:47 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 35EA6342 for ; Sat, 19 Sep 2020 15:44:46 +0000 (UTC) From: "Marc Schiffbauer" 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" Message-ID: <1600530275.f04074c4e0c193f7a15daa6fe44883d9cb502a23.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.16.0.ebuild X-VCS-Directories: app-admin/restart-services/ X-VCS-Committer: mschiff X-VCS-Committer-Name: Marc Schiffbauer X-VCS-Revision: f04074c4e0c193f7a15daa6fe44883d9cb502a23 X-VCS-Branch: master Date: Sat, 19 Sep 2020 15:44:46 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: eaf0736c-fee0-41dc-a7e8-a53ab9c7bad2 X-Archives-Hash: 645256d9d38445786cdc7d51767bef5a commit: f04074c4e0c193f7a15daa6fe44883d9cb502a23 Author: Marc Schiffbauer gentoo org> AuthorDate: Sat Sep 19 15:44:17 2020 +0000 Commit: Marc Schiffbauer gentoo org> CommitDate: Sat Sep 19 15:44:35 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f04074c4 app-admin/restart-services: add new version Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Marc Schiffbauer gentoo.org> app-admin/restart-services/Manifest | 1 + .../restart-services-0.16.0.ebuild | 63 ++++++++++++++++++++++ 2 files changed, 64 insertions(+) diff --git a/app-admin/restart-services/Manifest b/app-admin/restart-services/Manifest index 40db7abc279..607f852e50c 100644 --- a/app-admin/restart-services/Manifest +++ b/app-admin/restart-services/Manifest @@ -1,2 +1,3 @@ DIST restart-services-0.14.1.tgz 20909 BLAKE2B 2f6b74fc6094be83e1872d2a6ca7abb02a49b5db65d81cd37f8161bac148e5fe0614502f1f06356ff9cd6c6ba03c416dae1eec3a86f48dc011bc6e28c1b076e3 SHA512 3434c4b6cdf9d02b035eba2cc67cebe8e06a2cf31c2d8627063b84224dcb6d44e276e1fcb82221ad77ab7ee7e16fa7ee58fb94b7849d40e6786d3fcfb6087866 DIST restart-services-0.15.2.tgz 23688 BLAKE2B e043b872d55109ad176a6437006cf581a993e72e460bb034625ed612f9ceca85ef91a20e90f23bcecc964caa527cfa4bc39d97c52487b7bf92eec21dc2e35c48 SHA512 afe7c96aabf61d664460d5d68447df09b3d9a54098887727db796821220f5ddd5a3b5030d995d5a6c3128e4a2b8494b9a0a3b86b5c805d56c0e201058ad04327 +DIST restart-services-0.16.0.tgz 24531 BLAKE2B fea233755d214a502096551226078a7fe15a75ccf937bbf8a75c78b7a294b5977da453f54f37e3d7e65f131e49e018bf08bec6245a3aa46ec6c3bec94019f5ad SHA512 57b3514132c02839cafbfd9152445a6482cf3591e22d18436a4d894061b59d2495863a912a87495559e9945a39715e7e798dca44dafd52c26b5412d749f37cc2 diff --git a/app-admin/restart-services/restart-services-0.16.0.ebuild b/app-admin/restart-services/restart-services-0.16.0.ebuild new file mode 100644 index 00000000000..874ac8f3552 --- /dev/null +++ b/app-admin/restart-services/restart-services-0.16.0.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DESCRIPTION="Tool to manage OpenRC 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 ~x86" +IUSE="" + +DEPEND="" +RDEPEND=" + app-admin/lib_users + sys-apps/openrc + app-portage/portage-utils +" + +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 's/^#include/include/' "${D}"/etc/restart-services.conf + cat>"${D}"/etc/restart-services.d/00-local.conf<<-EOF + # 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() { + local MAJOR MINOR + # migrate config data for versions < 0.13.2 + if [[ $REPLACING_VERSIONS ]]; then + MAJOR=${REPLACING_VERSIONS%%.*} + MINOR=${REPLACING_VERSIONS%.*} + MINOR=${MINOR#*.} + + if [[ $MAJOR -eq 0 && $MINOR -lt 14 ]]; then + einfo "Checking for old config" + if [[ -f /etc/restart_services.conf ]]; then + 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 + 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 + einfo "done" + fi + fi +}