diff options
author | adrianp <adrianp@pkgsrc.org> | 2006-07-13 22:20:35 +0000 |
---|---|---|
committer | adrianp <adrianp@pkgsrc.org> | 2006-07-13 22:20:35 +0000 |
commit | 354706327a97633d53e2b78cae0cf13ea6c5bb6c (patch) | |
tree | 94c76e7e86ab2d9b153a777022bd6e043b956c2d /net | |
parent | cc40796fe90287546d29b24efb2266e5ccf1b5a7 (diff) | |
download | pkgsrc-354706327a97633d53e2b78cae0cf13ea6c5bb6c.tar.gz |
pkglintification
Add kerberos support - Patch from Kevin Sullivan in PR #33732
Bump to nb4
Diffstat (limited to 'net')
-rw-r--r-- | net/freeradius/Makefile | 23 | ||||
-rw-r--r-- | net/freeradius/PLIST.kerberos | 3 | ||||
-rw-r--r-- | net/freeradius/options.mk | 20 |
3 files changed, 31 insertions, 15 deletions
diff --git a/net/freeradius/Makefile b/net/freeradius/Makefile index f78b3ddf4dc..9d1bc943b80 100644 --- a/net/freeradius/Makefile +++ b/net/freeradius/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.49 2006/07/07 15:49:33 jlam Exp $ +# $NetBSD: Makefile,v 1.50 2006/07/13 22:20:35 adrianp Exp $ DISTNAME= freeradius-1.1.1 -PKGREVISION= 3 +PKGREVISION= 4 CATEGORIES= net MASTER_SITES= ftp://ftp.freeradius.org/pub/radius/ \ ftp://ftp.Awfulhak.org/pub/radius/ @@ -12,7 +12,7 @@ COMMENT= Free RADIUS server implementation .include "../../mk/bsd.prefs.mk" -CONFLICTS+= radiusd-cistron* +CONFLICTS+= radiusd-cistron-[0-9]* USE_TOOLS+= gmake perl:run GNU_CONFIGURE= YES PLIST_SRC= ${WRKDIR}/.PLIST_SRC @@ -32,7 +32,6 @@ CONFIGURE_ARGS+= --with-ltdl-lib=${PREFIX}/lib CONFIGURE_ARGS+= --with-ltdl-include=${PREFIX}/include CONFIGURE_ARGS+= --without-rlm_ippool CONFIGURE_ARGS+= --without-rlm_smb -CONFIGURE_ARGS+= --without-rlm_krb5 CONFIGURE_ARGS+= --without-rlm_pam CONFIGURE_ARGS+= --without-rlm_sql_iodbc CONFIGURE_ARGS+= --without-rlm_sql_oracle @@ -44,7 +43,7 @@ CONFIGURE_ARGS+= --without-rlm_sql_unixodbc REPLACE_PERL= scripts/radsqlrelay -SUBST_CLASSES+= make +SUBST_CLASSES= make SUBST_STAGE.make= post-patch SUBST_FILES.make= src/modules/rlm_mschap/Makefile \ src/modules/rlm_sql/drivers/rlm_sql_postgresql/Makefile.in @@ -92,13 +91,13 @@ CONFIGURE_ARGS+= --without-threads .if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} == "pth" .include "../../devel/pthread-sem/buildlink3.mk" -SUBST_SED.make+= -e "s|@ldap_ldflags@|@ldap_ldflags@ \ - ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS} -lsemaphore|g" +SUBST_SED.make+= -e 's|@ldap_ldflags@|@ldap_ldflags@ \ + ${PTHREAD_LDFLAGS:Q} ${PTHREAD_LIBS:Q} -lsemaphore|g' .endif .if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} == "native" -SUBST_SED.make+= -e "s|@ldap_ldflags@|@ldap_ldflags@ \ - ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}|g" +SUBST_SED.make+= -e 's|@ldap_ldflags@|@ldap_ldflags@ \ + ${PTHREAD_LDFLAGS:Q} ${PTHREAD_LIBS:Q}|g' .endif .if ${OPSYS} == "DragonFly" @@ -109,7 +108,7 @@ CFLAGS+= -fPIC .endif post-build: - @${CP} ${PKGDIR}/PLIST ${WRKDIR}/.PLIST_SRC + ${CP} ${PKGDIR}/PLIST ${WRKDIR}/.PLIST_SRC post-install: ${INSTALL_DATA_DIR} ${EGDIR} @@ -119,7 +118,7 @@ post-install: ${INSTALL_DATA} ${WRKSRC}/raddb/${f} ${EGDIR}/${f} .endfor ${INSTALL_SCRIPT} ${WRKSRC}/src/modules/rlm_perl/example.pl ${EGDIR} - @${MKDIR} ${PKG_SYSCONFDIR}/certs - @${MKDIR} ${PKG_SYSCONFDIR}/certs/demoCA + ${MKDIR} ${PKG_SYSCONFDIR}/certs + ${MKDIR} ${PKG_SYSCONFDIR}/certs/demoCA .include "../../mk/bsd.pkg.mk" diff --git a/net/freeradius/PLIST.kerberos b/net/freeradius/PLIST.kerberos new file mode 100644 index 00000000000..ef120dc0895 --- /dev/null +++ b/net/freeradius/PLIST.kerberos @@ -0,0 +1,3 @@ +@comment $NetBSD: PLIST.kerberos,v 1.1 2006/07/13 22:20:35 adrianp Exp $ +lib/rlm_krb5-${PKGVERSION}.la +lib/rlm_krb5.la diff --git a/net/freeradius/options.mk b/net/freeradius/options.mk index e1d84d3cf3b..95c121d5a09 100644 --- a/net/freeradius/options.mk +++ b/net/freeradius/options.mk @@ -1,11 +1,11 @@ -# $NetBSD: options.mk,v 1.8 2006/05/31 18:22:24 ghen Exp $ +# $NetBSD: options.mk,v 1.9 2006/07/13 22:20:35 adrianp Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.freeradius PKG_OPTIONS_OPTIONAL_GROUPS= dbm PKG_OPTIONS_GROUP.dbm= bdb gdbm -PKG_SUPPORTED_OPTIONS= ldap mysql pgsql snmp +PKG_SUPPORTED_OPTIONS= ldap mysql pgsql snmp kerberos PKG_SUGGESTED_OPTIONS= gdbm .include "../../mk/bsd.options.mk" @@ -52,7 +52,7 @@ CONFIGURE_ARGS+= --without-rlm_sql_postgresql ### Use MySQL for storing user details ### .if !empty(PKG_OPTIONS:Mmysql) -. include "../../mk/mysql.buildlink3.mk" +. include "../../mk/mysql.buildlink3.mk" CONFIGURE_ARGS+= --with-rlm_sql_mysql PLIST_SRC+= ${PKGDIR}/PLIST.mysql .else @@ -74,3 +74,17 @@ CONFIGURE_ARGS+= --with-snmp .else CONFIGURE_ARGS+= --without-snmp .endif + +### +### Use kerberos 5 +### +.if !empty(PKG_OPTIONS:Mkerberos) +. include "../../mk/krb5.buildlink3.mk" +CONFIGURE_ARGS+= --with-rlm_krb5 +. if defined(KRB5_TYPE) && ${KRB5_TYPE} == "heimdal" +CONFIGURE_ARGS+= --enable-heimdal-krb5 +. endif +PLIST_SRC+= ${PKGDIR}/PLIST.kerberos +.else +CONFIGURE_ARGS+= --without-rlm_krb5 +.endif |