summaryrefslogtreecommitdiff
path: root/community/darkstat
diff options
context:
space:
mode:
Diffstat (limited to 'community/darkstat')
-rw-r--r--community/darkstat/PKGBUILD32
-rw-r--r--community/darkstat/darkstat.conf2
-rw-r--r--community/darkstat/darkstat.install20
-rw-r--r--community/darkstat/darkstat.service17
4 files changed, 0 insertions, 71 deletions
diff --git a/community/darkstat/PKGBUILD b/community/darkstat/PKGBUILD
deleted file mode 100644
index b6383d380..000000000
--- a/community/darkstat/PKGBUILD
+++ /dev/null
@@ -1,32 +0,0 @@
-# $Id: PKGBUILD 95314 2013-08-09 09:09:16Z spupykin $
-# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
-
-pkgname=darkstat
-pkgver=3.0.716
-pkgrel=1
-pkgdesc="Network statistics gatherer (packet sniffer)"
-url="http://dmr.ath.cx/net/darkstat/"
-license=("GPL")
-arch=(i686 x86_64)
-depends=('libpcap' 'zlib' 'gcc-libs')
-backup=('etc/conf.d/darkstat.conf')
-source=(http://dmr.ath.cx/net/darkstat/darkstat-$pkgver.tar.bz2
- darkstat.service
- darkstat.conf)
-install=darkstat.install
-md5sums=('f334d3b8acd45cd06b5929a249abebe2'
- '91dd1cf9d01c2b37896f01b4570b5521'
- 'aa9a9effd1e8f08860afcd6439fc94c5')
-
-build() {
- cd $srcdir/darkstat-$pkgver
- ./configure --prefix=/usr --sbindir=/usr/bin
- make
-}
-
-package() {
- cd $srcdir/darkstat-$pkgver
- make DESTDIR=$pkgdir install
- 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.conf b/community/darkstat/darkstat.conf
deleted file mode 100644
index 63517ef9a..000000000
--- a/community/darkstat/darkstat.conf
+++ /dev/null
@@ -1,2 +0,0 @@
-DARKSTAT_IFACE="eth0"
-DARKSTAT_ARGS=""
diff --git a/community/darkstat/darkstat.install b/community/darkstat/darkstat.install
deleted file mode 100644
index 246bfd808..000000000
--- a/community/darkstat/darkstat.install
+++ /dev/null
@@ -1,20 +0,0 @@
-daemon_name=darkstat
-daemon_chroot=var/darkstat
-
-post_install() {
- if [ ! -d "$daemon_chroot" ]; then
- install -d "$daemon_chroot"
- touch "$daemon_chroot/darkstat.dat"
- fi
- useradd \
- --system \
- --home /"$daemon_chroot" \
- --shell /bin/false \
- --no-user-group \
- --gid nobody "$daemon_name"
- chown -R "$daemon_name":nobody "/$daemon_chroot"
-}
-
-post_remove() {
- userdel "$daemon_name"
-}
diff --git a/community/darkstat/darkstat.service b/community/darkstat/darkstat.service
deleted file mode 100644
index b92eff85c..000000000
--- a/community/darkstat/darkstat.service
+++ /dev/null
@@ -1,17 +0,0 @@
-[Unit]
-Description=Network statistics gatherer (packet sniffer)
-After=network.target
-
-[Service]
-Type=simple
-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 \
- -b 0.0.0.0 \
- -i "$DARKSTAT_IFACE" $DARKSTAT_ARGS
-ExecStopPost=/bin/rm -f /var/darkstat/darkstat.pid
-
-[Install]
-WantedBy=multi-user.target