summaryrefslogtreecommitdiff
path: root/pkgtools/libnbcompat
diff options
context:
space:
mode:
authorreed <reed>2005-10-10 18:28:08 +0000
committerreed <reed>2005-10-10 18:28:08 +0000
commit5903097adb246297fab669ebb482096eea47bfe9 (patch)
tree11cdbe86365011cf3b6adbd3e9d21d3a47f121b5 /pkgtools/libnbcompat
parentac444196fc96431d3d228951c187d573b13bf02f (diff)
downloadpkgsrc-5903097adb246297fab669ebb482096eea47bfe9.tar.gz
Instead of using hard-coded 555 mode for installing library,
use BINMODE setting. This helps with non-privileged pkgsrc use.
Diffstat (limited to 'pkgtools/libnbcompat')
-rw-r--r--pkgtools/libnbcompat/Makefile3
-rw-r--r--pkgtools/libnbcompat/files/Makefile.in5
2 files changed, 5 insertions, 3 deletions
diff --git a/pkgtools/libnbcompat/Makefile b/pkgtools/libnbcompat/Makefile
index dfa9a6dda2e..14036c19884 100644
--- a/pkgtools/libnbcompat/Makefile
+++ b/pkgtools/libnbcompat/Makefile
@@ -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_CHECKSUM= yes
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 --git a/pkgtools/libnbcompat/files/Makefile.in b/pkgtools/libnbcompat/files/Makefile.in
index 92b63917eb3..772805f96f5 100644
--- a/pkgtools/libnbcompat/files/Makefile.in
+++ b/pkgtools/libnbcompat/files/Makefile.in
@@ -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 @@ CFLAGS= -I$(srcdir) -I. @INCLUDES@ @CFLAGS@
CPPFLAGS= @CPPFLAGS@
DEFS= @DEFS@
INSTALL= @INSTALL@
+BINMODE?= 555
LDFLAGS= @LDFLAGS@
AWK= @AWK@
@@ -83,7 +84,7 @@ bits: bits.c
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