diff options
author | Jeroen Roovers <jer@gentoo.org> | 2014-05-04 14:10:51 +0000 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2014-05-04 14:10:51 +0000 |
commit | 2e5530007622ed28981ab2065393276ca20fef4d (patch) | |
tree | 76293a6ff530e57f0f403ee55ceabb06c859471d /net-analyzer/darkstat | |
parent | version bump fix #508224 thx to clabbe.montjoie and Thomas D. (diff) | |
download | gentoo-2-2e5530007622ed28981ab2065393276ca20fef4d.tar.gz gentoo-2-2e5530007622ed28981ab2065393276ca20fef4d.tar.bz2 gentoo-2-2e5530007622ed28981ab2065393276ca20fef4d.zip |
Version bump.
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key A792A613)
Diffstat (limited to 'net-analyzer/darkstat')
-rw-r--r-- | net-analyzer/darkstat/ChangeLog | 7 | ||||
-rw-r--r-- | net-analyzer/darkstat/darkstat-3.0.718.ebuild | 61 |
2 files changed, 67 insertions, 1 deletions
diff --git a/net-analyzer/darkstat/ChangeLog b/net-analyzer/darkstat/ChangeLog index 292af3f69728..3dffc2610b09 100644 --- a/net-analyzer/darkstat/ChangeLog +++ b/net-analyzer/darkstat/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-analyzer/darkstat # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/darkstat/ChangeLog,v 1.58 2014/01/20 15:53:10 ago Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/darkstat/ChangeLog,v 1.59 2014/05/04 14:10:50 jer Exp $ + +*darkstat-3.0.718 (04 May 2014) + + 04 May 2014; Jeroen Roovers <jer@gentoo.org> +darkstat-3.0.718.ebuild: + Version bump. 20 Jan 2014; Agostino Sarubbo <ago@gentoo.org> darkstat-3.0.717.ebuild: Stable for ppc, wrt bug #495830 diff --git a/net-analyzer/darkstat/darkstat-3.0.718.ebuild b/net-analyzer/darkstat/darkstat-3.0.718.ebuild new file mode 100644 index 000000000000..1638efdf2ebd --- /dev/null +++ b/net-analyzer/darkstat/darkstat-3.0.718.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/darkstat/darkstat-3.0.718.ebuild,v 1.1 2014/05/04 14:10:51 jer Exp $ + +EAPI=5 + +inherit eutils user + +DESCRIPTION="Network traffic analyzer with cute web interface" +HOMEPAGE="http://unix4lyfe.org/darkstat/" +SRC_URI="http://unix4lyfe.org/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" + +DEPEND="net-libs/libpcap" +RDEPEND="${DEPEND}" + +DARKSTAT_CHROOT_DIR=${DARKSTAT_CHROOT_DIR:-/var/lib/darkstat} + +DOCS=( AUTHORS ChangeLog README NEWS ) + +src_prepare() { + epatch_user +} + +src_configure() { + econf --disable-debug --with-privdrop-user=darkstat +} + +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}\"" +} |