diff options
author | Dima Dorfman <dd@FreeBSD.org> | 2006-01-07 23:31:52 +0000 |
---|---|---|
committer | Dima Dorfman <dd@FreeBSD.org> | 2006-01-07 23:31:52 +0000 |
commit | 47967296c38020d48c8ef72fb9951fecc4637cda (patch) | |
tree | 41382c265737f0d5ac8d975ed8be0e6bb1816b8d /textproc/dict | |
parent | fae4bb7a39b1c8aaa0ae2976c848f6a04d541350 (diff) | |
download | ports-47967296c38020d48c8ef72fb9951fecc4637cda.tar.gz ports-47967296c38020d48c8ef72fb9951fecc4637cda.zip |
Notes
Diffstat (limited to 'textproc/dict')
-rw-r--r-- | textproc/dict/Makefile | 5 | ||||
-rw-r--r-- | textproc/dict/pkg-plist | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/textproc/dict/Makefile b/textproc/dict/Makefile index 443dcc1922c3..d170c3730de0 100644 --- a/textproc/dict/Makefile +++ b/textproc/dict/Makefile @@ -8,7 +8,7 @@ PORTNAME= dict PORTVERSION= 1.10.4 -PORTREVISION= 0 +PORTREVISION= 1 CATEGORIES= textproc MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= dict @@ -33,8 +33,9 @@ post-patch: ${REINPLACE_CMD} -e 's|/etc/|${PREFIX}/etc/|g' ${WRKSRC}/dict.1.in post-install: + ${INSTALL_DATA} ${FILESDIR}/dict.conf ${PREFIX}/etc/dict.conf.sample if [ ! -f ${PREFIX}/etc/dict.conf ]; then \ - ${INSTALL_DATA} ${FILESDIR}/dict.conf ${PREFIX}/etc; \ + ${CP} -p ${PREFIX}/etc/dict.conf.sample ${PREFIX}/etc/dict.conf; \ fi .include <bsd.port.mk> diff --git a/textproc/dict/pkg-plist b/textproc/dict/pkg-plist index e97bed355c50..5721bd91c90a 100644 --- a/textproc/dict/pkg-plist +++ b/textproc/dict/pkg-plist @@ -1,4 +1,6 @@ @comment $FreeBSD$ bin/dict bin/dictl -etc/dict.conf +@unexec if cmp -s %D/etc/dict.conf.sample %D/etc/dict.conf; then rm -f %D/etc/dict.conf; fi +etc/dict.conf.sample +@exec [ -f %B/dict.conf ] || cp %B/%f %B/dict.conf |