diff options
author | 2004-02-18 00:43:59 +0000 | |
---|---|---|
committer | 2004-02-18 00:43:59 +0000 | |
commit | 801e7526f46b4a8f5a18726b92fe3b5789f3b743 (patch) | |
tree | 2f2649058b0078089392bd19cec92a61ee1abd20 /net-misc/bopm/bopm-3.1.2.ebuild | |
parent | header fix; whitespace fix (diff) | |
download | historical-801e7526f46b4a8f5a18726b92fe3b5789f3b743.tar.gz historical-801e7526f46b4a8f5a18726b92fe3b5789f3b743.tar.bz2 historical-801e7526f46b4a8f5a18726b92fe3b5789f3b743.zip |
Initial version, closes #41376.
Diffstat (limited to 'net-misc/bopm/bopm-3.1.2.ebuild')
-rw-r--r-- | net-misc/bopm/bopm-3.1.2.ebuild | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/net-misc/bopm/bopm-3.1.2.ebuild b/net-misc/bopm/bopm-3.1.2.ebuild new file mode 100644 index 000000000000..ddf5022e16c8 --- /dev/null +++ b/net-misc/bopm/bopm-3.1.2.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/bopm/bopm-3.1.2.ebuild,v 1.1 2004/02/18 00:43:59 zul Exp $ + +inherit eutils + +DESCRIPTION="Blitzed Open Proxy Monitor" +HOMEPAGE="http://www.blitzed.org/bopm/" +SRC_URI="http://static.blitzed.org/www.blitzed.org/${PN}/files/${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +RDEPEND="virtual/glibc" +DEPEND="${RDEPEND} + sys-apps/sed" + +src_compile() { + econf \ + --sysconfdir=/etc \ + --datadir=/usr/share/doc/${PF} \ + --localstatedir=/var/log/bopm || die "econf failed" + emake || die "emake failed" +} + +src_install () { + sed -i \ + -e 's!/some/path/bopm.pid!/var/run/bopm/bopm.pid!' \ + -e 's!/some/path/scan.log!/var/log/bopm/scan.log!' bopm.conf.sample + + make \ + DESTDIR=${D} \ + sysconfdir=${D}/etc \ + datadir=/usr/share/doc/${PF} \ + localstatedir=${D}/var/log/bopm \ + install || die "install failed" + + fperms 600 /etc/bopm.conf + + # Remove libopm related files, because bopm links statically to it + # If anybody wants libopm, please install net-libs/libopm + rm -r ${D}/usr/lib ${D}/usr/include + + exeinto /etc/init.d + newexe ${FILESDIR}/bopm.init.d bopm + insinto /etc/conf.d + newins ${FILESDIR}/bopm.conf.d bopm + + dodoc CREDITS ChangeLog INSTALL LICENSE README TODO +} + +pkg_postinst() { + enewuser bopm + + install -d -m 0700 -o bopm -g root ${ROOT}/var/log/bopm + install -d -m 0700 -o bopm -g root ${ROOT}/var/run/bopm + chown bopm ${ROOT}/etc/bopm.conf +} |