diff options
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 } |