summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-07-13 23:54:58 +0100
committerSam James <sam@gentoo.org>2021-07-14 00:06:00 +0100
commit1095c83861c818ccde0cdd2df9aade11e3c9c057 (patch)
tree351772a9119c6a6e967c84f2a6adb43c162e1f8d /net-misc/bopm
parentacct-user/opm: add 0 (diff)
downloadgentoo-1095c83861c818ccde0cdd2df9aade11e3c9c057.tar.gz
gentoo-1095c83861c818ccde0cdd2df9aade11e3c9c057.tar.bz2
gentoo-1095c83861c818ccde0cdd2df9aade11e3c9c057.zip
net-misc/bopm: migrate to GLEP 81
Closes: https://bugs.gentoo.org/781407 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-misc/bopm')
-rw-r--r--net-misc/bopm/bopm-3.1.3-r5.ebuild (renamed from net-misc/bopm/bopm-3.1.3-r4.ebuild)23
1 files 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
index d90d4d376cd0..ca2ffd15a08c 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
}