pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/sdist Some cleanups and fix.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/92d101432da2
branches:  trunk
changeset: 536828:92d101432da2
user:      obache <obache%pkgsrc.org@localhost>
date:      Mon Dec 24 08:34:51 2007 +0000

description:
Some cleanups and fix.
 * SDIST_PAWD is BUILD_DEFS.
 * Need sbin and man directory before install.
 * Use *_MAKE_FLAGS instead of *_TARGET to pass make variables.
 * Fix manual installation path for platform PKGMANDIR != man.
 * DESTDIR ready.
Bump PKGREVISION.

diffstat:

 net/sdist/Makefile |  17 ++++++++++++++---
 1 files changed, 14 insertions(+), 3 deletions(-)

diffs (34 lines):

diff -r 11953921efe9 -r 92d101432da2 net/sdist/Makefile
--- a/net/sdist/Makefile        Mon Dec 24 08:07:42 2007 +0000
+++ b/net/sdist/Makefile        Mon Dec 24 08:34:51 2007 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.12 2006/06/04 07:58:36 kim Exp $
+# $NetBSD: Makefile,v 1.13 2007/12/24 08:34:51 obache Exp $
 #
 
 DISTNAME=              sdist-1.7
+PKGREVISION=           1
 CATEGORIES=            net
 MASTER_SITES=          ftp://ftp.gw.com/pub/people/kim/
 
@@ -17,8 +18,18 @@
 
 SDIST_PAWD?=           pwd
 
+BUILD_DEFS+=           SDIST_PAWD
+
+INSTALLATION_DIRS=     sbin ${PKGMANDIR}/man8
 NO_CONFIGURE=          yes
-BUILD_TARGET=          all PREFIX=${PREFIX} PAWD=${SDIST_PAWD}
-INSTALL_TARGET=                install PREFIX=${PREFIX}
+BUILD_MAKE_FLAGS+=     PREFIX=${PREFIX} PAWD=${SDIST_PAWD}
+INSTALL_MAKE_FLAGS+=   PREFIX=${DESTDIR}${PREFIX}
+
+PKG_DESTDIR_SUPPORT=   user-destdir
+
+SUBST_CLASSES+=                manpath
+SUBST_STAGE.manpath=   post-extract
+SUBST_FILES.manpath=   Makefile
+SUBST_SED.manpath=     -e 's,/man/,/${PKGMANDIR}/,'
 
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index