From 4849af0b3086b19111e73ce2d7fe508d707a28ad Mon Sep 17 00:00:00 2001 From: adrianp Date: Fri, 11 Aug 2006 16:22:04 +0000 Subject: Add an extra MESSAGE if the user has selected to compile freeradius with PAM support. From discussions with John Nemeth. --- net/freeradius/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'net/freeradius/Makefile') diff --git a/net/freeradius/Makefile b/net/freeradius/Makefile index cba4da2a278..6e5c1557473 100644 --- a/net/freeradius/Makefile +++ b/net/freeradius/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.53 2006/08/10 10:55:52 adrianp Exp $ +# $NetBSD: Makefile,v 1.54 2006/08/11 16:22:04 adrianp Exp $ DISTNAME= freeradius-${RADVER} PKGREVISION= 2 @@ -23,6 +23,7 @@ PLIST_SRC= ${WRKDIR}/.PLIST_SRC FILES_SUBST+= RADIUS_USER=${RADIUS_USER:Q} FILES_SUBST+= RADIUS_GROUP=${RADIUS_GROUP:Q} PLIST_SUBST+= RADVER=${RADVER} +MESSAGE_SRC+= ${WRKDIR}/.MESSAGE_SRC MESSAGE_SUBST+= CHOWN=${CHOWN:Q} CHMOD=${CHMOD:Q} VARBASE=${VARBASE} MESSAGE_SUBST+= RADIUS_USER=${RADIUS_USER:Q} XARGS=${XARGS:Q} MESSAGE_SUBST+= RADIUS_GROUP=${RADIUS_GROUP:Q} FIND=${FIND:Q} @@ -127,6 +128,10 @@ CFLAGS+= -fPIC post-build: ${CP} ${PKGDIR}/PLIST ${WRKDIR}/.PLIST_SRC + ${CP} ${PKGDIR:Q}/MESSAGE ${WRKDIR:Q}/.MESSAGE_SRC +.if !empty(PKG_OPTIONS:Mpam) + ${CP} ${PKGDIR:Q}/MESSAGE.pam ${WRKDIR:Q}/.MESSAGE_SRC.pam +.endif post-install: ${INSTALL_DATA_DIR} ${EGDIR} -- cgit v1.2.3