summaryrefslogtreecommitdiff
path: root/cacti/Pkgfile
diff options
context:
space:
mode:
authorThomas Penteker <tek@serverop.de>2008-06-24 22:32:45 +0200
committerThomas Penteker <tek@serverop.de>2008-06-24 22:32:45 +0200
commit5b9838c5985db66152a77f2d3f0148cbb52f1c59 (patch)
tree3f2eda730514a27c98adc3ad620c87a08916c698 /cacti/Pkgfile
parent8bd7e6d9067de83106c68056dd6732ea8ec7108c (diff)
downloadcontrib-5b9838c5985db66152a77f2d3f0148cbb52f1c59.tar.gz
contrib-5b9838c5985db66152a77f2d3f0148cbb52f1c59.tar.xz
cacti: make port usable (thx pitillo)
Diffstat (limited to 'cacti/Pkgfile')
-rw-r--r--cacti/Pkgfile34
1 files changed, 22 insertions, 12 deletions
diff --git a/cacti/Pkgfile b/cacti/Pkgfile
index 093a1757d..4cab452f6 100644
--- a/cacti/Pkgfile
+++ b/cacti/Pkgfile
@@ -1,18 +1,28 @@
-# Description: A complete RRDTool-based graphing solution
-# URL: http://cacti.net/index.php
-# Maintainer: Thomas Penteker, tek at serverop dot de
-# Packager: Younes Hafri, ycrux at club-internet dot fr
-#
-# Depends on: rrdtool, mod_php, mysql
+# Description: An opensources graphing system
+# URL: http://cacti.net/index.php
+# Packager: Manuel Ruiz, manuel dot tienza at gmail dot com
+# Maintainer: Victor Martinez, pitillo at ono dot com
+# Depends on: rrdtool mod_php mysql net-snmp php-mysql php
name=cacti
-version=0.8.6i
+version=0.8.7b
release=1
-source=(http://www.$name.net/downloads/$name-$version.tar.gz)
+source=(http://www.$name.net/downloads/$name-$version.tar.gz \
+ http://www.cacti.net/downloads/patches/0.8.7b/reset_each_patch.patch \
+ http://www.cacti.net/downloads/patches/0.8.7b/snmp_auth_none_notice.patch \
+ http://www.cacti.net/downloads/patches/0.8.7b/upgrade_from_086k_fix.patch)
build () {
- echo "========================="
- echo " Read the INSTALL file "
- echo "========================="
- exit 1
+ cd $name-$version
+ patch -p1 -N < ../reset_each_patch.patch
+ patch -p1 -N < ../snmp_auth_none_notice.patch
+ patch -p1 -N < ../upgrade_from_086k_fix.patch
+ cd ..
+ mkdir -p $PKG/var/www/htdocs
+ mv $name-$version $PKG/var/www/htdocs/$name
+ chown -R cactiuser $PKG/var/www/htdocs/$name/{rra,log}
+ sed -i -e "s|\$config\['url_path'] = '/'|\$config\['url_path'] = '/cacti/'|g" \
+ $PKG/var/www/htdocs/$name/include/global.php
+ rm $PKG/var/www/htdocs/cacti/{README,LICENSE}
+ rm $PKG/var/www/htdocs/cacti/docs/{CHANGELOG,CONTRIB,INSTALL,README,REQUIREMENTS,UPGRADE}
}

Generated by cgit