[arch-commits] Commit in darkstat/trunk (4 files)

Christian Hesse eworm at archlinux.org
Fri Dec 15 17:23:41 UTC 2017


    Date: Friday, December 15, 2017 @ 17:23:40
  Author: eworm
Revision: 274529

upgpkg: darkstat 3.0.719-2

* switch to sysusers and tmpfiles
* use sha256 checksums
* update upstream url (and use https)

Added:
  darkstat/trunk/darkstat-sysusers.conf
  darkstat/trunk/darkstat-tmpfiles.conf
Modified:
  darkstat/trunk/PKGBUILD
Deleted:
  darkstat/trunk/darkstat.install

------------------------+
 PKGBUILD               |   36 +++++++++++++++++++++++-------------
 darkstat-sysusers.conf |    1 +
 darkstat-tmpfiles.conf |    2 ++
 darkstat.install       |   16 ----------------
 4 files changed, 26 insertions(+), 29 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-12-15 17:14:57 UTC (rev 274528)
+++ PKGBUILD	2017-12-15 17:23:40 UTC (rev 274529)
@@ -3,30 +3,40 @@
 
 pkgname=darkstat
 pkgver=3.0.719
-pkgrel=1
-pkgdesc="Network statistics gatherer (packet sniffer)"
-url="http://dmr.ath.cx/net/darkstat/"
+pkgrel=2
+pkgdesc='Network statistics gatherer (packet sniffer)'
+url="https://unix4lyfe.org/${pkgname}/"
 license=("GPL")
 arch=(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=('963145de05cb21f4d93a9c244beeaea0'
-         'e28c56657502ce3e62c1fc6bf5ce59f7'
-         'aa9a9effd1e8f08860afcd6439fc94c5')
+source=("https://unix4lyfe.org/${pkgname}/${pkgname}-${pkgver}.tar.bz2"
+	'darkstat-sysusers.conf'
+	'darkstat-tmpfiles.conf'
+	'darkstat.service'
+	'darkstat.conf')
+sha256sums=('aeaf909585f7f43dc032a75328fdb62114e58405b06a92a13c0d3653236dedd7'
+            '81f7cac4bb3bdd10422938b33050dcb0245713082af1dd3a58fd63f51df29dbe'
+            'ccc508237a3aa5b1b2cff271877f6a92a0a189ff578ed2128731f7d8379a9fca'
+            '81a29ba0fca9430f1a220fece1e88e8e80657fc1970b9327b6680e5f212e51df'
+            '7ee7e3a04672bec76e10a65d3b2bc7cf3c41992652a7252d2bbefa79f7679923')
 
 build() {
   cd "$srcdir"/darkstat-$pkgver
-  ./configure --prefix=/usr --sbindir=/usr/bin
+
+  ./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
+
+  install -D -m0644 "$srcdir"/darkstat-sysusers.conf "$pkgdir"/usr/lib/sysusers.d/darkstat.conf
+  install -D -m0644 "$srcdir"/darkstat-tmpfiles.conf "$pkgdir"/usr/lib/tmpfiles.d/darkstat.conf
+  install -D -m0644 "$srcdir"/darkstat.service "$pkgdir"/usr/lib/systemd/system/darkstat.service
+  install -D -m0644 "$srcdir"/darkstat.conf "$pkgdir"/etc/conf.d/darkstat.conf
 }

Added: darkstat-sysusers.conf
===================================================================
--- darkstat-sysusers.conf	                        (rev 0)
+++ darkstat-sysusers.conf	2017-12-15 17:23:40 UTC (rev 274529)
@@ -0,0 +1 @@
+u darkstat - "darkstat user" /var/darkstat

Added: darkstat-tmpfiles.conf
===================================================================
--- darkstat-tmpfiles.conf	                        (rev 0)
+++ darkstat-tmpfiles.conf	2017-12-15 17:23:40 UTC (rev 274529)
@@ -0,0 +1,2 @@
+d /var/darkstat 0755 darkstat darkstat -
+f /var/darkstat/darkstat.dat 0644 darkstat darkstat -

Deleted: darkstat.install
===================================================================
--- darkstat.install	2017-12-15 17:14:57 UTC (rev 274528)
+++ darkstat.install	2017-12-15 17:23:40 UTC (rev 274529)
@@ -1,16 +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"
-}



More information about the arch-commits mailing list