diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2017-01-13 15:43:54 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-01-13 15:43:54 +0100 |
commit | bf1a5e076df6ac74bb741c10babfdbc4e5cb2b06 (patch) | |
tree | 36fcfa5aeee3222e909de184e3d79f4513c1300b /community | |
parent | b8b9587650875423230c5f9e60286c96858de4d5 (diff) | |
download | aports-bf1a5e076df6ac74bb741c10babfdbc4e5cb2b06.tar.bz2 aports-bf1a5e076df6ac74bb741c10babfdbc4e5cb2b06.tar.xz |
community/vnstat: upgrade to 1.16
Diffstat (limited to 'community')
-rw-r--r-- | community/incron/APKBUILD | 56 | ||||
-rw-r--r-- | community/incron/fix-headers.patch | 10 | ||||
-rw-r--r-- | community/incron/incron-aarch64.patch | 13 | ||||
-rw-r--r-- | community/incron/incrond.initd | 13 | ||||
-rw-r--r-- | community/vnstat/APKBUILD | 51 | ||||
-rw-r--r-- | community/vnstat/vnstat.pre-install | 6 | ||||
-rw-r--r-- | community/vnstat/vnstatd.confd | 7 | ||||
-rw-r--r-- | community/vnstat/vnstatd.initd | 37 |
8 files changed, 193 insertions, 0 deletions
diff --git a/community/incron/APKBUILD b/community/incron/APKBUILD new file mode 100644 index 0000000000..87abad27f8 --- /dev/null +++ b/community/incron/APKBUILD @@ -0,0 +1,56 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=incron +pkgver=0.5.10 +pkgrel=0 +pkgdesc="Inotify cron system" +url="http://inotify.aiken.cz" +arch="all" +license="GPLv2" +depends="" +depends_dev="" +makedepends="$depends_dev argp-standalone" +install="" +subpackages="$pkgname-doc" +options="suid" +source="http://inotify.aiken.cz/download/incron/incron-$pkgver.tar.bz2 + fix-headers.patch + incrond.initd + incron-aarch64.patch + " + +_builddir="$srcdir"/incron-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + make PREFIX=/usr || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" PREFIX=/usr install || return 1 + install -Dm755 "$srcdir"/incrond.initd "$pkgdir"/etc/init.d/incrond \ + || return 1 + install -Dm644 incron.conf.example "$pkgdir"/etc/incron.conf || return 1 +} + +md5sums="038190dc64568883a206f3d58269b850 incron-0.5.10.tar.bz2 +2f732aef8ae8b49a0427e1d0d3c5281d fix-headers.patch +07089c4a524ba7d89f75881693ba7647 incrond.initd +02955914e0c8aed4ca3950b109c57a61 incron-aarch64.patch" +sha256sums="852695df1d0c8a1ad182d41c8f8ce1417ac34e7fb6cd01e9c9c6d493c42e759f incron-0.5.10.tar.bz2 +aa69fa1ebfd48e6fba9921f136ac77b68f9b34e6f60b2296c35bdd5b60e5d7ec fix-headers.patch +c7a3c53543db190d2ce63667878c9968f9af7b9eabecbfc1cad7d9b8d937c8e4 incrond.initd +690911bf841f43b5cb05e11d14ee7c2ccf310b9cc4079c02afa32e784b1c3dea incron-aarch64.patch" +sha512sums="5d9ae4d4e3929ba16ad06652f21ef319041e13f9b15000d08053a973bef706b5d0137b9235c29049aed1673a2f41379b2b677eeedefacaf68308ad54405e4bfd incron-0.5.10.tar.bz2 +ab25665b6b736b81bfa84b1092608e0f2c15484a2e920b1859827bd870d04a894760020be6ab27226ff8cb75bab1ef8dc34d006a4531fc658e32137374412c9c fix-headers.patch +458d5a4e9ab062b3e9a7dddf46c25bae431ec6c93862304f444e94cfb41b28e9ae21d5e621e94ce9cf55b26878d8fe978c19eeaa473779772a24adf709fd4cd8 incrond.initd +46af5174748bec8ddad84f43b00a4b10f3bed3af2884fa4106797e96e2ea1be399642c049760035635275354a4a66d1ce33c58e6856bda3e98054c8627277287 incron-aarch64.patch" diff --git a/community/incron/fix-headers.patch b/community/incron/fix-headers.patch new file mode 100644 index 0000000000..64771ffd12 --- /dev/null +++ b/community/incron/fix-headers.patch @@ -0,0 +1,10 @@ +--- ./icd-main.cpp.orig ++++ ./icd-main.cpp +@@ -24,6 +24,7 @@ + #include <dirent.h> + #include <syslog.h> + #include <errno.h> ++#include <unistd.h> + #include <sys/poll.h> + #include <sys/stat.h> + #include <cstdio> diff --git a/community/incron/incron-aarch64.patch b/community/incron/incron-aarch64.patch new file mode 100644 index 0000000000..fe872ae35c --- /dev/null +++ b/community/incron/incron-aarch64.patch @@ -0,0 +1,13 @@ +Index: incron-0.5.10/inotify-cxx.h +=================================================================== +--- incron-0.5.10.orig/inotify-cxx.h ++++ incron-0.5.10/inotify-cxx.h +@@ -37,7 +37,7 @@ + #include <sys/inotify.h> + + // Use this if syscalls not defined +-#ifndef __NR_inotify_init ++#if not defined(__NR_inotify_init) && not defined(__aarch64__) + #include <sys/inotify-syscalls.h> + #endif // __NR_inotify_init + diff --git a/community/incron/incrond.initd b/community/incron/incrond.initd new file mode 100644 index 0000000000..6aa4c0688d --- /dev/null +++ b/community/incron/incrond.initd @@ -0,0 +1,13 @@ +#!/sbin/openrc-run +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-process/incron/files/incrond.init,v 1.1 2011/01/31 15:14:12 idl0r Exp $ + +command=/usr/sbin/incrond +pidfile=/var/run/incrond.pid +command_args="-f /etc/incron.conf" + +depend() { + use clock logger + need localmount +} diff --git a/community/vnstat/APKBUILD b/community/vnstat/APKBUILD new file mode 100644 index 0000000000..e24655b410 --- /dev/null +++ b/community/vnstat/APKBUILD @@ -0,0 +1,51 @@ +# Contributor: Bartłomiej Piotrowski <nospam@bpiotrowski.pl> +# Maintainer: Jakub Jirutka <jakub@jirutka.cz> +pkgname=vnstat +pkgver=1.16 +pkgrel=0 +pkgdesc="A console-based network traffic monitor" +url="http://humdi.net/vnstat/" +arch="all" +license="GPL" +install="$pkgname.pre-install" +makedepends="gd-dev" +subpackages="$pkgname-doc" +source="http://humdi.net/vnstat/$pkgname-$pkgver.tar.gz + vnstatd.initd + vnstatd.confd" +builddir="$srcdir/vnstat-$pkgver" + +build() { + cd "$builddir" + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + || return 1 + make || return 1 +} + +package() { + cd "$builddir" + + make DESTDIR="$pkgdir" install || return 1 + + install -D -m0755 "$srcdir"/vnstatd.initd \ + "$pkgdir"/etc/init.d/vnstatd || return 1 + install -D -m0644 "$srcdir"/vnstatd.confd \ + "$pkgdir"/etc/conf.d/vnstatd || return 1 + + install -D -m0755 examples/vnstat.cgi \ + "$pkgdir"/usr/share/doc/vnstat/examples/vnstat.cgi || return 1 +} + +md5sums="6eed3fbda4b97411163d8b09415bbba7 vnstat-1.16.tar.gz +cf0a4a161295e1d1988836cdc8d1064d vnstatd.initd +810205e9cd5328b4279bd9ab1b804c36 vnstatd.confd" +sha256sums="420fec6c89229a100697f3189e824a1b81f7148dd651558f2ff03cc298308e8b vnstat-1.16.tar.gz +98d57c982722372257d4b901836170ae0e81d9e575caa5a6463bdc6a78f9dd2a vnstatd.initd +2cd5b91f86bc26aca85166a50de89faaccbf1ea8f219efb48b50b7ed0f3fe377 vnstatd.confd" +sha512sums="8906acebead4aef7ec7e96c4f9f17a2b9483f69cf530eb21d2ddc60de71b7690453bf533acfac298cf7e5184c23c7e6a886a757fdbfac3006cc09653c9a2cf6b vnstat-1.16.tar.gz +cc3183b8d42eff1e0a876420612dd8892ba5ac10810e7de7ca1076eb5e5867145a0d7e605773f39157e91da29aa68ae5c350d120f60292578fcaba44603b2b92 vnstatd.initd +d645817913d5b52e928561b3d6a0e869d8ae5db81b97af91c1ebfc6a8cd2df666c1653e6dc5f91c0a890033a89692f77eaf081c1cae5590446c69a70ea263946 vnstatd.confd" diff --git a/community/vnstat/vnstat.pre-install b/community/vnstat/vnstat.pre-install new file mode 100644 index 0000000000..2a94edea9d --- /dev/null +++ b/community/vnstat/vnstat.pre-install @@ -0,0 +1,6 @@ +#!/bin/sh + +addgroup -S vnstat 2>/dev/null +adduser -S -D -H -h /var/lib/ -s /bin/false -G vnstat -g vnstat vnstat 2>/dev/null + +exit 0 diff --git a/community/vnstat/vnstatd.confd b/community/vnstat/vnstatd.confd new file mode 100644 index 0000000000..17901419aa --- /dev/null +++ b/community/vnstat/vnstatd.confd @@ -0,0 +1,7 @@ +# /etc/conf.d/vnstatd: config file for /etc/init.d/vnstatd + +# Adjust scheduling priority on vnstatd (default: 0) +#VNSTATD_NICELEVEL="0" + +# Pass extra options to vnstatd +#VNSTATD_EXTRAOPTS="--config /etc/vnstat.conf" diff --git a/community/vnstat/vnstatd.initd b/community/vnstat/vnstatd.initd new file mode 100644 index 0000000000..e206fb263d --- /dev/null +++ b/community/vnstat/vnstatd.initd @@ -0,0 +1,37 @@ +#!/sbin/openrc-run +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +extra_started_commands="reload" + +depend() { + use net +} + +VNSTATD_PIDFILE="${VNSTATD_PIDFILE:-/var/run/vnstatd/vnstatd.pid}" + +start() { + ebegin "Starting vnstatd" + checkpath -q -d -m 755 -o vnstat:vnstat /var/run/vnstatd + checkpath -q -d -m 755 -o vnstat:vnstat /var/lib/vnstat + start-stop-daemon --start --quiet \ + --pidfile "${VNSTATD_PIDFILE}" \ + --user vnstat --group vnstat \ + --nicelevel ${VNSTATD_NICELEVEL:-0} \ + --exec /usr/sbin/vnstatd -- \ + -d ${VNSTATD_EXTRAOPTS} -p ${VNSTATD_PIDFILE} + eend $? +} + +stop() { + ebegin "Stopping vnstatd" + start-stop-daemon --stop --quiet \ + --pidfile "${VNSTATD_PIDFILE}" + eend $? +} + +reload() { + ebegin "Reloading vnstatd configuration" + kill -HUP $(< "${VNSTATD_PIDFILE}") &>/dev/null + eend $? +} |