1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00

Also keep backups of mime.{convs,types} on upgrades.

PR:		ports/70195
Requested by:	John Merryweather Cooper
Patched by:	Sergey Akifyev (maintainer)
This commit is contained in:
Volker Stolz 2004-08-12 13:38:26 +00:00
parent 509afa1e6a
commit af0214e2fe
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=116030
2 changed files with 7 additions and 6 deletions

View File

@ -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

View File

@ -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