diff options
author | olgeni <olgeni@FreeBSD.org> | 2001-03-08 19:55:18 +0800 |
---|---|---|
committer | olgeni <olgeni@FreeBSD.org> | 2001-03-08 19:55:18 +0800 |
commit | 5da47c95a1576142c04385c70f6e0b98b38b6282 (patch) | |
tree | 1c8abe9e122040e0b91c8184f226858716058e64 /www/zope211/Makefile | |
parent | e51837ae5f204b7d27dc574660f1542b46a5f53f (diff) | |
download | freebsd-ports-gnome-5da47c95a1576142c04385c70f6e0b98b38b6282.tar.gz freebsd-ports-gnome-5da47c95a1576142c04385c70f6e0b98b38b6282.tar.zst freebsd-ports-gnome-5da47c95a1576142c04385c70f6e0b98b38b6282.zip |
More plist and Makefile fixes.
* Removed "access" from pkg-plist, it contains password data that
should be preserved (I forgot this last time!).
* In the "do-install" target, leave the "access" file unchanged if it
already exists.
* Remove the pre-deinstall comment: Data.fs is already preserved by
pkg_delete anyway.
* In the "install" target, use temporary file Data.fs.preserve to avoid
overwriting Data.fs. "make deinstall/install" can now be safely used to
perform upgrades.
* Don't leave .o files around anymore.
Approved by: maintainer
Diffstat (limited to 'www/zope211/Makefile')
-rw-r--r-- | www/zope211/Makefile | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/www/zope211/Makefile b/www/zope211/Makefile index 3585bf280bd3..5bc11b385074 100644 --- a/www/zope211/Makefile +++ b/www/zope211/Makefile @@ -53,13 +53,13 @@ PLIST_SUB= ZOPEBASEDIR=${SZOPEBASEDIR} \ WEBBASEDIR=${WEBBASEDIR} # I decided to consider the whole souce tree to be part of the package -# since in there, Zope can live on its own. It does leave some *.o files -# around (about four), but I can use Zope's own building mechanism. -do-install: # +# since in there, Zope can live on its own. I can use Zope's own building +# mechanism. +do-install: @if [ -e ${ZOPEBASEDIR}/var/Data.fs ] ; then \ - ${ECHO} "Saving existing Database to /tmp/Data.fs.BAK." ; \ - ${MV} ${ZOPEBASEDIR}/var/Data.fs /tmp/Data.fs.BAK ; \ - fi + ${ECHO} "Saving existing Database to ${ZOPEBASEDIR}/var/Data.fs.preserve." ; \ + ${MV} ${ZOPEBASEDIR}/var/Data.fs ${ZOPEBASEDIR}/var/Data.fs.preserve; \ + fi @# @${MKDIR} ${ZOPEBASEDIR} @${ECHO} "===> Please be patient, some builds need their time." @@ -76,6 +76,8 @@ do-install: # ${ECHO} "#! ${CGIBINDIR}/pcgi-wrapper" > Zope.cgi ; \ ${CAT} Zope.cgi.orig >> Zope.cgi ; \ ${RM} Zope.cgi.orig ) + @(cd ${ZOPEBASEDIR}/pcgi/Test && ${RM} *.o) + @(cd ${ZOPEBASEDIR}/pcgi && ${RM} *.o) @# @${MKDIR} ${CGIBINDIR} @(cd ${ZOPEBASEDIR} ; \ @@ -88,11 +90,17 @@ do-install: # @${CHOWN} ${NOBODY_USER} ${ZOPEBASEDIR}/var @${CHOWN} ${NOBODY_USER} ${ZOPEBASEDIR}/var/* @${RM} ${ZOPEBASEDIR}/var/.cvsignore + @if [ -e ${ZOPEBASEDIR}/var/Data.fs.preserve ] ; then \ + ${ECHO} "Restoring existing Database from ${ZOPEBASEDIR}/var/Data.fs.preserve." ; \ + ${MV} ${ZOPEBASEDIR}/var/Data.fs.preserve ${ZOPEBASEDIR}/var/Data.fs; \ + fi @# - @${ECHO} "===> Setting user/password to zopemaster/test..." - @(cd ${ZOPEBASEDIR} && \ - ${PYTHON_CMD} zpasswd.py -u zopemaster \ - -p test -e CLEARTEXT access ) + @if [ ! -f ${ZOPEBASEDIR}/access ]; then \ + ${ECHO} "===> Setting user/password to zopemaster/test..."; \ + (cd ${ZOPEBASEDIR} && \ + ${PYTHON_CMD} zpasswd.py -u zopemaster \ + -p test -e CLEARTEXT access ); \ + fi @# @${CHOWN} ${NOBODY_USER} ${ZOPEBASEDIR}/access @# @@ -114,11 +122,4 @@ do-install: # @${ECHO} "===> For Apache changes see ${APACHE_CONFDIR}/apache.conf.Zope-Changes." @${ECHO} "===> Zope.cgi and pcgi-wrapper live in ${CGIBINDIR}." -#pre-deinstall: # Save Database contents. I expect /tmp to have sufficient -# # space to hold it for the time being. -# @if [ -e ${ZOPEBASEDIR}/var/Data.fs ] ; then \ -# ${ECHO} "Saving existing Database to /tmp/Data.fs.bak." ; \ -# ${MV} ${ZOPEBASEDIR}/var/Data.fs /tmp/Data.fs.bak ; \ -# fi - .include <bsd.port.mk> |