summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorjlam <jlam>2006-07-14 19:23:09 +0000
committerjlam <jlam>2006-07-14 19:23:09 +0000
commit11303fc8a1c9101af26d807966d1b7b6b7f966a6 (patch)
tree831ed29f35cf2cf573b577959ab6ce2da5485b84 /pkgtools
parent264d477acb4f54cf51ae9ed2278aab6248be8079 (diff)
downloadpkgsrc-11303fc8a1c9101af26d807966d1b7b6b7f966a6.tar.gz
Register and package pkgtools/mtree and populate the PLIST. Also
copy the manpage handling from pkg_install/Makefile.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/mtree/Makefile24
-rw-r--r--pkgtools/mtree/PLIST6
2 files changed, 17 insertions, 13 deletions
diff --git a/pkgtools/mtree/Makefile b/pkgtools/mtree/Makefile
index f37c0b049b0..6eff2b777a5 100644
--- a/pkgtools/mtree/Makefile
+++ b/pkgtools/mtree/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2005/09/28 20:52:25 rillig Exp $
+# $NetBSD: Makefile,v 1.18 2006/07/14 19:23:09 jlam Exp $
#
DISTNAME= mtree-20040722
@@ -14,13 +14,20 @@ GNU_CONFIGURE= yes
NO_PKGTOOLS_REQD_CHECK= # defined
NO_CHECKSUM= yes
-NO_MTREE= yes
-NO_PKG_REGISTER= # defined
-NO_PACKAGE= Deinstallation is not permitted
-PKG_PRESERVE= # defined
+NO_MTREE= yes
+PKG_PRESERVE= # defined
.include "../../mk/bsd.prefs.mk"
+PKG_TOOLS_PREFIX= ${PKG_TOOLS_BIN:C|/[^/]?bin$||}
+
+# XXX This breaks for those who set their own LOCALBASE to "/usr" and also
+# XXX set PKGMANDIR to be other than "share/man".
+# XXX
+.if !empty(PKG_TOOLS_PREFIX:M/usr)
+PKGMANDIR= share/man
+.endif
+
do-extract:
@${CP} -R ${FILESDIR} ${WRKSRC}
@@ -32,9 +39,4 @@ do-extract:
.include "../../mk/bsd.pkg.mk"
-PREFIX:= ${PKG_TOOLS_BIN:C|/[^/]?bin$||}
-.if ${PREFIX} == "/usr"
-CONFIGURE_ARGS+= --mandir=${PREFIX}/share/man
-.else
-CONFIGURE_ARGS+= --mandir=${PREFIX}/man
-.endif
+PREFIX:= ${PKG_TOOLS_PREFIX}
diff --git a/pkgtools/mtree/PLIST b/pkgtools/mtree/PLIST
index d2d39bc2429..3cbb06f715f 100644
--- a/pkgtools/mtree/PLIST
+++ b/pkgtools/mtree/PLIST
@@ -1,2 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2003/03/31 08:51:06 grant Exp $
-@comment this PLIST intentionally left blank.
+@comment $NetBSD: PLIST,v 1.2 2006/07/14 19:23:09 jlam Exp $
+man/cat8/mtree.0
+man/man8/mtree.8
+sbin/mtree