From 420eeee727d39d869d864caddb04a80dafda7160 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 17 Oct 2017 17:51:45 +0100 Subject: gentoo resync : 17.10.2017 --- net-misc/bopm/bopm-3.1.3-r4.ebuild | 65 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 net-misc/bopm/bopm-3.1.3-r4.ebuild (limited to 'net-misc/bopm/bopm-3.1.3-r4.ebuild') diff --git a/net-misc/bopm/bopm-3.1.3-r4.ebuild b/net-misc/bopm/bopm-3.1.3-r4.ebuild new file mode 100644 index 000000000000..5c2096926f29 --- /dev/null +++ b/net-misc/bopm/bopm-3.1.3-r4.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools user + +DESCRIPTION="Blitzed Open Proxy Monitor" +HOMEPAGE="https://github.com/blitzed-org/bopm" +SRC_URI="http://static.blitzed.org/www.blitzed.org/${PN}/files/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ppc ~x86" +IUSE="" + +RDEPEND="" +DEPEND="${RDEPEND}" + +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!" \ + -e "s!/some/path/scan.log!/var/log/${PN}/scan.log!" \ + bopm.conf.sample || die + + mv configure.{in,ac} || die + mv src/libopm/configure.{in,ac} || die + + default + cp bopm.conf{.sample,} || die + + eautoreconf +} + +src_configure() { + econf --localstatedir="${EPREFIX}"/var/log/${PN} +} + +src_install() { + default + + # Remove libopm related files, because bopm links statically to it + # If anybody wants libopm, please install net-libs/libopm + rm -r "${ED}"usr/$(get_libdir) "${ED}"usr/include || die + + newinitd "${FILESDIR}"/bopm.init.d-r2 ${PN} + newconfd "${FILESDIR}"/bopm.conf.d-r1 ${PN} + + dodir /var/log/bopm + fperms 700 /var/log/bopm + fowners bopm:root /var/log/bopm + + fperms 600 /etc/bopm.conf + fowners bopm:root /etc/bopm.conf +} -- cgit v1.2.3