From 11303fc8a1c9101af26d807966d1b7b6b7f966a6 Mon Sep 17 00:00:00 2001 From: jlam Date: Fri, 14 Jul 2006 19:23:09 +0000 Subject: Register and package pkgtools/mtree and populate the PLIST. Also copy the manpage handling from pkg_install/Makefile. --- pkgtools/mtree/Makefile | 24 +++++++++++++----------- pkgtools/mtree/PLIST | 6 ++++-- 2 files changed, 17 insertions(+), 13 deletions(-) (limited to 'pkgtools') 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 -- cgit v1.2.3