pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/libnbcompat Instead of using hard-coded 555 m...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5d8991c78179
branches:  trunk
changeset: 500594:5d8991c78179
user:      reed <reed%pkgsrc.org@localhost>
date:      Mon Oct 10 18:28:08 2005 +0000

description:
Instead of using hard-coded 555 mode for installing library,
use BINMODE setting. This helps with non-privileged pkgsrc use.

diffstat:

 pkgtools/libnbcompat/Makefile          |  3 ++-
 pkgtools/libnbcompat/files/Makefile.in |  5 +++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diffs (43 lines):

diff -r 414715d33eac -r 5d8991c78179 pkgtools/libnbcompat/Makefile
--- a/pkgtools/libnbcompat/Makefile     Mon Oct 10 17:48:09 2005 +0000
+++ b/pkgtools/libnbcompat/Makefile     Mon Oct 10 18:28:08 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.46 2005/05/15 02:01:14 reed Exp $
+# $NetBSD: Makefile,v 1.47 2005/10/10 18:28:08 reed Exp $
 #
 # NOTE: If you update this package, it is *mandatory* that you update
 #      pkgsrc/pkgtools/libnbcompat/files/README to reflect the actual
@@ -19,6 +19,7 @@
 NO_MTREE=              yes
 
 GNU_CONFIGURE=         yes
+MAKE_ENV+=             BINMODE=${BINMODE}
 
 PKG_INFO=              PKG_DBDIR=${_PKG_DBDIR} ${PKG_INFO_CMD}
 PKG_CREATE=            PKG_DBDIR=${_PKG_DBDIR} ${PKG_CREATE_CMD}
diff -r 414715d33eac -r 5d8991c78179 pkgtools/libnbcompat/files/Makefile.in
--- a/pkgtools/libnbcompat/files/Makefile.in    Mon Oct 10 17:48:09 2005 +0000
+++ b/pkgtools/libnbcompat/files/Makefile.in    Mon Oct 10 18:28:08 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.in,v 1.31 2005/02/20 05:55:51 grant Exp $
+# $NetBSD: Makefile.in,v 1.32 2005/10/10 18:28:08 reed Exp $
 #
 
 srcdir=                @srcdir@
@@ -12,6 +12,7 @@
 CPPFLAGS=      @CPPFLAGS@
 DEFS=          @DEFS@
 INSTALL=       @INSTALL@
+BINMODE?=      555
 LDFLAGS=       @LDFLAGS@
 
 AWK=           @AWK@
@@ -83,7 +84,7 @@
 
 install:
        $(INSTALL) -m 755 -d $(prefix)/lib
-       $(INSTALL) -m 555 ${LIB} $(prefix)/lib
+       $(INSTALL) -m $(BINMODE) ${LIB} $(prefix)/lib
        $(RANLIB) $(prefix)/lib/$(LIB)
        $(INSTALL) -m 755 -d $(prefix)/include
        $(INSTALL) -m 755 -d $(prefix)/include/nbcompat



Home | Main Index | Thread Index | Old Index