2008-09-21 11:39:14 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.19 2008/09/21 15:39:14 rui Exp $
|
2006-04-16 10:37:08 -04:00
|
|
|
|
|
|
|
SHARED_ONLY= Yes
|
|
|
|
|
2007-09-15 18:36:51 -04:00
|
|
|
COMMENT-main= RADIUS server implementation
|
|
|
|
COMMENT-iodbc= freeradius iodbc rlm addon
|
|
|
|
COMMENT-mysql= freeradius mysql rlm addon
|
|
|
|
COMMENT-pgsql= freeradius pgsql rlm addon
|
|
|
|
COMMENT-ldap= freeradius ldap rlm addon
|
2006-04-16 10:37:08 -04:00
|
|
|
|
2008-09-21 11:39:14 -04:00
|
|
|
V= 2.1.0
|
2008-01-21 17:21:24 -05:00
|
|
|
DISTNAME= freeradius-server-$V
|
2008-07-28 17:51:10 -04:00
|
|
|
PKGNAME-main= freeradius-$V
|
2006-04-16 10:37:08 -04:00
|
|
|
PKGNAME-iodbc= freeradius-iodbc-$V
|
|
|
|
PKGNAME-mysql= freeradius-mysql-$V
|
|
|
|
PKGNAME-pgsql= freeradius-pgsql-$V
|
2007-09-16 18:11:31 -04:00
|
|
|
PKGNAME-ldap= freeradius-ldap-$V
|
2008-09-21 11:39:14 -04:00
|
|
|
SHARED_LIBS= freeradius-eap 2.0 \
|
|
|
|
freeradius-radius 2.0
|
2006-04-16 10:37:08 -04:00
|
|
|
|
|
|
|
CATEGORIES= net
|
2006-07-11 07:30:06 -04:00
|
|
|
MASTER_SITES= ftp://ftp.freeradius.org/pub/radius/ \
|
|
|
|
ftp://ftp.freeradius.org/pub/radius/old/
|
2008-01-21 17:21:24 -05:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
2006-04-16 10:37:08 -04:00
|
|
|
|
|
|
|
HOMEPAGE= http://www.freeradius.org/
|
|
|
|
|
2008-01-21 17:21:24 -05:00
|
|
|
MAINTAINER= Rui Reis <rui@openbsd.org>
|
2006-04-16 10:37:08 -04:00
|
|
|
|
2008-02-18 10:46:43 -05:00
|
|
|
# GPLv2 - LGPLv2
|
2006-04-16 10:37:08 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
CONFIGURE_STYLE=gnu dest
|
|
|
|
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
|
|
|
|
--localstatedir='$${DESTDIR}/var' \
|
|
|
|
--with-large-files \
|
|
|
|
--with-snmp \
|
|
|
|
--with-pic \
|
|
|
|
--without-rlm-perl \
|
2008-01-21 17:21:24 -05:00
|
|
|
--without-rlm-python \
|
|
|
|
--without-rlm_eap_ikev2 \
|
2006-04-16 10:37:08 -04:00
|
|
|
--without-rlm_pam \
|
|
|
|
--without-rlm_sql_oracle \
|
|
|
|
--without-rlm_sql_db2 \
|
|
|
|
--without-rlm_sql_unixodbc \
|
|
|
|
--disable-ltdl-install \
|
|
|
|
--with-ltdl-lib=${LOCALBASE}/lib \
|
|
|
|
--with-ltdl-include=${LOCALBASE}/include \
|
|
|
|
--with-rlm-krb5-include-dir=/usr/include/kerberosV
|
|
|
|
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2006-11-25 14:34:54 -05:00
|
|
|
MULTI_PACKAGES= -main
|
2006-04-16 10:37:08 -04:00
|
|
|
|
|
|
|
PSEUDO_FLAVORS= no_ldap no_mysql no_pgsql no_iodbc
|
|
|
|
FLAVOR?=
|
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
USE_LIBTOOL= Yes
|
|
|
|
|
|
|
|
BUILD_DEPENDS= ::net/net-snmp
|
2006-08-03 19:15:57 -04:00
|
|
|
LIB_DEPENDS= gdbm.>=3::databases/gdbm \
|
|
|
|
ltdl.>=4::devel/libtool,-ltdl
|
2006-04-16 10:37:08 -04:00
|
|
|
|
2007-05-29 16:21:26 -04:00
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
2006-04-16 10:37:08 -04:00
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mno_iodbc}
|
|
|
|
CONFIGURE_ARGS+=--without-rlm_sql_iodbc
|
|
|
|
.else
|
|
|
|
MULTI_PACKAGES+=-iodbc
|
|
|
|
BUILD_DEPENDS+= ::databases/iodbc
|
|
|
|
CONFIGURE_ARGS+=--with-rlm_sql_iodbc \
|
|
|
|
--with-iodbc-include-dir='${LOCALBASE}/include' \
|
|
|
|
--with-iodbc-lib-dir='${LOCALBASE}/lib'
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mno_ldap}
|
|
|
|
CONFIGURE_ARGS+=--without-rlm_ldap
|
|
|
|
.else
|
|
|
|
MULTI_PACKAGES+=-ldap
|
|
|
|
BUILD_DEPENDS+= :openldap-client-*:databases/openldap
|
|
|
|
CONFIGURE_ARGS+=--with-rlm_ldap
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mno_mysql}
|
|
|
|
CONFIGURE_ARGS+=--without-rlm_sql_mysql
|
|
|
|
.else
|
|
|
|
MULTI_PACKAGES+=-mysql
|
|
|
|
BUILD_DEPENDS+= :mysql-client-*:databases/mysql
|
|
|
|
CONFIGURE_ARGS+=--with-rlm_sql_mysql
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mno_pgsql}
|
|
|
|
CONFIGURE_ARGS+=--without-rlm_sql_postgresql
|
|
|
|
.else
|
|
|
|
MULTI_PACKAGES+=-pgsql
|
|
|
|
BUILD_DEPENDS+= :postgresql-client-*:databases/postgresql
|
|
|
|
CONFIGURE_ARGS+=--with-rlm_sql_postgresql \
|
|
|
|
--with-rlm-sql-postgresql-lib-dir=${LOCALBASE}/lib/ \
|
|
|
|
--with-rlm-sql-postgresql-include-dir=${LOCALBASE}/include/postgresql
|
|
|
|
.endif
|
|
|
|
|
2006-11-25 14:34:54 -05:00
|
|
|
LIB_DEPENDS-iodbc= iodbc.>=2::databases/iodbc
|
|
|
|
RUN_DEPENDS-iodbc= ::net/freeradius
|
|
|
|
LIB_DEPENDS-ldap= lber.>=8,ldap_r.>=8:openldap-client-*:databases/openldap \
|
2008-07-28 17:51:10 -04:00
|
|
|
freeradius-radius.>=1::net/freeradius
|
2008-01-25 13:59:19 -05:00
|
|
|
WANTLIB-ldap= crypto sasl2 ssl asn1 com_err gssapi krb5
|
2006-11-25 14:34:54 -05:00
|
|
|
LIB_DEPENDS-mysql= mysqlclient_r.>=16:mysql-client-*:databases/mysql
|
|
|
|
RUN_DEPENDS-mysql= ::net/freeradius
|
|
|
|
WANTLIB-mysql= crypto m pthread ssl z
|
|
|
|
LIB_DEPENDS-pgsql= pq.>=2:postgresql-client-*:databases/postgresql
|
|
|
|
RUN_DEPENDS-pgsql= ::net/freeradius
|
2008-01-21 17:21:24 -05:00
|
|
|
WANTLIB-main= c com_err crypto krb5 pcap pthread ssl
|
2006-04-16 10:37:08 -04:00
|
|
|
|
|
|
|
post-configure:
|
|
|
|
@perl -pi -e 's,/etc/raddb,${SYSCONFDIR}/raddb,g' ${WRKSRC}/man/*/*
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
.for f in bin/radlast bin/radtest sbin/checkrad sbin/radwatch \
|
2008-05-05 15:32:02 -04:00
|
|
|
share/examples/freeradius/dictionary share/examples/freeradius/radiusd.conf
|
2006-04-16 10:37:08 -04:00
|
|
|
@perl -pi -e 's,\$${DESTDIR},,g' ${PREFIX}/$f
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|