summaryrefslogtreecommitdiffstats
path: root/usr.sbin/nmtree
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2013-01-09 21:07:08 +0000
committerbrooks <brooks@FreeBSD.org>2013-01-09 21:07:08 +0000
commit8ab7717e288b7ee92b94499b85a61b53eaece449 (patch)
tree0a67e5deea12a9f24841c71093ee658bdb79f011 /usr.sbin/nmtree
parent20f8f82daf3917d7ace388a468798b6088fb2938 (diff)
downloadFreeBSD-src-8ab7717e288b7ee92b94499b85a61b53eaece449.zip
FreeBSD-src-8ab7717e288b7ee92b94499b85a61b53eaece449.tar.gz
Always install our mtree as /usr/sbin/fmtree and link it as
/usr/sbin/mtree by default. Add a src.conf option WITH_NMTREE that causes NetBSD's mtree to be linked as /usr/sbin/mtree as well as /usr/sbin/nmtree.
Diffstat (limited to 'usr.sbin/nmtree')
-rw-r--r--usr.sbin/nmtree/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/usr.sbin/nmtree/Makefile b/usr.sbin/nmtree/Makefile
index 58e46ea..1b8cc01 100644
--- a/usr.sbin/nmtree/Makefile
+++ b/usr.sbin/nmtree/Makefile
@@ -20,6 +20,13 @@ LIBNETBSD= ${LIBNETBSDDIR}/libnetbsd.a
DPADD+= ${LIBNETBSD}
LDADD+= ${LIBNETBSD}
+.if ${MK_NMTREE} != "no"
+LINKS= ${BINDIR}/nmtree ${BINDIR}/mtree
+MLINKS= nmtree.8 mtree.8
+.endif
+
+CLEANFILES+= nmtree.8
+
nmtree.8: mtree.8
cp ${.ALLSRC} ${.TARGET}
OpenPOWER on IntegriCloud