commit: 1095c83861c818ccde0cdd2df9aade11e3c9c057 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Tue Jul 13 22:54:58 2021 +0000 Commit: Sam James <sam <AT> gentoo <DOT> 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 <sam <AT> 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 }
