From 342168e2901059933b67ec0d1dbda3220c489cd0 Mon Sep 17 00:00:00 2001 From: Jeroen Roovers Date: Tue, 6 Mar 2012 19:01:01 +0000 Subject: Version bump. (Portage version: 2.2.0_alpha90/cvs/Linux x86_64) --- net-analyzer/darkstat/ChangeLog | 8 +++- net-analyzer/darkstat/darkstat-3.0.713.ebuild | 59 --------------------------- net-analyzer/darkstat/darkstat-3.0.715.ebuild | 57 ++++++++++++++++++++++++++ 3 files changed, 64 insertions(+), 60 deletions(-) delete mode 100644 net-analyzer/darkstat/darkstat-3.0.713.ebuild create mode 100644 net-analyzer/darkstat/darkstat-3.0.715.ebuild (limited to 'net-analyzer/darkstat') diff --git a/net-analyzer/darkstat/ChangeLog b/net-analyzer/darkstat/ChangeLog index 372d44ab1bd5..b6167f193b56 100644 --- a/net-analyzer/darkstat/ChangeLog +++ b/net-analyzer/darkstat/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-analyzer/darkstat # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/darkstat/ChangeLog,v 1.48 2012/02/06 18:29:59 ranger Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/darkstat/ChangeLog,v 1.49 2012/03/06 19:01:01 jer Exp $ + +*darkstat-3.0.715 (06 Mar 2012) + + 06 Mar 2012; Jeroen Roovers -darkstat-3.0.713.ebuild, + +darkstat-3.0.715.ebuild: + Version bump. 06 Feb 2012; Brent Baude darkstat-3.0.714.ebuild: Marking darkstat-3.0.714 ppc for bug 393845 diff --git a/net-analyzer/darkstat/darkstat-3.0.713.ebuild b/net-analyzer/darkstat/darkstat-3.0.713.ebuild deleted file mode 100644 index e5235350d00d..000000000000 --- a/net-analyzer/darkstat/darkstat-3.0.713.ebuild +++ /dev/null @@ -1,59 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/darkstat/darkstat-3.0.713.ebuild,v 1.4 2010/06/26 16:15:42 nixnut Exp $ - -EAPI="2" -inherit eutils - -DESCRIPTION="darkstat is a network traffic analyzer" -HOMEPAGE="http://dmr.ath.cx/net/darkstat/" -SRC_URI="http://dmr.ath.cx/net/darkstat/${P}.tar.bz2" - -KEYWORDS="amd64 ppc x86" -IUSE="" -LICENSE="GPL-2" -SLOT="0" - -DEPEND="net-libs/libpcap" -RDEPEND="${DEPEND}" - -DARKSTAT_CHROOT_DIR=${DARKSTAT_CHROOT_DIR:-/var/lib/darkstat} - -src_configure() { - econf \ - --with-privdrop-user=darkstat \ - --with-chroot-dir="${DARKSTAT_CHROOT_DIR}" -} - -src_install() { - emake DESTDIR="${D}" install || die "installation failed." - - dodoc AUTHORS ChangeLog README NEWS || die - - newinitd "${FILESDIR}"/darkstat-init.new darkstat || die - newconfd "${FILESDIR}"/darkstat-confd.new darkstat || die - - sed -i -e "s:__CHROOT__:${DARKSTAT_CHROOT_DIR}:g" "${D}"/etc/conf.d/darkstat - sed -i -e "s:__CHROOT__:${DARKSTAT_CHROOT_DIR}:g" "${D}"/etc/init.d/darkstat - - keepdir "${DARKSTAT_CHROOT_DIR}" - chown darkstat:0 "${D}${DARKSTAT_CHROOT_DIR}" -} - -pkg_preinst() { - enewuser darkstat -} - -pkg_postinst() { - # Workaround bug #141619 - DARKSTAT_CHROOT_DIR=`sed -n 's/^#CHROOT=\(.*\)/\1/p' "${ROOT}"etc/conf.d/darkstat` - chown darkstat:0 "${ROOT}${DARKSTAT_CHROOT_DIR}" - - elog "To start different darkstat instances which will listen on a different" - elog "interfaces create in /etc/init.d directory the 'darkstat.if' symlink to" - elog "darkstat script where 'if' is the name of the interface." - elog "Also in /etc/conf.d directory copy darkstat to darkstat.if" - elog "and edit it to change default values." - elog - elog "darkstat's default chroot directory is: \"${ROOT}${DARKSTAT_CHROOT_DIR}\"" -} diff --git a/net-analyzer/darkstat/darkstat-3.0.715.ebuild b/net-analyzer/darkstat/darkstat-3.0.715.ebuild new file mode 100644 index 000000000000..79ecddcdaa72 --- /dev/null +++ b/net-analyzer/darkstat/darkstat-3.0.715.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/darkstat/darkstat-3.0.715.ebuild,v 1.1 2012/03/06 19:01:01 jer Exp $ + +EAPI=4 +inherit eutils + +DESCRIPTION="darkstat is a network traffic analyzer" +HOMEPAGE="http://dmr.ath.cx/net/darkstat/" +SRC_URI="http://dmr.ath.cx/net/${PN}/${P}.tar.bz2" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +DEPEND="net-libs/libpcap" +RDEPEND="${DEPEND}" + +DARKSTAT_CHROOT_DIR=${DARKSTAT_CHROOT_DIR:-/var/lib/darkstat} +DOCS=( AUTHORS ChangeLog README NEWS ) + +src_configure() { + econf \ + --with-privdrop-user=darkstat \ + --with-chroot-dir="${DARKSTAT_CHROOT_DIR}" +} + +src_install() { + default + + newinitd "${FILESDIR}"/darkstat-init.new darkstat + newconfd "${FILESDIR}"/darkstat-confd.new darkstat + + sed -i -e "s:__CHROOT__:${DARKSTAT_CHROOT_DIR}:g" "${D}"/etc/conf.d/darkstat + sed -i -e "s:__CHROOT__:${DARKSTAT_CHROOT_DIR}:g" "${D}"/etc/init.d/darkstat + + keepdir "${DARKSTAT_CHROOT_DIR}" + chown darkstat:0 "${D}${DARKSTAT_CHROOT_DIR}" +} + +pkg_preinst() { + enewuser darkstat +} + +pkg_postinst() { + # Workaround bug #141619 + DARKSTAT_CHROOT_DIR=`sed -n 's/^#CHROOT=\(.*\)/\1/p' "${ROOT}"etc/conf.d/darkstat` + chown darkstat:0 "${ROOT}${DARKSTAT_CHROOT_DIR}" + + elog "To start different darkstat instances which will listen on a different" + elog "interfaces create in /etc/init.d directory the 'darkstat.if' symlink to" + elog "darkstat script where 'if' is the name of the interface." + elog "Also in /etc/conf.d directory copy darkstat to darkstat.if" + elog "and edit it to change default values." + elog + elog "darkstat's default chroot directory is: \"${ROOT}${DARKSTAT_CHROOT_DIR}\"" +} -- cgit v1.2.3-65-gdbad