Skip to content

Commit

Permalink
Override INSTALL script to make sure owner/group args do not leak
Browse files Browse the repository at this point in the history
into the binary packages. Fixes problems with building software
manually against binary postgresql*-client packages built under an
unprivileged setup. Bump respective PKGREVISION.

See TritonDataCenter/pkgsrc#377
  • Loading branch information
fhajny authored and Filip Hajny committed Sep 7, 2016
1 parent 106649d commit 690c2f9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion databases/postgresql93-client/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# $NetBSD: Makefile,v 1.8 2016/04/09 12:51:47 adam Exp $
# $NetBSD: Makefile,v 1.9 2016/06/15 09:25:18 fhajny Exp $

PKGNAME= ${DISTNAME:C/-/93-client-/}
PKGREVIION= 1
COMMENT= PostgreSQL database client programs

.include "../../databases/postgresql93/Makefile.common"
Expand All @@ -10,6 +11,10 @@ CONFIGURE_ARGS+= --with-openssl
CONFIGURE_ARGS+= --with-readline
CONFIGURE_ARGS+= --with-zlib

# Override INSTALL script to avoid unprivileged user/group
# leaking into the binary package
CONFIGURE_ARGS+= INSTALL=${INSTALL:Q}\ -c

.include "../../mk/bsd.prefs.mk"

.if ${OPSYS} == "Cygwin"
Expand Down
7 changes: 6 additions & 1 deletion databases/postgresql94-client/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# $NetBSD: Makefile,v 1.3 2016/04/09 12:51:48 adam Exp $
# $NetBSD: Makefile,v 1.4 2016/06/15 09:25:18 fhajny Exp $

PKGNAME= ${DISTNAME:C/-/94-client-/}
PKGREVISION= 1
COMMENT= PostgreSQL database client programs

.include "../../databases/postgresql94/Makefile.common"
Expand All @@ -9,6 +10,10 @@ USE_TOOLS+= gzip tar
CONFIGURE_ARGS+= --with-openssl
CONFIGURE_ARGS+= --with-zlib

# Override INSTALL script to avoid unprivileged user/group
# leaking into the binary package
CONFIGURE_ARGS+= INSTALL=${INSTALL:Q}\ -c

.include "../../mk/bsd.prefs.mk"

.if ${OPSYS} == "Cygwin"
Expand Down

0 comments on commit 690c2f9

Please sign in to comment.