diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-08-12 09:32:49 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-08-12 09:32:49 +0000 |
commit | b347b3ec0d1cdb6ceb705f8247ec659961d52eb3 (patch) | |
tree | 300b2416b17f7a5b3b25377904186b988e7d73d0 /testing/zabbix/APKBUILD | |
parent | 4e78120156e78bc753889c13f068311ac7b45ffa (diff) | |
download | aports-b347b3ec0d1cdb6ceb705f8247ec659961d52eb3.tar.bz2 aports-b347b3ec0d1cdb6ceb705f8247ec659961d52eb3.tar.xz |
testing/zabbix: new aport
Enterprise-class open source distributed monitoring
www.zabbix.com
ref #251
Diffstat (limited to 'testing/zabbix/APKBUILD')
-rw-r--r-- | testing/zabbix/APKBUILD | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/testing/zabbix/APKBUILD b/testing/zabbix/APKBUILD new file mode 100644 index 000000000..0091a35d5 --- /dev/null +++ b/testing/zabbix/APKBUILD @@ -0,0 +1,72 @@ +# Contributor: Jeff Bilyk <jbilyk at gmail> +# Maintainer: Natanael Copa <natanael.copa@gmail.com> +pkgname=zabbix +pkgver=1.8.2 +pkgrel=0 +pkgdesc="Enterprise-class open source distributed monitoring" +url="www.zabbix.com" +license="GPL" +depends="sqlite php php-sqlite3 php-gd fping" +makedepends="sqlite-dev libiconv-dev" +install= +pkgusers="zabbix" +pkggroups="zabbix" +subpackages="$pkgname-dev $pkgname-doc" +source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz + zabbix_server.conf + zabbix_trapper.conf + zabbix_proxy.conf + zabbix-dn_skipname.patch + " + +_builddir="$srcdir"/$pkgname-$pkgver + +prepare() { + cd "$_builddir" + for i in $source; do + case $i in + *.patch) + msg "Applying $i" + patch -p1 -i "$srcdir"/$i || return 1 + ;; + esac + done +} + +build() { + cd "$_builddir" + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --enable-server \ + --with-sqlite3 + make || return 1 +} + +package() { + local _wwwdir="$pkgdir"/usr/share/webapp/zabbix + cd "$_builddir" + make DESTDIR="$pkgdir" install + + install -d -m0750 -o zabbix -g zabbix \ + "$pkgdir"/var/run/zabbix "$pkgdir"/var/log/zabbix + + install -d "$pkgdir"/etc/zabbix + install -d "$pkgdir"/usr/share/zabbix/dbms/create/data + install -d -m0755 "$_wwwdir" + install -D -m0640 "$srcdir"/zabbix_server.conf "$pkgdir"/etc/zabbix/zabbix_server.conf + install -D -m0640 "$srcdir"/zabbix_trapper.conf "$pkgdir"/etc/zabbix/zabbix_trapper.conf +# install -D -m0755 "$srcdir"/zabbix-server.initd "$pkgdir"/etc/rc.d/zabbix-server + install -D -m0755 "$srcdir"/zabbix-$pkgver/create/data/data.sql "$pkgdir"/usr/share/zabbix/dbms/create/data/data.sql + install -D -m0755 "$srcdir"/zabbix-$pkgver/create/data/images_mysql.sql "$pkgdir"/usr/share/zabbix/dbms/create/data/images_mysql.sql + install -D -m0755 "$srcdir"/zabbix-$pkgver/create/schema/mysql.sql "$pkgdir"/usr/share/zabbix/dbms/create/mysql.sql + cp -r "$srcdir"/zabbix-$pkgver/frontends/php/* "$_wwwdir" + +} + +md5sums="fa4be4fa7ac20a33cc0aa5c27b827746 zabbix-1.8.2.tar.gz +26b0401a83bdb1dce29338e5b2786620 zabbix_server.conf +9832a81e134c8e2c11e2a06b7adbf88f zabbix_trapper.conf +0310b92afb3f35c1075fff53db737212 zabbix_proxy.conf +d13166483792401be2d25b37b0170b82 zabbix-dn_skipname.patch" |