aboutsummaryrefslogtreecommitdiffstats
path: root/net/cacti/Makefile
diff options
context:
space:
mode:
authorsem <sem@FreeBSD.org>2005-06-21 21:26:54 +0800
committersem <sem@FreeBSD.org>2005-06-21 21:26:54 +0800
commit0c53cf5064beb2f4885b7085e261c5f91e3b12d3 (patch)
treec9871afbcdc9e962ac18694b0a2e34027e977c2e /net/cacti/Makefile
parent2905af34fbbe4d79dadd0a370a66543480869957 (diff)
downloadfreebsd-ports-graphics-0c53cf5064beb2f4885b7085e261c5f91e3b12d3.tar.gz
freebsd-ports-graphics-0c53cf5064beb2f4885b7085e261c5f91e3b12d3.tar.zst
freebsd-ports-graphics-0c53cf5064beb2f4885b7085e261c5f91e3b12d3.zip
- Saving config.php was a bad idea. cacti's developers make cahnges in it.
I've moved DB settings from config.php to db-settings.php and save it instead. Read UPDATING. Reported by: Zoltan Frombach <tssajo@hotmail.com>, Andrej Zverev <az@inec.ru>
Diffstat (limited to 'net/cacti/Makefile')
-rw-r--r--net/cacti/Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/net/cacti/Makefile b/net/cacti/Makefile
index d8d1d2f06dc..bc85fdc545b 100644
--- a/net/cacti/Makefile
+++ b/net/cacti/Makefile
@@ -7,6 +7,7 @@
PORTNAME= cacti
PORTVERSION= 0.8.6e
+PORTREVISION= 1
CATEGORIES= net www
MASTER_SITES= http://www.cacti.net/downloads/
@@ -39,7 +40,7 @@ SUB_LIST+= CACTIDIR=${CACTIDIR} CACTIUSER=${CACTIUSER} \
post-patch:
@${FIND} ${WRKSRC} -name \*.orig -delete; \
- ${MV} ${WRKSRC}/include/config.php ${WRKSRC}/include/config.php.orig
+ ${MV} ${WRKSRC}/include/db-settings.php ${WRKSRC}/include/db-settings.php.orig
pre-install:
@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL; \
@@ -47,10 +48,10 @@ pre-install:
do-install:
@${MKDIR} ${PREFIX}/${CACTIDIR}; \
${CP} -R ${WRKSRC}/* ${PREFIX}/${CACTIDIR}/; \
- if [ ! -f ${PREFIX}/${CACTIDIR}/include/config.php ]; then \
- ${CP} ${PREFIX}/${CACTIDIR}/include/config.php.orig \
- ${PREFIX}/${CACTIDIR}/include/config.php; \
- fi; \
+ if [ ! -f ${PREFIX}/${CACTIDIR}/include/db-settings.php ]; then \
+ ${CP} ${PREFIX}/${CACTIDIR}/include/db-settings.php.orig \
+ ${PREFIX}/${CACTIDIR}/include/db-settings.php; \
+ fi
# Fix permissions
post-install: