diff options
author | adrianp <adrianp> | 2006-08-11 16:22:04 +0000 |
---|---|---|
committer | adrianp <adrianp> | 2006-08-11 16:22:04 +0000 |
commit | 1399a3a3ca444538433d640708180606cd20beb8 (patch) | |
tree | 78f5a9c09e318b09ff7df4ced8c0d27efcfeea4b /net/freeradius | |
parent | 14b21de69299b46a2cbac95bbfb9eafb1fc807a0 (diff) | |
download | pkgsrc-1399a3a3ca444538433d640708180606cd20beb8.tar.gz |
Add an extra MESSAGE if the user has selected to compile freeradius with
PAM support.
From discussions with John Nemeth.
Diffstat (limited to 'net/freeradius')
-rw-r--r-- | net/freeradius/MESSAGE.pam | 21 | ||||
-rw-r--r-- | net/freeradius/Makefile | 7 | ||||
-rw-r--r-- | net/freeradius/options.mk | 3 |
3 files changed, 29 insertions, 2 deletions
diff --git a/net/freeradius/MESSAGE.pam b/net/freeradius/MESSAGE.pam new file mode 100644 index 00000000000..8fe42312097 --- /dev/null +++ b/net/freeradius/MESSAGE.pam @@ -0,0 +1,21 @@ +=========================================================================== +$NetBSD: MESSAGE.pam,v 1.1 2006/08/11 16:22:04 adrianp Exp $ + +Certain PAM modules require that radiusd run as root in order to +perform privileged operations. However, other PAM modules (e.g. pam-dbm), +will work with with radiusd running as non-root if the non-root user is +given the permissions necessary. + +If you will be using a PAM module that requires radiusd to run as root +you can set the following in /etc/mk.conf: + + RADIUS_USER=root + RADIUS_GROUP=wheel + +And then re-install freeradius. Alternatively, you can just change the +following settings in your ${PKG_SYSCONFDIR}/radiusd.conf + + user = root + group = wheel + +=========================================================================== 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} diff --git a/net/freeradius/options.mk b/net/freeradius/options.mk index 3d054f50d50..ab4de326af6 100644 --- a/net/freeradius/options.mk +++ b/net/freeradius/options.mk @@ -1,4 +1,4 @@ -# $NetBSD: options.mk,v 1.11 2006/08/09 16:42:09 adrianp Exp $ +# $NetBSD: options.mk,v 1.12 2006/08/11 16:22:04 adrianp Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.freeradius @@ -106,6 +106,7 @@ CONFIGURE_ENV+= ac_cv_path_SNMPWALK="" .if !empty(PKG_OPTIONS:Mpam) CONFIGURE_ARGS+= --with-rlm_pam PLIST_SRC+= ${PKGDIR}/PLIST.pam +MESSAGE_SRC+= ${WRKDIR}/.MESSAGE_SRC.pam .else CONFIGURE_ARGS+= --without-rlm_pam .endif |