pass "safe" values of BSDSRCDIR and BSDOBJDIR on the command line.
Those ports use bsd.obj.mk, which doesn't like it if BSDSRCDIR doesn't point to a defined place. (found by doing a bulk on a chroot in a somewhat more hostile setup than usual)
This commit is contained in:
parent
2034903098
commit
a481295b2e
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.28 2015/12/20 00:16:27 naddy Exp $
|
||||
# $OpenBSD: Makefile,v 1.29 2016/05/02 14:52:48 espie Exp $
|
||||
|
||||
V = 3.3.6
|
||||
CONFIG = ${MACHINE_ARCH}-unknown-openbsd${OSREV}
|
||||
@ -29,6 +29,8 @@ MAKE_FLAGS = MANDIR=${TRUEPREFIX}/man/cat \
|
||||
USE_COLLECT2= \
|
||||
LANGUAGES=f77 \
|
||||
LIBDIR=${TRUEPREFIX}/lib \
|
||||
BSDSRCDIR=${WRKDIST} \
|
||||
BSDOBJDIR=${WRKBUILD} \
|
||||
major=${MAJOR} minor=${MINOR} \
|
||||
libf2c_cv_has_g77_builtin_types=yes
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.7 2016/03/16 16:46:33 naddy Exp $
|
||||
# $OpenBSD: Makefile,v 1.8 2016/05/02 14:52:48 espie Exp $
|
||||
|
||||
COMMENT= Pluggable Authentication Module
|
||||
|
||||
@ -23,6 +23,7 @@ MASTER_SITES= http://nerd.hu/distfiles/
|
||||
|
||||
WRKSRC= ${WRKDIST}/libpam
|
||||
|
||||
MAKE_FLAGS += BSDSRCDIR=${WRKDIST} BSDOBJDIR=${WRKBUILD}
|
||||
MAKE_ENV+= PAM_MOD_DIR=${TRUEPREFIX}/lib/security
|
||||
|
||||
PAM_MODULES= deny echo exec nologin permit rootok \
|
||||
@ -31,7 +32,7 @@ PAM_MODULES= deny echo exec nologin permit rootok \
|
||||
NO_TEST= Yes
|
||||
|
||||
pre-build:
|
||||
cd ${WRKSRC} && ${MAKE} obj
|
||||
cd ${WRKSRC} && ${MAKE} ${MAKE_FLAGS} obj
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/lib/security
|
||||
|
Loading…
Reference in New Issue
Block a user