aboutsummaryrefslogtreecommitdiffstats
path: root/misc/ytree
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2015-08-29 20:08:11 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2015-08-29 20:08:11 +0800
commit4689547876975846fe9cc3e4da01443dfa07ac17 (patch)
tree970fda53feb8e0e38445d49a9671c0df4f41387a /misc/ytree
parent3c541b2d96be0625c56bd8c7372e411a5e99299c (diff)
downloadfreebsd-ports-gnome-4689547876975846fe9cc3e4da01443dfa07ac17.tar.gz
freebsd-ports-gnome-4689547876975846fe9cc3e4da01443dfa07ac17.tar.zst
freebsd-ports-gnome-4689547876975846fe9cc3e4da01443dfa07ac17.zip
- Add LICENSE
- Switch to options helpers - Switch to @sample Approved by: portmgr blanket
Diffstat (limited to 'misc/ytree')
-rw-r--r--misc/ytree/Makefile5
-rw-r--r--misc/ytree/pkg-plist4
2 files changed, 6 insertions, 3 deletions
diff --git a/misc/ytree/Makefile b/misc/ytree/Makefile
index 479ee81cd2a5..c7c9697280d2 100644
--- a/misc/ytree/Makefile
+++ b/misc/ytree/Makefile
@@ -9,6 +9,9 @@ MASTER_SITES= http://www.han.de/~werner/
MAINTAINER= olgeni@FreeBSD.org
COMMENT= DOS-XTREE(tm) look-a-like file manager
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/COPYING
+
ALL_TARGET= ytree
OPTIONS_DEFINE= DOCS
@@ -17,6 +20,8 @@ do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ytree ${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/ytree.conf ${STAGEDIR}${PREFIX}/etc/ytree.conf.sample
${INSTALL_MAN} ${WRKSRC}/ytree.1 ${STAGEDIR}${MANPREFIX}/man/man1
+
+do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/ytree
.for file in CHANGES README THANKS
${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${PREFIX}/share/doc/ytree
diff --git a/misc/ytree/pkg-plist b/misc/ytree/pkg-plist
index 94dd4c91a137..4b5e5bb77477 100644
--- a/misc/ytree/pkg-plist
+++ b/misc/ytree/pkg-plist
@@ -1,7 +1,5 @@
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
+@sample etc/ytree.conf.sample
man/man1/ytree.1.gz
%%PORTDOCS%%%%DOCSDIR%%/CHANGES
%%PORTDOCS%%%%DOCSDIR%%/README