summaryrefslogtreecommitdiffstats
path: root/main/collectd/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-04-17 11:32:52 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-04-17 11:33:22 +0000
commitb4bc4bb052ae4b730f3435c125e28b6101dfc494 (patch)
tree7b07f49f4d3e6060b4099ae1937d14db3080bebf /main/collectd/APKBUILD
parentba887a1eb683ddfff2e28e9cbb7633241b53c6a5 (diff)
downloadaports-b4bc4bb052ae4b730f3435c125e28b6101dfc494.tar.bz2
aports-b4bc4bb052ae4b730f3435c125e28b6101dfc494.tar.xz
main/collectd: use system libip4tc
Diffstat (limited to 'main/collectd/APKBUILD')
-rw-r--r--main/collectd/APKBUILD15
1 files changed, 9 insertions, 6 deletions
diff --git a/main/collectd/APKBUILD b/main/collectd/APKBUILD
index f3bbdbe60..524b6c74c 100644
--- a/main/collectd/APKBUILD
+++ b/main/collectd/APKBUILD
@@ -2,33 +2,35 @@
# Maintainer:
pkgname=collectd
pkgver=4.10.3
-pkgrel=1
+pkgrel=2
pkgdesc="The system statistics collection daemon"
url="http://collectd.org"
arch="all"
license="GPL"
depends=
makedepends="pkgconfig curl-dev net-snmp-dev postgresql-dev perl-dev
- libgcrypt-dev mysql-dev zlib-dev openssl-dev"
+ libgcrypt-dev mysql-dev zlib-dev openssl-dev iptables-dev"
install=
subpackages="$pkgname-dev $pkgname-doc $pkgname-perl $pkgname-snmp $pkgname-curl
$pkgname-write_http $pkgname-nginx $pkgname-apache $pkgname-postgresql
$pkgname-mysql $pkgname-network"
source="http://collectd.org/files/collectd-$pkgver.tar.bz2
+ collectd-4.10.3-iptc-check.patch
collectd.initd"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
-
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
# we need -lm
sed -i -e 's/^collectd_LDADD = \(.*\)/collectd_LDADD = -lm \1/' \
-e 's/^collectd_nagios_LDADD = \(.*\)/collectd_nagios_LDADD = -lm \1/' src/Makefile.in
-
- # disable -Werror
- sed -i -e 's/-Werror//' src/owniptc/Makefile.in
}
@@ -82,4 +84,5 @@ mysql() { _plugin mysql; }
network() { _plugin network; }
md5sums="5f17bfd7342af4f97f78c608f1d1eb1d collectd-4.10.3.tar.bz2
+38f2ac1754e0dc0fcc70a04574cc7437 collectd-4.10.3-iptc-check.patch
13a36ae2f92634b5619ab94224e1b77d collectd.initd"