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 DD257138335 for ; Fri, 22 Feb 2019 19:04:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 06DF4E07DB; Fri, 22 Feb 2019 19:04:05 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 BB2C1E07DB for ; Fri, 22 Feb 2019 19:04:04 +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 A445733BE95 for ; Fri, 22 Feb 2019 19:04:01 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D6A7451F for ; Fri, 22 Feb 2019 19:03:59 +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: <1550862133.edc824290bc9fb55326580097fdb0c7f948d001e.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.14.3.ebuild X-VCS-Directories: app-admin/restart-services/ X-VCS-Committer: mschiff X-VCS-Committer-Name: Marc Schiffbauer X-VCS-Revision: edc824290bc9fb55326580097fdb0c7f948d001e X-VCS-Branch: master Date: Fri, 22 Feb 2019 19:03:59 +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: 61124603-93f6-4278-892a-691bb68bd2a8 X-Archives-Hash: 84129e4f137fa948bd33fc250fad73ec commit: edc824290bc9fb55326580097fdb0c7f948d001e Author: Marc Schiffbauer gentoo org> AuthorDate: Fri Feb 22 19:01:43 2019 +0000 Commit: Marc Schiffbauer gentoo org> CommitDate: Fri Feb 22 19:02:13 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=edc82429 app-admin/restart-services: bump version Signed-off-by: Marc Schiffbauer gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11 app-admin/restart-services/Manifest | 1 + .../restart-services-0.14.3.ebuild | 62 ++++++++++++++++++++++ 2 files changed, 63 insertions(+) diff --git a/app-admin/restart-services/Manifest b/app-admin/restart-services/Manifest index 64aecb66d24..db3f2781198 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.14.2.tgz 21227 BLAKE2B 9a3f03bbd1995df6f583f8c4228914f098922828b1407c0c8069908ebdbef67599a8a7421b0c404adf2d330632ae83646300a965c514f6746bbd95674ab102ea SHA512 487e8d0a448954be7b79d1c95bffd00d5f875ccb908b8004e18e45752e593fe57713f97c0749e28367bf7606c5cf46556f31de6b018a151f7cd384c88277ca7c +DIST restart-services-0.14.3.tgz 21377 BLAKE2B f99331d66f174a68134722bf00b854d68f2b1deb492c6c6db0f17974dc14b28df1ce3a8669fe42a5085f64216e19003c02e364dcd1a75428060c9ef7ba176f86 SHA512 9c4b9d68db303548957b533edba58635a7bb97149f0cc2e1e270b399c860ff0b42a257a61d9c9b0d45c1704241d0cefda72e7411b9c29f9f80cf159b37908eb1 diff --git a/app-admin/restart-services/restart-services-0.14.3.ebuild b/app-admin/restart-services/restart-services-0.14.3.ebuild new file mode 100644 index 00000000000..1e157177361 --- /dev/null +++ b/app-admin/restart-services/restart-services-0.14.3.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2019 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 +" + +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 +}