summaryrefslogtreecommitdiff
path: root/www/zope213
diff options
context:
space:
mode:
authorNeil Blakey-Milner <nbm@FreeBSD.org>2003-08-28 18:55:15 +0000
committerNeil Blakey-Milner <nbm@FreeBSD.org>2003-08-28 18:55:15 +0000
commita7a67f9b3d511ba21e0474ef760b8b83afabbeca (patch)
tree24ac56752f441ab91477f24fe3f93ab6aef3c0f0 /www/zope213
parentUse USE_RC_SUBR. (diff)
Don't list Data.fs, as it's precious and should not be overwritten when
a package update is done. Also, install zope.sh.sample, and copy it to zope.sh if zope.sh doesn't already exist.
Notes
Notes: svn path=/head/; revision=87919
Diffstat (limited to 'www/zope213')
-rw-r--r--www/zope213/Makefile6
-rw-r--r--www/zope213/pkg-plist6
2 files changed, 7 insertions, 5 deletions
diff --git a/www/zope213/Makefile b/www/zope213/Makefile
index 7644f812ba56..4d3546bd0c1d 100644
--- a/www/zope213/Makefile
+++ b/www/zope213/Makefile
@@ -135,9 +135,9 @@ do-install:
-e "s|%%ZOPE_HTTP_PORT%%|${ZOPE_HTTP_PORT}|g" \
-e "s|%%ZOPE_FTP_PORT%%|${ZOPE_FTP_PORT}|g" \
-e "s|%%ZOPE_MONITOR_PORT%%|${ZOPE_MONITOR_PORT}|g" \
- < ${FILESDIR}/zope.sh.in > ${PREFIX}/etc/rc.d/zope.sh
- @${CHMOD} ug+x,o-rwx ${PREFIX}/etc/rc.d/zope.sh
- @${ECHO} "===> Done with ${PREFIX}/etc/rc.d/zope.sh."
+ < ${FILESDIR}/zope.sh.in > ${PREFIX}/etc/rc.d/zope.sh.sample
+ @${CHMOD} ug+x,o-rwx ${PREFIX}/etc/rc.d/zope.sh.sample
+ @${ECHO} "===> Done with ${PREFIX}/etc/rc.d/zope.sh.sample."
@${CAT} ${FILESDIR}/Message
@${ECHO} "===> Your Zope base directory is ${ZOPEBASEDIR}."
@${ECHO} "===> The Zope license is in ${ZOPEBASEDIR}/LICENSE.txt."
diff --git a/www/zope213/pkg-plist b/www/zope213/pkg-plist
index 361ab2efe20f..59bbc779aaf6 100644
--- a/www/zope213/pkg-plist
+++ b/www/zope213/pkg-plist
@@ -1,6 +1,8 @@
%%APACHE_CONFDIR%%/apache.conf.Zope-Changes
-etc/rc.d/zope.sh
-%%ZOPEBASEDIR%%/var/Data.fs
+@unexec if cmp -s %D/etc/rc.d/zope.sh.sample %D/etc/rc.d/zope.sh; then rm -f %D/etc/rc.d/zope.sh; fi
+etc/rc.d/zope.sh.sample
+@exec if [ ! -f %B/zope.sh ]; then cp %B/%f %B/zope.sh; fi
+@unexec if cmp -s %D/%%ZOPEBASEDIR%%/var/Data.fs %D/%%ZOPEBASEDIR%%/var/Data.fs; then rm -f %D/%%ZOPEBASEDIR%%/var/Data.fs; fi
%%ZOPEBASEDIR%%/var/Data.fs.in
@exec if [ ! -f %B/Data.fs ]; then cp %B/%f %B/Data.fs; fi
%%ZOPEBASEDIR%%/Extensions/README.txt