FreeBSD Bugzilla – Attachment 45690 Details for
Bug 70390
[update]net/dictd: fix overwrite config file
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
dictd.diff
dictd.diff (text/plain), 1.89 KB, created by
Dryice Liu
on 2004-08-13 03:20:18 UTC
(
hide
)
Description:
dictd.diff
Filename:
MIME Type:
Creator:
Dryice Liu
Created:
2004-08-13 03:20:18 UTC
Size:
1.89 KB
patch
obsolete
>diff -ruN dictd.old/Makefile dictd/Makefile >--- dictd.old/Makefile Sat Jun 5 03:18:10 2004 >+++ dictd/Makefile Fri Aug 13 10:02:18 2004 >@@ -47,7 +47,8 @@ > .for i in example.conf example.dictrc example.site example2.conf example3.conf > ${INSTALL_DATA} ${WRKSRC}/$i ${DATADIR} > .endfor >- @${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/${PORTNAME}.conf > ${PREFIX}/etc/${PORTNAME}.conf >+ @${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/${PORTNAME}.conf > ${PREFIX}/etc/${PORTNAME}.conf.sample >+ @${SETENV} PKG_PREFIX="${PREFIX}" PKG_DESTDIR="${DESTDIR}" ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL > @${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/${PORTNAME}.sh > ${PREFIX}/etc/rc.d/${PORTNAME}.sh > @${CHMOD} +x ${PREFIX}/etc/rc.d/${PORTNAME}.sh > @${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${PKGMESSAGE} >diff -ruN dictd.old/pkg-deinstall dictd/pkg-deinstall >--- dictd.old/pkg-deinstall Thu Jan 1 08:00:00 1970 >+++ dictd/pkg-deinstall Fri Aug 13 10:01:22 2004 >@@ -0,0 +1,12 @@ >+#!/bin/sh >+# >+# $FreeBSD$ >+# >+ >+case $2 in >+DEINSTALL) >+ if cmp -s ${PKG_PREFIX-/usr/local}/etc/dictd.conf ${PKG_PREFIX-/usr/local}/etc/dictd.conf.sample; then >+ rm -f ${PKG_PREFIX-/usr/local}/etc/dictd.conf; >+ fi >+ ;; >+esac >diff -ruN dictd.old/pkg-install dictd/pkg-install >--- dictd.old/pkg-install Thu Jan 1 08:00:00 1970 >+++ dictd/pkg-install Fri Aug 13 09:51:13 2004 >@@ -0,0 +1,12 @@ >+#!/bin/sh >+# >+# $FreeBSD$ >+# >+ >+case $2 in >+POST-INSTALL) >+ if [ ! -f ${PKG_PREFIX-/usr/local}/etc/dictd.conf ]; then >+ cp ${PKG_PREFIX-/usr/local}/etc/dictd.conf.sample ${PKG_PREFIX-/usr/local}/etc/dictd.conf >+ fi >+ ;; >+esac >diff -ruN dictd.old/pkg-plist dictd/pkg-plist >--- dictd.old/pkg-plist Mon Jan 29 05:23:04 2001 >+++ dictd/pkg-plist Fri Aug 13 10:02:21 2004 >@@ -5,6 +5,6 @@ > share/dictd/example.site > share/dictd/example2.conf > share/dictd/example3.conf >-etc/dictd.conf >+etc/dictd.conf.sample > etc/rc.d/dictd.sh > @dirrm share/dictd
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 70390
: 45690