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 6076313933E for ; Tue, 13 Jul 2021 23:06:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A223CE0D86; Tue, 13 Jul 2021 23:06:12 +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 848DFE0D86 for ; Tue, 13 Jul 2021 23:06:12 +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 CAE4D33BEE9 for ; Tue, 13 Jul 2021 23:06:10 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 152B57C0 for ; Tue, 13 Jul 2021 23:06:09 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1626217560.1095c83861c818ccde0cdd2df9aade11e3c9c057.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/bopm/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/bopm/bopm-3.1.3-r4.ebuild net-misc/bopm/bopm-3.1.3-r5.ebuild X-VCS-Directories: net-misc/bopm/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 1095c83861c818ccde0cdd2df9aade11e3c9c057 X-VCS-Branch: master Date: Tue, 13 Jul 2021 23:06:09 +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: 7598a6ce-e6a5-449a-be4a-79de7abee90b X-Archives-Hash: 9ccec338dcecb3af35cd09a475c69b19 commit: 1095c83861c818ccde0cdd2df9aade11e3c9c057 Author: Sam James gentoo org> AuthorDate: Tue Jul 13 22:54:58 2021 +0000 Commit: Sam James gentoo org> CommitDate: Tue Jul 13 23:06:00 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1095c838 net-misc/bopm: migrate to GLEP 81 Closes: https://bugs.gentoo.org/781407 Signed-off-by: Sam James gentoo.org> .../{bopm-3.1.3-r4.ebuild => bopm-3.1.3-r5.ebuild} | 23 +++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/net-misc/bopm/bopm-3.1.3-r4.ebuild b/net-misc/bopm/bopm-3.1.3-r5.ebuild similarity index 78% rename from net-misc/bopm/bopm-3.1.3-r4.ebuild rename to net-misc/bopm/bopm-3.1.3-r5.ebuild index d90d4d376cd..ca2ffd15a08 100644 --- a/net-misc/bopm/bopm-3.1.3-r4.ebuild +++ b/net-misc/bopm/bopm-3.1.3-r5.ebuild @@ -3,7 +3,7 @@ EAPI=7 -inherit autotools user +inherit autotools DESCRIPTION="Blitzed Open Proxy Monitor" HOMEPAGE="https://github.com/blitzed-org/bopm" @@ -13,16 +13,14 @@ LICENSE="GPL-2" SLOT="0" KEYWORDS="~alpha ~amd64 ~ppc ~x86" +RDEPEND="acct-user/opm" + PATCHES=( "${FILESDIR}"/${P}-remove-njabl.patch "${FILESDIR}"/${P}-autotools.patch "${FILESDIR}"/${P}-quarantine-bad-pid-file.patch ) -pkg_setup() { - enewuser bopm -} - src_prepare() { sed -i \ -e "s!/some/path/bopm.pid!/run/${PN}/${PN}.pid!" \ @@ -55,8 +53,19 @@ src_install() { dodir /var/log/bopm fperms 700 /var/log/bopm - fowners bopm:root /var/log/bopm + fowners opm:root /var/log/bopm fperms 600 /etc/bopm.conf - fowners bopm:root /etc/bopm.conf + fowners opm:root /etc/bopm.conf +} + +pkg_postinst() { + if [[ -n "${REPLACING_VERSIONS}" ]] ; then + if has_version "<${CATEGORY}/${PF}" ; then + ewarn "You need to update permissions on:" + ewarn "- /var/log/bopm" + ewarn "- /etc/bopm.conf" + ewarn "to be owned by opm:root" + fi + fi }