diff options
author | Jimmy Olgeni <olgeni@FreeBSD.org> | 2007-02-03 22:07:09 +0000 |
---|---|---|
committer | Jimmy Olgeni <olgeni@FreeBSD.org> | 2007-02-03 22:07:09 +0000 |
commit | 40002f591182795957ffd709b1f23bbe9c0e9020 (patch) | |
tree | ef7e5e187e624cfd84f67b9544c210990f41fefa /misc | |
parent | adf7ff9b6b1b503d62b98886d20ca4a8f4b6039d (diff) | |
download | ports-40002f591182795957ffd709b1f23bbe9c0e9020.tar.gz ports-40002f591182795957ffd709b1f23bbe9c0e9020.zip |
Notes
Diffstat (limited to 'misc')
-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 |