forked from ports/contrib
29 lines
1.2 KiB
Plaintext
29 lines
1.2 KiB
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 mysql net-snmp php-mysql php
|
|
|
|
name=cacti
|
|
version=0.8.7b
|
|
release=1
|
|
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 () {
|
|
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}
|
|
}
|