diff options
author | olgeni <olgeni@FreeBSD.org> | 2007-02-04 06:07:09 +0800 |
---|---|---|
committer | olgeni <olgeni@FreeBSD.org> | 2007-02-04 06:07:09 +0800 |
commit | f8c74e44074abb869047c5e6128bb40fa3045b28 (patch) | |
tree | e6f29348a90b9b710f6864d3642a74a6092828f8 /misc/ytree | |
parent | e8ea77eef9ee4a7478af0f9397c19e4f23160f54 (diff) | |
download | freebsd-ports-gnome-f8c74e44074abb869047c5e6128bb40fa3045b28.tar.gz freebsd-ports-gnome-f8c74e44074abb869047c5e6128bb40fa3045b28.tar.zst freebsd-ports-gnome-f8c74e44074abb869047c5e6128bb40fa3045b28.zip |
Unbreak: add proper handling of configuration file.
PR: ports/108674
Submitted by: rafan
Diffstat (limited to 'misc/ytree')
-rw-r--r-- | misc/ytree/Makefile | 8 | ||||
-rw-r--r-- | misc/ytree/pkg-plist | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/misc/ytree/Makefile b/misc/ytree/Makefile index d1c63ab7c977..abd9ffa8692e 100644 --- a/misc/ytree/Makefile +++ b/misc/ytree/Makefile @@ -7,15 +7,13 @@ PORTNAME= ytree PORTVERSION= 1.87 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= misc MASTER_SITES= http://www.han.de/~werner/ MAINTAINER= olgeni@FreeBSD.org COMMENT= DOS-XTREE(tm) look-a-like file manager -BROKEN= Doesn't correctly remove config file on deinstall - ALL_TARGET= ytree MAN1= ytree.1 @@ -28,8 +26,8 @@ do-install: .for file in CHANGES README THANKS ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/ytree .endfor - @if [ ! -e ${PREFIX}/etc/ytree.conf ]; then \ - ${INSTALL_DATA} ${WRKSRC}/ytree.conf ${PREFIX}/etc/ytree.conf; \ + @if [ ! -f ${PREFIX}/etc/ytree.conf ]; then \ + ${CP} -p ${PREFIX}/etc/ytree.conf.sample ${PREFIX}/etc/ytree.conf; \ fi .endif diff --git a/misc/ytree/pkg-plist b/misc/ytree/pkg-plist index 4e265bcbb405..a9e56b88d9f2 100644 --- a/misc/ytree/pkg-plist +++ b/misc/ytree/pkg-plist @@ -1,5 +1,7 @@ bin/ytree +@unexec if cmp -s %D/etc/ytree.conf.sample %D/etc/ytree.conf; then rm -f %D/etc/ytree.conf; fi etc/ytree.conf.sample +@exec if [ ! -f %D/etc/ytree.conf ] ; then cp -p %D/%F %B/ytree.conf; fi %%DOCSDIR%%/CHANGES %%DOCSDIR%%/README %%DOCSDIR%%/THANKS |