summaryrefslogtreecommitdiff
path: root/community/darkstat
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2012-10-18 10:38:15 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2012-10-18 10:38:15 -0300
commit59d570b2f4d752b3cd4dfcdf2ce8c75993d9c2eb (patch)
tree452fb18314fb6d4393552d1ef1190a3168353f44 /community/darkstat
parentbb3524a1ba0370174d0c586ae94cd503b562a207 (diff)
parent9e3985ed7c9851da65023a0ab3d0739cce1858e2 (diff)
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts: community-staging/gambas2/PKGBUILD community-staging/gambas3/PKGBUILD community-staging/libextractor/PKGBUILD community-staging/pdf2djvu/PKGBUILD community/dante/PKGBUILD community/gnunet/PKGBUILD community/luafilesystem/PKGBUILD community/luajit/PKGBUILD community/python-mpi4py/PKGBUILD community/python-psutil/PKGBUILD extra/gnome-python-desktop/PKGBUILD extra/pycrypto/PKGBUILD extra/pygobject/PKGBUILD extra/pygobject2/PKGBUILD extra/pyopenssl/PKGBUILD extra/python/PKGBUILD extra/vde2/PKGBUILD gnome-unstable/clutter-gtk/PKGBUILD gnome-unstable/clutter/PKGBUILD gnome-unstable/eog/PKGBUILD gnome-unstable/evolution-data-server/PKGBUILD gnome-unstable/gcr/PKGBUILD gnome-unstable/gnome-desktop/PKGBUILD gnome-unstable/gnome-keyring/PKGBUILD gnome-unstable/gnome-themes-standard/PKGBUILD gnome-unstable/gobject-introspection/PKGBUILD staging/kdebase-workspace/PKGBUILD testing/iputils/PKGBUILD testing/php/PKGBUILD testing/php/php-fpm.conf.in.patch testing/php/php-fpm.service testing/php/rc.d.php-fpm
Diffstat (limited to 'community/darkstat')
-rw-r--r--community/darkstat/PKGBUILD9
-rw-r--r--community/darkstat/darkstat.service15
2 files changed, 21 insertions, 3 deletions
diff --git a/community/darkstat/PKGBUILD b/community/darkstat/PKGBUILD
index 17576f9f3..a1fc00314 100644
--- a/community/darkstat/PKGBUILD
+++ b/community/darkstat/PKGBUILD
@@ -1,20 +1,22 @@
-# $Id: PKGBUILD 69208 2012-04-10 03:44:54Z spupykin $
+# $Id: PKGBUILD 78362 2012-10-17 15:24:25Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
pkgname=darkstat
pkgver=3.0.715
-pkgrel=2
-pkgdesc="Network statistics gatherer (packet sniffer)."
+pkgrel=3
+pkgdesc="Network statistics gatherer (packet sniffer)"
url="http://dmr.ath.cx/net/darkstat/"
license=("GPL")
arch=(i686 x86_64 'mips64el')
depends=('libpcap' 'zlib' 'gcc-libs')
source=(http://dmr.ath.cx/net/darkstat/darkstat-$pkgver.tar.bz2
darkstat
+ darkstat.service
darkstat.conf)
install=darkstat.install
md5sums=('5b7abc7538dcd8e30667dac150e81d77'
'1021f95fabe16cfab4c95f6264d535e5'
+ 'd22a09fa1f66b2b1afb8521ceea693d6'
'aa9a9effd1e8f08860afcd6439fc94c5')
build() {
@@ -30,4 +32,5 @@ package() {
# darkstat script
install -D -m755 "$srcdir"/darkstat "$pkgdir"/etc/rc.d/darkstat
install -D -m644 "$srcdir"/darkstat.conf "$pkgdir"/etc/conf.d/darkstat.conf
+ install -Dm0644 $srcdir/$pkgname.service $pkgdir/usr/lib/systemd/system/$pkgname.service
}
diff --git a/community/darkstat/darkstat.service b/community/darkstat/darkstat.service
new file mode 100644
index 000000000..5e303411f
--- /dev/null
+++ b/community/darkstat/darkstat.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=Network statistics gatherer (packet sniffer)
+
+[Service]
+User=couchdb
+Type=forking
+EnvironmentFile=/etc/conf.d/darkstat.conf
+PIDFile=/var/darkstat/darkstat.pid
+ExecStart=/usr/sbin/darkstat --user "darkstat" --chroot "/var/darkstat" \
+ --import "darkstat.dat" --export "darkstat.dat" \
+ --pidfile /var/darkstat/darkstat.pid \
+ -i "$DARKSTAT_IFACE" $DARKSTAT_ARGS
+
+[Install]
+WantedBy=multi-user.target