pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils/osname * Use *__MAKE_FLAGS instead of *_TARGE...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d0b17b79d194
branches:  trunk
changeset: 536861:d0b17b79d194
user:      obache <obache%pkgsrc.org@localhost>
date:      Thu Dec 27 11:55:51 2007 +0000

description:
* Use *__MAKE_FLAGS instead of *_TARGET for pass variables.
* Honor PKGMANDIR.
* Add DESTDIR support.

Bump PKGREVISION.

diffstat:

 sysutils/osname/Makefile         |  11 ++++++++---
 sysutils/osname/distinfo         |   4 ++--
 sysutils/osname/patches/patch-aa |  12 ++++++------
 3 files changed, 16 insertions(+), 11 deletions(-)

diffs (64 lines):

diff -r 8b1fbc3fcf6d -r d0b17b79d194 sysutils/osname/Makefile
--- a/sysutils/osname/Makefile  Thu Dec 27 11:44:23 2007 +0000
+++ b/sysutils/osname/Makefile  Thu Dec 27 11:55:51 2007 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.4 2004/12/03 15:15:10 wiz Exp $
+# $NetBSD: Makefile,v 1.5 2007/12/27 11:55:51 obache Exp $
 #
 
 DISTNAME=              osname-1.1
+PKGREVISION=           1
 CATEGORIES=            sysutils
 MASTER_SITES=          ftp://ftp.gw.com/pub/people/kim/
 
@@ -9,7 +10,11 @@
 COMMENT=               Print canonical name of operating system
 
 NO_CONFIGURE=          yes
-BUILD_TARGET=          all PREFIX=${PREFIX}
-INSTALL_TARGET=                install PREFIX=${PREFIX}
+BUILD_MAKE_FLAGS=      PREFIX=${PREFIX}
+INSTALL_MAKE_FLAGS=    PREFIX=${PREFIX}
+
+INSTALLATION_DIRS=     bin ${PKGMANDIR}/man1
+
+PKG_DESTDIR_SUPPORT=   user-destdir
 
 .include "../../mk/bsd.pkg.mk"
diff -r 8b1fbc3fcf6d -r d0b17b79d194 sysutils/osname/distinfo
--- a/sysutils/osname/distinfo  Thu Dec 27 11:44:23 2007 +0000
+++ b/sysutils/osname/distinfo  Thu Dec 27 11:55:51 2007 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.4 2005/02/24 13:40:55 agc Exp $
+$NetBSD: distinfo,v 1.5 2007/12/27 11:55:51 obache Exp $
 
 SHA1 (osname-1.1.tar.gz) = 4faefdd1b57412805342314b540d909a3289a8ba
 RMD160 (osname-1.1.tar.gz) = e514bbe6cfd0bca3d6476c464773e592fc734fd8
 Size (osname-1.1.tar.gz) = 1531 bytes
-SHA1 (patch-aa) = a4a3fccf8ebd4a75a478cdd53cff57c5df9d5b6e
+SHA1 (patch-aa) = e72fbefbe1ce22734aa83d5d95743c79b083b0b8
diff -r 8b1fbc3fcf6d -r d0b17b79d194 sysutils/osname/patches/patch-aa
--- a/sysutils/osname/patches/patch-aa  Thu Dec 27 11:44:23 2007 +0000
+++ b/sysutils/osname/patches/patch-aa  Thu Dec 27 11:55:51 2007 +0000
@@ -1,15 +1,15 @@
-$NetBSD: patch-aa,v 1.1 2003/09/23 13:39:41 wiz Exp $
+$NetBSD: patch-aa,v 1.2 2007/12/27 11:55:51 obache Exp $
 
---- Makefile.orig      Tue Sep 23 10:30:17 2003
-+++ Makefile   Tue Sep 23 10:31:00 2003
-@@ -7,8 +7,8 @@
+--- Makefile.orig      1999-07-05 04:55:02.000000000 +0000
++++ Makefile
+@@ -7,8 +7,8 @@ CMD=osname
  all: $(CMD)
  
  install: $(CMD)
 -      install -c $(CMD) ${PREFIX}/bin/$(CMD)
 -      install -m 664 $(CMD).1 ${PREFIX}/man/man1
-+      ${BSD_INSTALL_SCRIPT} $(CMD) ${PREFIX}/bin/$(CMD)
-+      ${BSD_INSTALL_MAN} $(CMD).1 ${PREFIX}/man/man1/$(CMD).1
++      ${BSD_INSTALL_SCRIPT} $(CMD) ${DESTDIR}${PREFIX}/bin/$(CMD)
++      ${BSD_INSTALL_MAN} $(CMD).1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/$(CMD).1
  
  clean:
        rm -f $(CMD)



Home | Main Index | Thread Index | Old Index