mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-19 03:52:17 +00:00
23a445abcc
Submitted by: eikemeier@fillmore-labs.com Approved by: kris
96 lines
3.1 KiB
Makefile
96 lines
3.1 KiB
Makefile
# New ports collection makefile for: freeradius
|
|
# Date created: May 9 2002
|
|
# Whom: Brian Somers <brian@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= freeradius
|
|
PORTVERSION= 0.8.1
|
|
PORTREVISION= 1
|
|
CATEGORIES= net
|
|
MASTER_SITES= ftp://ftp.freeradius.org/pub/radius/ \
|
|
ftp://ftp.Awfulhak.org/pub/radius/
|
|
|
|
MAINTAINER= brian@FreeBSD.org
|
|
COMMENT= A free RADIUS server implementation
|
|
|
|
LIB_DEPENDS= gdbm.3:${PORTSDIR}/databases/gdbm \
|
|
ltdl.4:${PORTSDIR}/devel/libltdl
|
|
|
|
LOGDIR?= /var/log
|
|
|
|
CONFLICTS= gnu-radius-1.* openradius-0.* radiusd-cistron-1.*
|
|
USE_GMAKE= yes
|
|
USE_LIBTOOL= yes
|
|
CONFIGURE_ARGS= --prefix=${PREFIX} --quiet --with-logdir=${LOGDIR} \
|
|
--localstatedir=/var \
|
|
--disable-ltdl-install \
|
|
--with-ltdl-include=${LOCALBASE}/include \
|
|
--with-ltdl-lib=${LOCALBASE}/lib
|
|
|
|
.if defined(WITH_OPENLDAP_VER)
|
|
.if ${WITH_OPENLDAP_VER} == 20 || ${WITH_OPENLDAP_VER} == 21
|
|
LIB_DEPENDS+= ldap.2:${PORTSDIR}/net/openldap${WITH_OPENLDAP_VER}
|
|
LIB_DEPENDS+= lber.2:${PORTSDIR}/net/openldap${WITH_OPENLDAP_VER}
|
|
.else
|
|
BROKEN= "WITH_OPENLDAP_VER must be 20 or 21"
|
|
.endif
|
|
PLIST_SUB+= LDAP=""
|
|
.else
|
|
CONFIGURE_ARGS+=--without-rlm_ldap
|
|
PLIST_SUB+= LDAP="@comment "
|
|
.endif
|
|
|
|
.if defined(WITH_MYSQL_VER)
|
|
.if ${WITH_MYSQL_VER} == 41
|
|
LIB_DEPENDS+= mysqlclient.14:${PORTSDIR}/databases/mysql41-client
|
|
.elif ${WITH_MYSQL_VER} == 40
|
|
LIB_DEPENDS+= mysqlclient.12:${PORTSDIR}/databases/mysql40-client
|
|
.elif ${WITH_MYSQL_VER} == 3
|
|
LIB_DEPENDS+= mysqlclient.10:${PORTSDIR}/databases/mysql323-client
|
|
.else
|
|
BROKEN= "WITH_MYSQL_VER must be 3, 40 or 41"
|
|
.endif
|
|
PLIST_SUB+= MYSQL=""
|
|
.else
|
|
CONFIGURE_ARGS+=--without-rlm_sql_mysql
|
|
PLIST_SUB+= MYSQL="@comment "
|
|
.endif
|
|
|
|
# rlm_x99_token seems broken
|
|
CONFIGURE_ARGS+=--without-rlm_x99_token
|
|
PLIST_SUB+= TOKEN="@comment "
|
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
MAN1= radclient.1 radlast.1 radtest.1 raduse.1 radwho.1 radzap.1
|
|
MAN5= acct_users.5 clients.5 dictionary.5 naslist.5 radiusd.conf.5 \
|
|
users.5
|
|
MAN8= builddbm.8 radiusd.8 radrelay.8 radwatch.8
|
|
|
|
RADDB= acct_users attrs clients clients.conf dictionary \
|
|
dictionary.acc dictionary.alcatel dictionary.alteon \
|
|
dictionary.altiga dictionary.aptis dictionary.ascend \
|
|
dictionary.bay dictionary.cisco dictionary.cisco.bbsm \
|
|
dictionary.cisco.vpn3000 dictionary.cisco.vpn5000 \
|
|
dictionary.colubris dictionary.columbia_university \
|
|
dictionary.compat dictionary.erx dictionary.foundry \
|
|
dictionary.freeradius dictionary.juniper \
|
|
dictionary.livingston dictionary.microsoft \
|
|
dictionary.nomadix dictionary.quintum dictionary.redback \
|
|
dictionary.shasta dictionary.shiva dictionary.tunnel \
|
|
dictionary.usr dictionary.versanet hints huntgroups \
|
|
ldap.attrmap mssql.conf naslist naspasswd oraclesql.conf \
|
|
postgresql.conf preproxy_users proxy.conf radiusd.conf \
|
|
realms snmp.conf sql.conf users x99.conf x99passwd.sample
|
|
|
|
post-install:
|
|
@${MKDIR} ${PREFIX}/etc/raddb
|
|
.for db in ${RADDB}
|
|
${INSTALL_DATA} ${WRKSRC}/raddb/${db} ${PREFIX}/etc/raddb/${db}.sample
|
|
.endfor
|
|
${INSTALL_SCRIPT} ${FILESDIR}/radiusd.sh ${PREFIX}/etc/rc.d/radiusd.sh
|
|
|
|
.include <bsd.port.mk>
|