diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-10-28 09:57:38 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-10-28 09:57:38 +0000 |
commit | 9579307ffd0c036561644d5b6dd71faaf0d02fb2 (patch) | |
tree | 9861d6a3c599ad3deb1034589cdf229a3eba636d /testing/vnstat | |
parent | 7ba45ff0c1304b20cc8f080e4bc2387c37810ddd (diff) | |
download | aports-9579307ffd0c036561644d5b6dd71faaf0d02fb2.tar.bz2 aports-9579307ffd0c036561644d5b6dd71faaf0d02fb2.tar.xz |
testing/vnstat: upgrade to 1.12
Diffstat (limited to 'testing/vnstat')
-rw-r--r-- | testing/vnstat/APKBUILD | 32 | ||||
-rw-r--r-- | testing/vnstat/fix-includes.patch | 10 |
2 files changed, 35 insertions, 7 deletions
diff --git a/testing/vnstat/APKBUILD b/testing/vnstat/APKBUILD index 8a0c235fdd..12d72f4074 100644 --- a/testing/vnstat/APKBUILD +++ b/testing/vnstat/APKBUILD @@ -1,8 +1,8 @@ # Maintainer: Bartłomiej Piotrowski <nospam@bpiotrowski.pl> pkgname=vnstat -pkgver=1.11 -pkgrel=2 +pkgver=1.12 +pkgrel=0 pkgdesc='A console-based network traffic monitor' url='http://humdi.net/vnstat/' arch='all' @@ -11,16 +11,27 @@ install="$pkgname.pre-install" makedepends='gd-dev' subpackages="$pkgname-doc" source="http://humdi.net/vnstat/$pkgname-$pkgver.tar.gz + fix-includes.patch vnstatd.initd vnstatd.confd" +_builddir="$srcdir"/vnstat-$pkgver +prepare() { + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + build() { - cd "$srcdir"/$pkgname-$pkgver + cd "$_builddir" make all || return 1 } package() { - cd "$srcdir"/$pkgname-$pkgver + cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 install -D -m0755 "$srcdir"/vnstatd.initd \ @@ -28,12 +39,19 @@ package() { install -D -m0644 "$srcdir"/vnstatd.confd \ "$pkgdir"/etc/conf.d/vnstatd || return 1 - install -D -m0644 examples/vnstat.cron \ - "$pkgdir"/usr/share/doc/vnstat/examples/vnstat.cron || return 1 install -D -m0755 examples/vnstat.cgi \ "$pkgdir"/usr/share/doc/vnstat/examples/vnstat.cgi || return 1 } -md5sums="a5a113f9176cd61fb954f2ba297f5fdb vnstat-1.11.tar.gz +md5sums="a154b2196771e06a8accd1c24374009c vnstat-1.12.tar.gz +466648e8d4cb367a0c2eab6871d77fc5 fix-includes.patch b439075575d307cd9373740fe59538f1 vnstatd.initd 810205e9cd5328b4279bd9ab1b804c36 vnstatd.confd" +sha256sums="af1050d9c1b22d4b9742fe0d1818de9eb1037b8e7f9ba67b962e108d8527be69 vnstat-1.12.tar.gz +5fd0d235ed43f841f0a36ce2f32d231e28a5714b6c6ba9b19f4c709214f7769d fix-includes.patch +93971b912eef59e5174dc4142c5fecf283dcd15164adedddcf89915a020b8cb8 vnstatd.initd +2cd5b91f86bc26aca85166a50de89faaccbf1ea8f219efb48b50b7ed0f3fe377 vnstatd.confd" +sha512sums="0d6b5f362bbcbb4a104f82b8e350f5d8b071e974a3fdfb100333c3d8e5a096a71a97360543d2594fd3f2108df8bb03ffffc4c52d396f28723005a5d1bf605eb1 vnstat-1.12.tar.gz +67ab0a08380d598a31b4e7b0ed7be382792514b096e0b79fd886a00a7cb3b32aa048ea27ca19d1967eadbdac0fc39f23ed86f9dfeb3968afdd5e3d7d2186d923 fix-includes.patch +37093824da831d935351e75c082caae561833227bba5afd4baec45b2a878dec29a824c3278a954b77eb7feccbad0a80d63d7d2c2a58d6d6eef27a8843831251f vnstatd.initd +d645817913d5b52e928561b3d6a0e869d8ae5db81b97af91c1ebfc6a8cd2df666c1653e6dc5f91c0a890033a89692f77eaf081c1cae5590446c69a70ea263946 vnstatd.confd" diff --git a/testing/vnstat/fix-includes.patch b/testing/vnstat/fix-includes.patch new file mode 100644 index 0000000000..1ec316aa15 --- /dev/null +++ b/testing/vnstat/fix-includes.patch @@ -0,0 +1,10 @@ +--- ./src/common.h.orig ++++ ./src/common.h +@@ -22,6 +22,7 @@ + #include <pwd.h> + #include <grp.h> + #include <libgen.h> ++#include <fcntl.h> + + #if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__) || defined(__FreeBSD_kernel__) + #include <sys/param.h> |