diff options
author | vs <vs@FreeBSD.org> | 2004-08-12 13:38:26 +0000 |
---|---|---|
committer | vs <vs@FreeBSD.org> | 2004-08-12 13:38:26 +0000 |
commit | 4131ee46b9fbd91afd0959008e4526f2da60694c (patch) | |
tree | b63848b00c28e09fbacbec6b6392312b8e673ad8 /print/cups-base | |
parent | f4d28d7f61cfb26dec31e25ca542998a2898a9cc (diff) | |
download | FreeBSD-ports-4131ee46b9fbd91afd0959008e4526f2da60694c.zip FreeBSD-ports-4131ee46b9fbd91afd0959008e4526f2da60694c.tar.gz |
Also keep backups of mime.{convs,types} on upgrades.
PR: ports/70195
Requested by: John Merryweather Cooper
Patched by: Sergey Akifyev (maintainer)
Diffstat (limited to 'print/cups-base')
-rw-r--r-- | print/cups-base/Makefile | 5 | ||||
-rw-r--r-- | print/cups-base/pkg-plist | 8 |
2 files changed, 7 insertions, 6 deletions
diff --git a/print/cups-base/Makefile b/print/cups-base/Makefile index e7ed803..dc12c45 100644 --- a/print/cups-base/Makefile +++ b/print/cups-base/Makefile @@ -40,13 +40,10 @@ pre-install: post-install: ${MKDIR} ${CUPS_ETCDIR} -.for f in classes.conf client.conf cupsd.conf printers.conf +.for f in classes.conf client.conf cupsd.conf printers.conf mime.convs mime.types ${INSTALL_DATA} ${WRKSRC}/conf/${f} ${CUPS_ETCDIR}/${f}.N cd ${CUPS_ETCDIR}; if test ! -f ${f}; then ${CP} -p ${f}.N ${f}; fi .endfor # classes.conf client.conf cupsd.conf printers.conf -.for f in mime.convs mime.types - ${INSTALL_DATA} ${WRKSRC}/conf/${f} ${CUPS_ETCDIR}/${f} -.endfor # mime.convs mime.types cd ${CUPS_RCDIR}; ${MV} cups cups.sh.sample ${FIND} ${PREFIX}/man/cat* -type l -name '*.0' -delete ${MKDIR} ${CUPS_SPOOLDIR} ${CUPS_SPOOLDIR}/tmp diff --git a/print/cups-base/pkg-plist b/print/cups-base/pkg-plist index 669447d..bc237db 100644 --- a/print/cups-base/pkg-plist +++ b/print/cups-base/pkg-plist @@ -11,8 +11,12 @@ etc/cups/client.conf.N @unexec if cmp -s %D/etc/cups/cupsd.conf.N %D/etc/cups/cupsd.conf; then rm -f %D/etc/cups/cupsd.conf; fi etc/cups/cupsd.conf.N @exec if test ! -f %D/etc/cups/cupsd.conf; then cp -p %D/etc/cups/cupsd.conf.N %D/etc/cups/cupsd.conf; fi -etc/cups/mime.convs -etc/cups/mime.types +@unexec if cmp -s %D/etc/cups/mime.convs.N %D/etc/cups/mime.convs; then rm -f %D/etc/cups/mime.convs; fi +etc/cups/mime.convs.N +@exec if test ! -f %D/etc/cups/mime.convs; then cp -p %D/etc/cups/mime.convs.N %D/etc/cups/mime.convs; fi +@unexec if cmp -s %D/etc/cups/mime.types.N %D/etc/cups/mime.types; then rm -f %D/etc/cups/mime.types; fi +etc/cups/mime.types.N +@exec if test ! -f %D/etc/cups/mime.types; then cp -p %D/etc/cups/mime.types.N %D/etc/cups/mime.types; fi @unexec if cmp -s %D/etc/cups/printers.conf.N %D/etc/cups/printers.conf; then rm -f %D/etc/cups/printers.conf; fi etc/cups/printers.conf.N @exec if test ! -f %D/etc/cups/printers.conf; then cp -p %D/etc/cups/printers.conf.N %D/etc/cups/printers.conf; fi |