2008-06-24 22:32:45 +02:00
|
|
|
# Description: An opensources graphing system
|
|
|
|
# URL: http://cacti.net/index.php
|
|
|
|
# Packager: Manuel Ruiz, manuel dot tienza at gmail dot com
|
2008-06-24 22:39:27 +02:00
|
|
|
# Maintainer: Thomas Penteker, tek at serverop dot de
|
2009-12-03 12:09:27 +01:00
|
|
|
# Depends on: rrdtool mod_php net-snmp php-mysql php php-sockets
|
2007-06-19 23:12:02 +10:00
|
|
|
|
|
|
|
name=cacti
|
2009-06-29 21:56:01 +02:00
|
|
|
version=0.8.7e
|
2007-06-19 23:12:02 +10:00
|
|
|
release=1
|
2009-02-12 18:16:46 +01:00
|
|
|
source=(http://www.$name.net/downloads/$name-$version.tar.gz)
|
2007-06-19 23:12:02 +10:00
|
|
|
|
|
|
|
build () {
|
2008-06-24 22:39:27 +02:00
|
|
|
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}
|
2009-06-29 21:56:01 +02:00
|
|
|
rm $PKG/var/www/htdocs/cacti/docs/{CHANGELOG,CONTRIB,README}
|
2007-06-19 23:12:02 +10:00
|
|
|
}
|