diff options
author | Jeff Bilyk <jbilyk@gmail.com> | 2011-06-18 20:53:54 +0000 |
---|---|---|
committer | Jeff Bilyk <jbilyk@gmail.com> | 2011-06-18 20:53:54 +0000 |
commit | 4a36373037b9c95ebe1a198b080424e75d3741e1 (patch) | |
tree | b73a8f900334f5f5e37af7113c7b9c22825a014a /main/cacti | |
parent | b523a3b2220f16528fb1145cf721ad78140edf75 (diff) | |
download | aports-4a36373037b9c95ebe1a198b080424e75d3741e1.tar.bz2 aports-4a36373037b9c95ebe1a198b080424e75d3741e1.tar.xz |
main/cacti: moved from testing
Diffstat (limited to 'main/cacti')
-rw-r--r-- | main/cacti/APKBUILD | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/main/cacti/APKBUILD b/main/cacti/APKBUILD new file mode 100644 index 000000000..33fc7e72c --- /dev/null +++ b/main/cacti/APKBUILD @@ -0,0 +1,49 @@ +# Maintainer: Jeff Bilyk <jbilyk@gmail.com> +pkgname=cacti +pkgver=0.8.7g +pkgrel=1 +pkgdesc="Network monitoring tool based on RRDtool" +url="http://www.cacti.net" +arch="noarch" +license="GPL" +depends="mysql php php-mysql php-snmp rrdtool net-snmp php-sockets php-xml php-gd" +makedepends= +source="http://www.cacti.net/downloads/$pkgname-$pkgver.tar.gz +http://www.cacti.net/downloads/patches/$pkgver/data_source_deactivate.patch +http://www.cacti.net/downloads/patches/$pkgver/graph_list_view.patch +http://www.cacti.net/downloads/patches/$pkgver/html_output.patch +http://www.cacti.net/downloads/patches/$pkgver/ldap_group_authenication.patch +http://www.cacti.net/downloads/patches/$pkgver/script_server_command_line_parse.patch" + +_builddir="$srcdir"/$pkgname-$pkgver + +prepare() { + cd "$_builddir" + for i in ../*.patch; do + msg "Applying $i" + if ! patch -p1 -i $i; then + error "$i failed" + return 1 + fi + done + # Update syntax to be compatible with MySQL 5.5 + msg "Updating syntax for MySQL 5.5.x" + sed -i 's/TYPE/ENGINE/g' cacti.sql +} + +build() { + cd "$_builddir" + return 0 +} + +package() { + mkdir -p "$pkgdir"/usr/share/webapps/cacti + mv "$srcdir"/$pkgname-$pkgver/* "$pkgdir"/usr/share/webapps/cacti/ || return 1 + +} +md5sums="268421cb1a58d3444f7ecbddb4c4b016 cacti-0.8.7g.tar.gz +d39570fd2e2b5c7f9aa47000b8a28c42 data_source_deactivate.patch +6c2f7db4af48e59323c5e8b25a34866b graph_list_view.patch +134d120930e4f2211f017f5b71d9280a html_output.patch +5bb62cc6fde7c99f0c29cab869412f73 ldap_group_authenication.patch +e14edee082d1250e3946c3caa58a40b4 script_server_command_line_parse.patch" |