contrib/cacti/Pkgfile
2011-02-18 21:52:17 +01:00

25 lines
859 B
Plaintext

# Description: An opensources graphing system
# URL: http://cacti.net/index.php
# Packager: Manuel Ruiz, manuel dot tienza at gmail dot com
# Maintainer: Thomas Penteker, tek at serverop dot de
# Depends on: rrdtool mod_php net-snmp php-mysql php php-sockets
name=cacti
version=0.8.7g
release=3
source=(http://www.$name.net/downloads/$name-$version.tar.gz
http://crux.nu/~tek/cacti_official_patches.diff)
build () {
cd $name-$version
patch -p1 -i ../cacti_official_patches.diff
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 -r $PKG/var/www/htdocs/cacti/docs
}