2002-05-10 20:59:23 +02:00
|
|
|
# New ports collection makefile for: freeradius
|
|
|
|
# Date created: May 9 2002
|
|
|
|
# Whom: Brian Somers <brian@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= freeradius
|
2007-01-15 15:55:38 +01:00
|
|
|
PORTVERSION= 1.1.4
|
2007-01-18 20:13:29 +01:00
|
|
|
PORTREVISION= 1
|
2002-05-10 20:59:23 +02:00
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= ftp://ftp.freeradius.org/pub/radius/ \
|
2006-11-01 11:21:18 +01:00
|
|
|
ftp://ftp.ntua.gr/pub/net/radius/freeradius/ \
|
|
|
|
ftp://ftp.uk.freeradius.org/pub/radius/ \
|
|
|
|
ftp://ftp.freeradius.org/pub/radius/old/ \
|
2006-02-05 20:34:54 +01:00
|
|
|
http://freeradius.portal-to-web.de/
|
2002-05-10 20:59:23 +02:00
|
|
|
|
2006-11-01 11:21:18 +01:00
|
|
|
MAINTAINER= david@wood2.org.uk
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= A free RADIUS server implementation
|
2002-05-10 20:59:23 +02:00
|
|
|
|
2004-06-04 19:29:38 +02:00
|
|
|
LIB_DEPENDS= gdbm.3:${PORTSDIR}/databases/gdbm
|
2002-05-10 20:59:23 +02:00
|
|
|
|
2003-04-21 15:35:21 +02:00
|
|
|
LOGDIR?= /var/log
|
|
|
|
|
2003-10-14 17:47:28 +02:00
|
|
|
CONFLICTS= gnu-radius-1.* openradius-0.* radiusd-cistron-1.*
|
2004-06-04 19:29:38 +02:00
|
|
|
|
2006-02-14 22:04:28 +01:00
|
|
|
USE_RC_SUBR= radiusd.sh
|
2006-03-28 22:30:51 +02:00
|
|
|
USE_AUTOTOOLS= libltdl:15 libtool:15
|
2002-05-15 06:07:59 +02:00
|
|
|
USE_GMAKE= yes
|
2004-08-29 04:18:42 +02:00
|
|
|
USE_OPENSSL= yes
|
2006-03-28 22:30:51 +02:00
|
|
|
MAKE_ARGS+= LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
|
2007-01-15 15:55:38 +01:00
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
2004-08-29 04:18:42 +02:00
|
|
|
|
2003-12-09 10:43:22 +01:00
|
|
|
PLIST_SUB= PORTVERSION=${PORTVERSION}
|
2003-06-19 03:22:20 +02:00
|
|
|
|
2005-04-15 19:31:55 +02:00
|
|
|
OPTIONS= KERBEROS "With Kerberos support" off \
|
2006-02-06 15:24:47 +01:00
|
|
|
HEIMDAL "With Heimdal Kerberos support" off \
|
2005-04-15 19:31:55 +02:00
|
|
|
LDAP "With LDAP user database" off \
|
2004-08-29 04:18:42 +02:00
|
|
|
MYSQL "With MySQL user database" off \
|
|
|
|
PGSQL "With PostgreSQL use database" off \
|
|
|
|
SNMP "With SNMP support" off \
|
2007-01-15 15:55:38 +01:00
|
|
|
EDIR "With Novell eDirectory support" off \
|
|
|
|
NOPERL "Do not require perl (use only if necessary)" off \
|
2004-08-29 04:18:42 +02:00
|
|
|
EXPERIMENTAL "Build experimental modules" off
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-06-05 23:14:20 +02:00
|
|
|
CONFIGURE_ARGS= --prefix=${PREFIX} --quiet --with-logdir=${LOGDIR} \
|
|
|
|
--localstatedir=/var \
|
2006-11-01 11:21:18 +01:00
|
|
|
--with-system-libtool \
|
2006-06-05 23:14:20 +02:00
|
|
|
--disable-ltdl-install \
|
2006-11-01 11:21:18 +01:00
|
|
|
--with-docdir=${DOCSDIR} \
|
2007-01-15 15:55:38 +01:00
|
|
|
--mandir=${PREFIX}/man \
|
2006-06-05 23:14:20 +02:00
|
|
|
--with-large-files --without-rlm_sql_unixodbc \
|
|
|
|
--without-rlm_sql_oracle --without-rlm_sql_iodbc \
|
|
|
|
--without-rlm_sql_db2 \
|
|
|
|
--with-openssl-includes=${OPENSSLINC} \
|
|
|
|
--with-openssl-libraries=${OPENSSLLIB}
|
|
|
|
|
2006-06-12 16:47:16 +02:00
|
|
|
.if ${OSVERSION} < 500000 && ${OPENSSLBASE} == "/usr"
|
|
|
|
PLIST_SUB+= 4SSL="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= 4SSL=""
|
|
|
|
.endif
|
|
|
|
|
2006-02-14 22:04:28 +01:00
|
|
|
.if ${ARCH} == amd64
|
2006-03-28 22:30:51 +02:00
|
|
|
CONFIGURE_ARGS+= --with-pic
|
2006-02-14 22:04:28 +01:00
|
|
|
.endif
|
|
|
|
|
2006-02-06 15:24:47 +01:00
|
|
|
.if defined(WITH_HEIMDAL) && !defined(WITH_KERBEROS)
|
|
|
|
WITH_KERBEROS= yes
|
|
|
|
.endif
|
|
|
|
|
2005-04-15 19:31:55 +02:00
|
|
|
.ifdef(WITH_KERBEROS)
|
2006-02-06 15:24:47 +01:00
|
|
|
.ifdef(WITH_HEIMDAL)
|
2006-10-05 18:20:13 +02:00
|
|
|
LIB_DEPENDS+= krb5.21:${PORTSDIR}/security/heimdal
|
2006-02-06 15:24:47 +01:00
|
|
|
CONFIGURE_ARGS+=--enable-heimdal-krb5
|
|
|
|
.else
|
2005-04-15 19:31:55 +02:00
|
|
|
LIB_DEPENDS+= krb5.3:${PORTSDIR}/security/krb5
|
2006-02-06 15:24:47 +01:00
|
|
|
.endif
|
2005-04-15 19:31:55 +02:00
|
|
|
CONFIGURE_ARGS+=--with-rlm-krb5-lib-dir=${LOCALBASE}/lib
|
|
|
|
CONFIGURE_ARGS+=--with-rlm-krb5-include-dir=${LOCALBASE}/include
|
|
|
|
PLIST_SUB+= KRB5=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-rlm_krb5
|
|
|
|
PLIST_SUB+= KRB5="@comment "
|
|
|
|
.endif
|
|
|
|
|
2007-01-15 15:55:38 +01:00
|
|
|
.if defined(WITH_EDIR) && !defined(WITH_LDAP)
|
|
|
|
WITH_LDAP= yes
|
|
|
|
.endif
|
|
|
|
|
2004-08-29 04:18:42 +02:00
|
|
|
.ifdef(WITH_LDAP)
|
2003-11-20 15:57:41 +01:00
|
|
|
USE_OPENLDAP= YES
|
2003-06-19 03:22:20 +02:00
|
|
|
PLIST_SUB+= LDAP=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-rlm_ldap
|
|
|
|
PLIST_SUB+= LDAP="@comment "
|
|
|
|
.endif
|
|
|
|
|
2007-01-15 15:55:38 +01:00
|
|
|
.ifdef(WITH_EDIR)
|
|
|
|
CONFIGURE_ARGS+=--with-edir
|
|
|
|
.endif
|
|
|
|
|
2004-08-29 04:18:42 +02:00
|
|
|
.ifdef(WITH_MYSQL)
|
2003-11-20 15:57:41 +01:00
|
|
|
USE_MYSQL= YES
|
2003-06-19 03:22:20 +02:00
|
|
|
PLIST_SUB+= MYSQL=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-rlm_sql_mysql
|
|
|
|
PLIST_SUB+= MYSQL="@comment "
|
|
|
|
.endif
|
|
|
|
|
2004-08-29 04:18:42 +02:00
|
|
|
.ifdef(WITH_PGSQL)
|
2005-01-31 01:35:55 +01:00
|
|
|
USE_PGSQL= YES
|
2003-12-09 11:19:25 +01:00
|
|
|
PLIST_SUB+= PGSQL=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-rlm_sql_postgresql
|
|
|
|
PLIST_SUB+= PGSQL="@comment "
|
|
|
|
.endif
|
|
|
|
|
2004-08-29 04:18:42 +02:00
|
|
|
.ifdef(WITH_SNMP)
|
|
|
|
LIB_DEPENDS+= snmp.4:${PORTSDIR}/net-mgmt/net-snmp4
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-snmp
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.ifdef(WITH_EXPERIMENTAL)
|
|
|
|
USE_PYTHON= yes
|
|
|
|
# hack to get the dependency
|
|
|
|
.include "${PORTSDIR}/Mk/bsd.python.mk"
|
|
|
|
CONFIGURE_ARGS+=--with-experimental-modules
|
|
|
|
PLIST_SUB+= EXPM=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= EXPM="@comment "
|
|
|
|
.endif
|
|
|
|
|
2007-01-15 15:55:38 +01:00
|
|
|
.ifndef(WITH_NOPERL)
|
|
|
|
USE_PERL5= yes
|
2003-12-09 11:19:25 +01:00
|
|
|
.endif
|
|
|
|
|
2006-02-04 20:52:39 +01:00
|
|
|
# rlm_perl does not build on 4.x
|
2007-01-15 15:55:38 +01:00
|
|
|
.if ${OSVERSION} < 500000 || defined(WITH_NOPERL)
|
|
|
|
CONFIGURE_ARGS+=--without-rlm_perl
|
2006-02-04 20:52:39 +01:00
|
|
|
PLIST_SUB+= RLMPERL="@comment "
|
|
|
|
.else
|
2007-01-15 15:55:38 +01:00
|
|
|
CONFIGURE_ARGS+=--with-rlm_perl
|
2006-02-08 14:58:50 +01:00
|
|
|
PLIST_SUB+= RLMPERL=""
|
2006-02-04 20:52:39 +01:00
|
|
|
.endif
|
|
|
|
|
2007-01-15 15:55:38 +01:00
|
|
|
.if defined(NOPORTDOCS)
|
|
|
|
MAKE_ENV+= NOPORTDOCS=yes
|
|
|
|
.endif
|
|
|
|
|
2006-08-15 02:56:24 +02:00
|
|
|
USE_LDCONFIG= yes
|
2002-05-10 20:59:23 +02:00
|
|
|
|
2004-08-29 04:18:42 +02:00
|
|
|
MAN1= radclient.1 radeapclient.1 radlast.1 radtest.1 radwho.1 \
|
|
|
|
radzap.1
|
2005-06-18 01:33:18 +02:00
|
|
|
MAN5= acct_users.5 clients.5 clients.conf.5 dictionary.5 naslist.5 \
|
|
|
|
radiusd.conf.5 rlm_acct_unique.5 rlm_always.5 \
|
|
|
|
rlm_attr_filter.5 rlm_attr_rewrite.5 rlm_chap.5 rlm_counter.5 \
|
|
|
|
rlm_detail.5 rlm_expr.5 rlm_files.5 rlm_mschap.5 rlm_pap.5 \
|
2006-02-01 19:38:14 +01:00
|
|
|
rlm_passwd.5 rlm_realm.5 rlm_sql.5 rlm_sql_log.5 rlm_unix.5 users.5
|
|
|
|
MAN8= radiusd.8 radrelay.8 radsqlrelay.8 radwatch.8 rlm_ippool_tool.8
|
|
|
|
|
|
|
|
DICTS= dictionary.3com dictionary.3gpp dictionary.3gpp2 dictionary.acc \
|
|
|
|
dictionary.airespace dictionary.alcatel dictionary.alteon \
|
2007-01-15 15:55:38 +01:00
|
|
|
dictionary.altiga dictionary.alvarion dictionary.aptis \
|
2006-11-01 11:21:18 +01:00
|
|
|
dictionary.aruba dictionary.ascend dictionary.avaya \
|
|
|
|
dictionary.bay dictionary.bintec dictionary.bristol \
|
2006-02-01 19:38:14 +01:00
|
|
|
dictionary.cablelabs dictionary.cabletron dictionary.cisco \
|
|
|
|
dictionary.cisco.bbsm dictionary.cisco.vpn3000 dictionary.cisco.vpn5000 \
|
|
|
|
dictionary.colubris dictionary.columbia_university dictionary.compat \
|
2007-01-15 15:55:38 +01:00
|
|
|
dictionary.cosine dictionary.digium dictionary.epygi \
|
2006-02-01 19:38:14 +01:00
|
|
|
dictionary.ericsson dictionary.erx dictionary.extreme \
|
|
|
|
dictionary.fortinet dictionary.foundry dictionary.freeradius \
|
|
|
|
dictionary.freeradius.internal dictionary.gandalf dictionary.garderos \
|
2006-05-29 22:42:04 +02:00
|
|
|
dictionary.gemtek dictionary.hp dictionary.ipunplugged dictionary.issanni \
|
2006-02-01 19:38:14 +01:00
|
|
|
dictionary.itk dictionary.juniper dictionary.karlnet \
|
|
|
|
dictionary.livingston dictionary.localweb dictionary.lucent \
|
|
|
|
dictionary.merit dictionary.microsoft dictionary.mikrotik \
|
|
|
|
dictionary.motorola dictionary.navini dictionary.netscreen \
|
2006-05-29 22:42:04 +02:00
|
|
|
dictionary.nokia dictionary.nomadix dictionary.nortel dictionary.ntua \
|
2007-01-15 15:55:38 +01:00
|
|
|
dictionary.packeteer dictionary.patton \
|
|
|
|
dictionary.propel dictionary.quintum \
|
|
|
|
dictionary.redback dictionary.redcreek \
|
2006-11-01 11:21:18 +01:00
|
|
|
dictionary.rfc2865 dictionary.rfc2866 dictionary.rfc2867 \
|
|
|
|
dictionary.rfc2868 dictionary.rfc2869 dictionary.rfc3162 \
|
2007-01-15 15:55:38 +01:00
|
|
|
dictionary.rfc3576 dictionary.rfc3580 dictionary.rfc4590 \
|
|
|
|
dictionary.riverstone dictionary.roaringpenguin \
|
|
|
|
dictionary.schulzrinne-sipping dictionary.shasta dictionary.shiva \
|
|
|
|
dictionary.sofaware dictionary.sonicwall \
|
2006-11-01 11:21:18 +01:00
|
|
|
dictionary.springtide dictionary.starent dictionary.t_systems_nova \
|
|
|
|
dictionary.telebit dictionary.trapeze dictionary.tropos \
|
|
|
|
dictionary.unix dictionary.usr dictionary.valemount \
|
|
|
|
dictionary.versanet dictionary.walabi dictionary.waverider \
|
|
|
|
dictionary.wispr dictionary.xedia dictionary.xylan dictionary.zyxel
|
2006-02-01 19:38:14 +01:00
|
|
|
|
2004-08-29 04:18:42 +02:00
|
|
|
post-patch:
|
2005-10-05 03:20:29 +02:00
|
|
|
@${RM} ${WRKSRC}/doc/Makefile.orig
|
2007-01-18 20:13:29 +01:00
|
|
|
# rlm_sql_firebird in 1.1.4 makes configure fail with experimental modules enabled,
|
|
|
|
# even though the port implicitly issues --without-rlm_sql_firebird. Delete the module
|
|
|
|
# until it is fixed
|
|
|
|
@${RM} -r ${WRKSRC}/src/modules/rlm_sql/drivers/rlm_sql_firebird
|
2006-03-28 22:30:51 +02:00
|
|
|
.if ${OSVERSION} < 500000
|
|
|
|
@${REINPLACE_CMD} -e 's/-DNO_OPENSSL//' ${WRKSRC}/configure
|
|
|
|
.endif
|
2002-05-10 20:59:23 +02:00
|
|
|
|
|
|
|
post-install:
|
2005-04-15 19:31:55 +02:00
|
|
|
@${MKDIR} ${PREFIX}/etc/raddb ${DATADIR} ${EXAMPLESDIR}
|
2003-10-29 00:52:04 +01:00
|
|
|
.for dict in ${DICTS}
|
2003-12-09 11:19:25 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/share/${dict} ${DATADIR}/${dict}
|
2002-05-10 20:59:23 +02:00
|
|
|
.endfor
|
|
|
|
|
2004-08-29 04:18:42 +02:00
|
|
|
.include <bsd.port.post.mk>
|