contrib/cacti/Pkgfile

25 lines
798 B
Plaintext
Raw Normal View History

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
# 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 15:12:02 +02:00
name=cacti
2017-05-07 23:57:13 +02:00
version=1.1.5
2011-12-28 16:45:51 +01:00
release=1
2011-09-27 00:10:51 +02:00
source=(http://www.$name.net/downloads/$name-$version.tar.gz)
2007-06-19 15:12:02 +02:00
build () {
2011-09-27 00:10:51 +02:00
#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
2017-05-07 23:57:13 +02:00
rm $PKG/var/www/htdocs/cacti/LICENSE
2011-02-18 21:52:17 +01:00
rm -r $PKG/var/www/htdocs/cacti/docs
2007-06-19 15:12:02 +02:00
}