summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Popov <pinkbyte@gentoo.org>2013-08-26 08:05:12 +0000
committerSergey Popov <pinkbyte@gentoo.org>2013-08-26 08:05:12 +0000
commit0bc6b309af99f556bc8fb7f405a7e27802d5a9ff (patch)
tree95faf18a791889287a79f3df9325db388d2aedb8 /net-analyzer
parentConvert to distutils-r1. (diff)
downloadgentoo-2-0bc6b309af99f556bc8fb7f405a7e27802d5a9ff.tar.gz
gentoo-2-0bc6b309af99f556bc8fb7f405a7e27802d5a9ff.tar.bz2
gentoo-2-0bc6b309af99f556bc8fb7f405a7e27802d5a9ff.zip
Version bump
(Portage version: 2.2.0/cvs/Linux x86_64, signed Manifest commit with key 0x1F357D42)
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/darkstat/ChangeLog9
-rw-r--r--net-analyzer/darkstat/darkstat-3.0.717.ebuild62
2 files changed, 69 insertions, 2 deletions
diff --git a/net-analyzer/darkstat/ChangeLog b/net-analyzer/darkstat/ChangeLog
index bdcd6e633c86..6f5c8478d60d 100644
--- a/net-analyzer/darkstat/ChangeLog
+++ b/net-analyzer/darkstat/ChangeLog
@@ -1,6 +1,11 @@
# 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.54 2012/06/13 15:59:35 jer Exp $
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/darkstat/ChangeLog,v 1.55 2013/08/26 08:05:12 pinkbyte Exp $
+
+*darkstat-3.0.717 (26 Aug 2013)
+
+ 26 Aug 2013; Sergey Popov <pinkbyte@gentoo.org> +darkstat-3.0.717.ebuild:
+ Version bump
13 Jun 2012; Jeroen Roovers <jer@gentoo.org>
-files/darkstat-3.0.712-dlt_raw.patch, -darkstat-3.0.714.ebuild:
diff --git a/net-analyzer/darkstat/darkstat-3.0.717.ebuild b/net-analyzer/darkstat/darkstat-3.0.717.ebuild
new file mode 100644
index 000000000000..31db4f80fa36
--- /dev/null
+++ b/net-analyzer/darkstat/darkstat-3.0.717.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/darkstat/darkstat-3.0.717.ebuild,v 1.1 2013/08/26 08:05:12 pinkbyte Exp $
+
+EAPI=5
+
+inherit eutils user
+
+DESCRIPTION="darkstat is a network traffic analyzer"
+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 \
+ --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}\""
+}