pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/mtree Register and package pkgtools/mtree and...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/29c5775eff7c
branches:  trunk
changeset: 516125:29c5775eff7c
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Fri Jul 14 19:23:09 2006 +0000

description:
Register and package pkgtools/mtree and populate the PLIST.  Also
copy the manpage handling from pkg_install/Makefile.

diffstat:

 pkgtools/mtree/Makefile |  24 +++++++++++++-----------
 pkgtools/mtree/PLIST    |   6 ++++--
 2 files changed, 17 insertions(+), 13 deletions(-)

diffs (55 lines):

diff -r 6f89c0abd43e -r 29c5775eff7c pkgtools/mtree/Makefile
--- a/pkgtools/mtree/Makefile   Fri Jul 14 18:48:43 2006 +0000
+++ b/pkgtools/mtree/Makefile   Fri Jul 14 19:23:09 2006 +0000
@@ -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 @@
 
 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 @@
 
 .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 -r 6f89c0abd43e -r 29c5775eff7c pkgtools/mtree/PLIST
--- a/pkgtools/mtree/PLIST      Fri Jul 14 18:48:43 2006 +0000
+++ b/pkgtools/mtree/PLIST      Fri Jul 14 19:23:09 2006 +0000
@@ -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



Home | Main Index | Thread Index | Old Index