diff options
author | Chuck Short <zul@gentoo.org> | 2004-02-18 00:43:59 +0000 |
---|---|---|
committer | Chuck Short <zul@gentoo.org> | 2004-02-18 00:43:59 +0000 |
commit | d32925d3662889335a822bd219231a9b7d033046 (patch) | |
tree | 4e65c757be29e463ec66d6a9ca9bc3632fc13594 /net-misc/bopm | |
parent | header fix; whitespace fix (Manifest recommit) (diff) | |
download | gentoo-2-d32925d3662889335a822bd219231a9b7d033046.tar.gz gentoo-2-d32925d3662889335a822bd219231a9b7d033046.tar.bz2 gentoo-2-d32925d3662889335a822bd219231a9b7d033046.zip |
Initial version, closes #41376.
Diffstat (limited to 'net-misc/bopm')
-rw-r--r-- | net-misc/bopm/ChangeLog | 10 | ||||
-rw-r--r-- | net-misc/bopm/Manifest | 2 | ||||
-rw-r--r-- | net-misc/bopm/bopm-3.1.2.ebuild | 59 | ||||
-rw-r--r-- | net-misc/bopm/files/bopm.conf.d | 7 | ||||
-rw-r--r-- | net-misc/bopm/files/bopm.init.d | 23 | ||||
-rw-r--r-- | net-misc/bopm/files/digest-bopm-3.1.2 | 1 | ||||
-rw-r--r-- | net-misc/bopm/metadata.xml | 5 |
7 files changed, 107 insertions, 0 deletions
diff --git a/net-misc/bopm/ChangeLog b/net-misc/bopm/ChangeLog new file mode 100644 index 000000000000..522f7d57dc55 --- /dev/null +++ b/net-misc/bopm/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for net-misc/bopm +# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/bopm/ChangeLog,v 1.1 2004/02/18 00:43:58 zul Exp $ + +*bopm-3.1.2 (17 Feb 2004) + + 17 Feb 2004; Chuck Short <zul@gentoo.org> bopm-3.1.2.ebuild: + Initial version, ebuild written by Sven Wegener <sven.wegener@stealer.net> + Closes #41376. + diff --git a/net-misc/bopm/Manifest b/net-misc/bopm/Manifest new file mode 100644 index 000000000000..1f8397cb23e5 --- /dev/null +++ b/net-misc/bopm/Manifest @@ -0,0 +1,2 @@ +MD5 8c0204917e53cc25af65e09c3c3f2a03 bopm-3.1.2.ebuild 1434 +MD5 36f48b28d0fc536e21e69aa648526fee files/digest-bopm-3.1.2 62 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 +} diff --git a/net-misc/bopm/files/bopm.conf.d b/net-misc/bopm/files/bopm.conf.d new file mode 100644 index 000000000000..ac8dd87d8dc1 --- /dev/null +++ b/net-misc/bopm/files/bopm.conf.d @@ -0,0 +1,7 @@ +# 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/files/bopm.conf.d,v 1.1 2004/02/18 00:43:59 zul Exp $ + +# Config file for /etc/init.d/bopm + +BOPM_UID=bopm diff --git a/net-misc/bopm/files/bopm.init.d b/net-misc/bopm/files/bopm.init.d new file mode 100644 index 000000000000..54a15c00b7e1 --- /dev/null +++ b/net-misc/bopm/files/bopm.init.d @@ -0,0 +1,23 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/net-misc/bopm/files/bopm.init.d,v 1.1 2004/02/18 00:43:59 zul Exp $ + +opts="depend start stop" + +depend() { + need net +} + +start() { + ebegin "Starting Blitzed Open Proxy Monitor" + start-stop-daemon --start --quiet --chuid ${BOPM_UID} --exec /usr/bin/bopm + eend $? +} + +stop() { + ebegin "Stopping Blitzed Open Proxy Monitor" + kill $(</var/run/bopm/bopm.pid) + eend $? + rm -f /var/run/bopm/bopm.pid +} diff --git a/net-misc/bopm/files/digest-bopm-3.1.2 b/net-misc/bopm/files/digest-bopm-3.1.2 new file mode 100644 index 000000000000..68596e1d4240 --- /dev/null +++ b/net-misc/bopm/files/digest-bopm-3.1.2 @@ -0,0 +1 @@ +MD5 ab1b7494c4242eef957b5fca61c92b18 bopm-3.1.2.tar.gz 608855 diff --git a/net-misc/bopm/metadata.xml b/net-misc/bopm/metadata.xml new file mode 100644 index 000000000000..6ef15e900f17 --- /dev/null +++ b/net-misc/bopm/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>net-irc</herd> +</pkgmetadata> |