2010-05-29 13:47:37 +02:00
|
|
|
# $NetBSD: Makefile,v 1.12 2010/05/29 11:47:37 obache Exp $
|
2008-05-15 21:43:47 +02:00
|
|
|
|
|
|
|
DISTNAME= freeradius-server-${RADVER}
|
|
|
|
PKGNAME= ${DISTNAME:S/-server//}
|
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= ftp://ftp.freeradius.org/pub/freeradius/
|
|
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
|
2009-07-17 20:00:13 +02:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2008-05-15 21:43:47 +02:00
|
|
|
HOMEPAGE= http://www.freeradius.org/
|
|
|
|
COMMENT= Free RADIUS server implementation
|
2010-05-23 19:28:44 +02:00
|
|
|
LICENSE= gnu-gpl-v2
|
2008-05-15 21:43:47 +02:00
|
|
|
|
|
|
|
CONFLICTS+= radiusd-cistron-[0-9]*
|
2008-12-19 23:49:18 +01:00
|
|
|
CONFLICTS+= freeradius<2.0
|
2008-05-15 21:43:47 +02:00
|
|
|
USE_TOOLS+= gmake perl:run
|
2010-05-23 19:28:44 +02:00
|
|
|
USE_LIBTOOL= yes
|
|
|
|
USE_OLD_DES_API= yes
|
|
|
|
MAKE_JOBS_SAFE= no
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
2008-05-15 21:43:47 +02:00
|
|
|
|
|
|
|
BUILD_DEFS= VARBASE
|
Update to 2.1.1
Patches mainly from adam@ with some changes by me
05 September 2008 - Version 2.1.0 has been released.
The focus of this release is features.
Feature Improvements
* Clients may now be defined dynamically, based on IP address. See raddb/sites-available/dynamic-clients.
* SNMP support is now available through an experimental Perl script. See scripts/snmp-proxy/README
* SNMP statistics are also available through Status-Server packets. See raddb/sites-available/status
* Added more Microsoft attributes from bug #568.
* The linelog module has more functionality and flexibility. See raddb/modules/linelog.
* The debugging output has been sanitized. It should be much more readable.
* Debug logs can now be turned on/off while the server is running, for a user, group, realm, etc. See the log section of raddb/radiusd.conf.
* Added support for WiMAX Forum attributes. The dynamic keys are not yet calculated. See share/dictionary.wimax
* Added session resumption for PEAP and TTLS. See raddb/eap.conf, and the cache sub-section.
* Added radmin command-line tool for administering a running server. See man radmin and raddb/sites-available/control-socket.
Bug Fixes
* Double escaping of '\\' in the users (and some other) files has been fixed. If you have '\\' in the users file, your configuration will need to be checked, and fixed!
* Parse security section of radiusd.conf. This was accidentally deleted in 2.0.5. Closes bug #566.
* Bind to interface before IP, which allows DHCP sockets to listen on "*" for multiple interfaces.
* Fix handling of giaddr in DHCP responses.
* Corrected parsing of status_check in home_server so that it works.
* Fix hints so that "Puser" works again.
* Removed length restrictions on attribute names in the dictionaries.
* Update socket code to avoid C compiler optimizations.
25 September 2008 - Version 2.1.1 has been released.
The focus of this release is stability.
Feature Improvements
* Many more options and features are available via radmin. See man radmin and raddb/sites-available/control-socket.
* Many more commands available via the control socket. Connect via radmin, and type help for more information.
* Added dictionary.networkphysics and dictionary.lancom.
* Calculate WiMAX MIP keys, and added sample WiMAX SQL tables.
Bug Fixes
* Fixed bug that made radmin not work.
* Fixed Suse && Debian package scripts.
* Fixed issues with dynamic clients.
* Fixed configure checks for -lreadline
* rlm_sqlippool no longer needs to be linked to rlm_sql.
* Add statistics for detail file listeners. This closes bug #593.
* Fixed printing of some WiMAX attributes.
* Fixed double free on exit() in rlm_attr_filter.
* Fixed build issues on Solaris.
* Fixed fast session resumption for EAP-TLS.
2008-10-12 15:57:27 +02:00
|
|
|
FILES_SUBST+= RADIUS_USER=${RADIUS_USER}
|
|
|
|
FILES_SUBST+= RADIUS_GROUP=${RADIUS_GROUP}
|
2008-05-15 21:43:47 +02:00
|
|
|
PLIST_SUBST+= RADVER=${RADVER}
|
|
|
|
MESSAGE_SRC+= ${WRKDIR}/.MESSAGE_SRC
|
|
|
|
MESSAGE_SUBST+= CHOWN=${CHOWN:Q} CHMOD=${CHMOD:Q} VARBASE=${VARBASE}
|
Update to 2.1.1
Patches mainly from adam@ with some changes by me
05 September 2008 - Version 2.1.0 has been released.
The focus of this release is features.
Feature Improvements
* Clients may now be defined dynamically, based on IP address. See raddb/sites-available/dynamic-clients.
* SNMP support is now available through an experimental Perl script. See scripts/snmp-proxy/README
* SNMP statistics are also available through Status-Server packets. See raddb/sites-available/status
* Added more Microsoft attributes from bug #568.
* The linelog module has more functionality and flexibility. See raddb/modules/linelog.
* The debugging output has been sanitized. It should be much more readable.
* Debug logs can now be turned on/off while the server is running, for a user, group, realm, etc. See the log section of raddb/radiusd.conf.
* Added support for WiMAX Forum attributes. The dynamic keys are not yet calculated. See share/dictionary.wimax
* Added session resumption for PEAP and TTLS. See raddb/eap.conf, and the cache sub-section.
* Added radmin command-line tool for administering a running server. See man radmin and raddb/sites-available/control-socket.
Bug Fixes
* Double escaping of '\\' in the users (and some other) files has been fixed. If you have '\\' in the users file, your configuration will need to be checked, and fixed!
* Parse security section of radiusd.conf. This was accidentally deleted in 2.0.5. Closes bug #566.
* Bind to interface before IP, which allows DHCP sockets to listen on "*" for multiple interfaces.
* Fix handling of giaddr in DHCP responses.
* Corrected parsing of status_check in home_server so that it works.
* Fix hints so that "Puser" works again.
* Removed length restrictions on attribute names in the dictionaries.
* Update socket code to avoid C compiler optimizations.
25 September 2008 - Version 2.1.1 has been released.
The focus of this release is stability.
Feature Improvements
* Many more options and features are available via radmin. See man radmin and raddb/sites-available/control-socket.
* Many more commands available via the control socket. Connect via radmin, and type help for more information.
* Added dictionary.networkphysics and dictionary.lancom.
* Calculate WiMAX MIP keys, and added sample WiMAX SQL tables.
Bug Fixes
* Fixed bug that made radmin not work.
* Fixed Suse && Debian package scripts.
* Fixed issues with dynamic clients.
* Fixed configure checks for -lreadline
* rlm_sqlippool no longer needs to be linked to rlm_sql.
* Add statistics for detail file listeners. This closes bug #593.
* Fixed printing of some WiMAX attributes.
* Fixed double free on exit() in rlm_attr_filter.
* Fixed build issues on Solaris.
* Fixed fast session resumption for EAP-TLS.
2008-10-12 15:57:27 +02:00
|
|
|
MESSAGE_SUBST+= RADIUS_USER=${RADIUS_USER} XARGS=${XARGS:Q}
|
|
|
|
MESSAGE_SUBST+= RADIUS_GROUP=${RADIUS_GROUP} FIND=${FIND:Q}
|
2008-05-15 21:43:47 +02:00
|
|
|
|
|
|
|
PKG_SYSCONFSUBDIR= raddb
|
|
|
|
RCD_SCRIPTS= radiusd
|
|
|
|
RADIUS_USER?= radius
|
|
|
|
RADIUS_GROUP?= radius
|
|
|
|
PKG_GROUPS= ${RADIUS_USER}
|
|
|
|
PKG_USERS= ${RADIUS_USER}:${RADIUS_GROUP}
|
|
|
|
PKG_GROUPS_VARS+= RADIUS_GROUP
|
|
|
|
PKG_USERS_VARS+= RADIUS_USER
|
|
|
|
OWN_DIRS_PERMS+= ${VARBASE}/run/radiusd \
|
|
|
|
${RADIUS_USER} ${RADIUS_GROUP} 0750
|
|
|
|
OWN_DIRS_PERMS+= ${VARBASE}/log/radiusd \
|
|
|
|
${RADIUS_USER} ${RADIUS_GROUP} 0750
|
|
|
|
OWN_DIRS_PERMS+= ${VARBASE}/log/radiusd/radacct \
|
|
|
|
${RADIUS_USER} ${RADIUS_GROUP} 0750
|
|
|
|
|
2010-05-23 19:28:44 +02:00
|
|
|
RADVER= 2.1.8
|
|
|
|
EGDIR= ${DESTDIR}${PREFIX}/share/examples/freeradius
|
2008-05-15 21:43:47 +02:00
|
|
|
|
|
|
|
BUILDLINK_API_DEPENDS.openssl+= openssl>=0.9.7
|
|
|
|
|
2010-05-23 19:28:44 +02:00
|
|
|
GNU_CONFIGURE= yes
|
Update to 2.1.1
Patches mainly from adam@ with some changes by me
05 September 2008 - Version 2.1.0 has been released.
The focus of this release is features.
Feature Improvements
* Clients may now be defined dynamically, based on IP address. See raddb/sites-available/dynamic-clients.
* SNMP support is now available through an experimental Perl script. See scripts/snmp-proxy/README
* SNMP statistics are also available through Status-Server packets. See raddb/sites-available/status
* Added more Microsoft attributes from bug #568.
* The linelog module has more functionality and flexibility. See raddb/modules/linelog.
* The debugging output has been sanitized. It should be much more readable.
* Debug logs can now be turned on/off while the server is running, for a user, group, realm, etc. See the log section of raddb/radiusd.conf.
* Added support for WiMAX Forum attributes. The dynamic keys are not yet calculated. See share/dictionary.wimax
* Added session resumption for PEAP and TTLS. See raddb/eap.conf, and the cache sub-section.
* Added radmin command-line tool for administering a running server. See man radmin and raddb/sites-available/control-socket.
Bug Fixes
* Double escaping of '\\' in the users (and some other) files has been fixed. If you have '\\' in the users file, your configuration will need to be checked, and fixed!
* Parse security section of radiusd.conf. This was accidentally deleted in 2.0.5. Closes bug #566.
* Bind to interface before IP, which allows DHCP sockets to listen on "*" for multiple interfaces.
* Fix handling of giaddr in DHCP responses.
* Corrected parsing of status_check in home_server so that it works.
* Fix hints so that "Puser" works again.
* Removed length restrictions on attribute names in the dictionaries.
* Update socket code to avoid C compiler optimizations.
25 September 2008 - Version 2.1.1 has been released.
The focus of this release is stability.
Feature Improvements
* Many more options and features are available via radmin. See man radmin and raddb/sites-available/control-socket.
* Many more commands available via the control socket. Connect via radmin, and type help for more information.
* Added dictionary.networkphysics and dictionary.lancom.
* Calculate WiMAX MIP keys, and added sample WiMAX SQL tables.
Bug Fixes
* Fixed bug that made radmin not work.
* Fixed Suse && Debian package scripts.
* Fixed issues with dynamic clients.
* Fixed configure checks for -lreadline
* rlm_sqlippool no longer needs to be linked to rlm_sql.
* Add statistics for detail file listeners. This closes bug #593.
* Fixed printing of some WiMAX attributes.
* Fixed double free on exit() in rlm_attr_filter.
* Fixed build issues on Solaris.
* Fixed fast session resumption for EAP-TLS.
2008-10-12 15:57:27 +02:00
|
|
|
CONFIGURE_ARGS+= --localstatedir=${VARBASE}
|
2009-04-23 20:26:05 +02:00
|
|
|
CONFIGURE_ARGS+= --quiet
|
Update to 2.1.1
Patches mainly from adam@ with some changes by me
05 September 2008 - Version 2.1.0 has been released.
The focus of this release is features.
Feature Improvements
* Clients may now be defined dynamically, based on IP address. See raddb/sites-available/dynamic-clients.
* SNMP support is now available through an experimental Perl script. See scripts/snmp-proxy/README
* SNMP statistics are also available through Status-Server packets. See raddb/sites-available/status
* Added more Microsoft attributes from bug #568.
* The linelog module has more functionality and flexibility. See raddb/modules/linelog.
* The debugging output has been sanitized. It should be much more readable.
* Debug logs can now be turned on/off while the server is running, for a user, group, realm, etc. See the log section of raddb/radiusd.conf.
* Added support for WiMAX Forum attributes. The dynamic keys are not yet calculated. See share/dictionary.wimax
* Added session resumption for PEAP and TTLS. See raddb/eap.conf, and the cache sub-section.
* Added radmin command-line tool for administering a running server. See man radmin and raddb/sites-available/control-socket.
Bug Fixes
* Double escaping of '\\' in the users (and some other) files has been fixed. If you have '\\' in the users file, your configuration will need to be checked, and fixed!
* Parse security section of radiusd.conf. This was accidentally deleted in 2.0.5. Closes bug #566.
* Bind to interface before IP, which allows DHCP sockets to listen on "*" for multiple interfaces.
* Fix handling of giaddr in DHCP responses.
* Corrected parsing of status_check in home_server so that it works.
* Fix hints so that "Puser" works again.
* Removed length restrictions on attribute names in the dictionaries.
* Update socket code to avoid C compiler optimizations.
25 September 2008 - Version 2.1.1 has been released.
The focus of this release is stability.
Feature Improvements
* Many more options and features are available via radmin. See man radmin and raddb/sites-available/control-socket.
* Many more commands available via the control socket. Connect via radmin, and type help for more information.
* Added dictionary.networkphysics and dictionary.lancom.
* Calculate WiMAX MIP keys, and added sample WiMAX SQL tables.
Bug Fixes
* Fixed bug that made radmin not work.
* Fixed Suse && Debian package scripts.
* Fixed issues with dynamic clients.
* Fixed configure checks for -lreadline
* rlm_sqlippool no longer needs to be linked to rlm_sql.
* Add statistics for detail file listeners. This closes bug #593.
* Fixed printing of some WiMAX attributes.
* Fixed double free on exit() in rlm_attr_filter.
* Fixed build issues on Solaris.
* Fixed fast session resumption for EAP-TLS.
2008-10-12 15:57:27 +02:00
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASEDIR}
|
2009-04-23 20:26:05 +02:00
|
|
|
CONFIGURE_ARGS+= --with-logdir=${VARBASE}/log/radiusd
|
2008-05-15 21:43:47 +02:00
|
|
|
CONFIGURE_ARGS+= --with-ltdl-lib=${PREFIX}/lib
|
|
|
|
CONFIGURE_ARGS+= --with-ltdl-include=${PREFIX}/include
|
2010-05-23 19:28:44 +02:00
|
|
|
CONFIGURE_ARGS+= --without-rlm_python
|
2008-05-15 21:43:47 +02:00
|
|
|
CONFIGURE_ARGS+= --without-rlm_smb
|
|
|
|
CONFIGURE_ARGS+= --without-rlm_sql_oracle
|
|
|
|
CONFIGURE_ARGS+= --without-rlm_sql_unixodbc
|
2010-05-23 19:28:44 +02:00
|
|
|
MAKE_ENV+= R=${DESTDIR:Q}
|
2008-05-15 21:43:47 +02:00
|
|
|
|
|
|
|
REPLACE_PERL= scripts/radsqlrelay
|
|
|
|
|
|
|
|
SUBST_CLASSES= make
|
|
|
|
SUBST_STAGE.make= post-patch
|
2008-12-19 23:49:18 +01:00
|
|
|
SUBST_FILES.make= src/modules/rlm_sql/drivers/rlm_sql_postgresql/Makefile.in
|
2008-05-15 21:43:47 +02:00
|
|
|
SUBST_SED.make+= -e "s|RLM_SQL_LIBS =|RLM_SQL_LIBS = \
|
2009-04-23 20:26:05 +02:00
|
|
|
-L${PREFIX}/lib|g"
|
2008-05-15 21:43:47 +02:00
|
|
|
SUBST_MESSAGE.make= Fixing Makefiles.
|
|
|
|
|
|
|
|
SUBST_CLASSES+= config
|
|
|
|
SUBST_STAGE.config= post-patch
|
|
|
|
SUBST_FILES.config= raddb/radiusd.conf.in
|
|
|
|
SUBST_SED.config= -e "s|@@RADIUS_USER@@|${RADIUS_USER}|g"
|
|
|
|
SUBST_SED.config+= -e "s|@@RADIUS_GROUP@@|${RADIUS_GROUP}|g"
|
|
|
|
SUBST_MESSAGE.config= Fixing configuration files.
|
|
|
|
|
|
|
|
.include "options.mk"
|
|
|
|
|
2009-04-23 20:26:05 +02:00
|
|
|
EGFILES=acct_users attrs attrs.access_reject attrs.accounting_response \
|
|
|
|
attrs.pre-proxy certs/README certs/bootstrap certs/ca.cnf \
|
|
|
|
certs/client.cnf certs/demoCA/cacert.pem certs/server.cnf \
|
|
|
|
certs/xpextensions clients.conf dictionary eap.conf experimental.conf \
|
|
|
|
hints huntgroups ldap.attrmap modules/acct_unique modules/always \
|
|
|
|
modules/attr_filter modules/attr_rewrite modules/chap modules/checkval \
|
|
|
|
modules/counter modules/detail modules/detail.example.com \
|
|
|
|
modules/detail.log modules/digest modules/echo modules/etc_group \
|
|
|
|
modules/exec modules/expiration modules/expr modules/files \
|
|
|
|
modules/inner-eap modules/ippool modules/krb5 modules/ldap \
|
|
|
|
modules/linelog modules/logintime modules/mac2ip modules/mac2vlan \
|
|
|
|
modules/mschap modules/otp modules/pam modules/pap modules/passwd \
|
|
|
|
modules/perl modules/policy modules/preprocess modules/radutmp \
|
|
|
|
modules/realm modules/smbpasswd modules/smsotp modules/sql_log \
|
|
|
|
modules/sqlcounter_expire_on_login modules/sradutmp modules/unix \
|
|
|
|
modules/wimax policy.conf policy.txt preproxy_users proxy.conf \
|
|
|
|
radiusd.conf sites-available/README sites-available/buffered-sql \
|
|
|
|
sites-available/control-socket \
|
|
|
|
sites-available/copy-acct-to-home-server \
|
|
|
|
sites-available/decoupled-accounting sites-available/default \
|
|
|
|
sites-available/dhcp sites-available/dynamic-clients \
|
|
|
|
sites-available/example sites-available/inner-tunnel \
|
|
|
|
sites-available/originate-coa sites-available/proxy-inner-tunnel \
|
|
|
|
sites-available/robust-proxy-accounting sites-available/status \
|
|
|
|
sites-available/virtual.example.com sites-available/vmps sql.conf \
|
|
|
|
sql/mssql/dialup.conf sql/mssql/schema.sql sql/mysql/admin.sql \
|
|
|
|
sql/mysql/counter.conf sql/mysql/dialup.conf sql/mysql/ippool.conf \
|
|
|
|
sql/mysql/ippool.sql sql/mysql/nas.sql sql/mysql/schema.sql \
|
|
|
|
sql/mysql/wimax.conf sql/mysql/wimax.sql sql/oracle/dialup.conf \
|
|
|
|
sql/oracle/ippool.conf sql/oracle/ippool.sql sql/oracle/msqlippool.txt \
|
|
|
|
sql/oracle/nas.sql sql/oracle/schema.sql sql/postgresql/admin.sql \
|
|
|
|
sql/postgresql/cisco_h323_db_schema.sql sql/postgresql/counter.conf \
|
|
|
|
sql/postgresql/dialup.conf sql/postgresql/ippool.conf \
|
|
|
|
sql/postgresql/ippool.sql sql/postgresql/nas.sql \
|
|
|
|
sql/postgresql/schema.sql \
|
|
|
|
sql/postgresql/update_radacct_group_trigger.sql \
|
|
|
|
sql/postgresql/voip-postpaid.conf sqlippool.conf templates.conf users
|
|
|
|
EGDIRS= certs certs/demoCA modules sql sql/mssql sql/mysql sql/oracle \
|
|
|
|
sql/postgresql sites-available
|
2008-05-15 21:43:47 +02:00
|
|
|
|
|
|
|
.for f in ${EGFILES}
|
|
|
|
CONF_FILES_PERMS+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f} \
|
|
|
|
${RADIUS_USER} ${RADIUS_GROUP} 0640
|
|
|
|
.endfor
|
|
|
|
|
2010-05-23 19:28:44 +02:00
|
|
|
.for d in ${EGDIRS}
|
|
|
|
INSTALLATION_DIRS+= ${PKG_SYSCONFDIR}/${d}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
OWN_DIRS_PERMS+= ${PKG_SYSCONFDIR}/certs ${RADIUS_USER} \
|
|
|
|
${RADIUS_GROUP} 750
|
|
|
|
OWN_DIRS_PERMS+= ${PKG_SYSCONFDIR}/certs/demoCA ${RADIUS_USER} \
|
|
|
|
${RADIUS_GROUP} 750
|
|
|
|
|
2008-05-15 21:43:47 +02:00
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
|
|
|
|
|
|
.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} == "none"
|
|
|
|
CONFIGURE_ARGS+= --without-threads
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} == "pth"
|
|
|
|
.include "../../devel/pthread-sem/buildlink3.mk"
|
|
|
|
SUBST_SED.make+= -e 's|@ldap_ldflags@|@ldap_ldflags@ \
|
|
|
|
${PTHREAD_LDFLAGS:M*:Q} ${PTHREAD_LIBS:M*:Q} -lsemaphore|g'
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} == "native"
|
|
|
|
SUBST_SED.make+= -e 's|@ldap_ldflags@|@ldap_ldflags@ \
|
|
|
|
${PTHREAD_LDFLAGS:M*:Q} ${PTHREAD_LIBS:M*:Q}|g'
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-build:
|
2009-04-23 20:26:05 +02:00
|
|
|
${CP} ${PKGDIR}/MESSAGE ${WRKDIR}/.MESSAGE_SRC
|
|
|
|
.if !empty(PKG_OPTIONS:Mpam)
|
|
|
|
${CP} ${PKGDIR}/MESSAGE.pam ${WRKDIR}/.MESSAGE_SRC.pam
|
|
|
|
.endif
|
2008-05-15 21:43:47 +02:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${EGDIR}
|
2009-04-23 20:26:05 +02:00
|
|
|
.for d in ${EGDIRS}
|
|
|
|
${INSTALL_DATA_DIR} ${EGDIR}/${d}
|
|
|
|
.endfor
|
|
|
|
.for f in ${EGFILES}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/raddb/${f} ${EGDIR}/${f}
|
|
|
|
.endfor
|
2008-05-15 21:43:47 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/src/modules/rlm_perl/example.pl ${EGDIR}
|
|
|
|
|
2009-04-23 20:26:05 +02:00
|
|
|
.include "../../devel/libltdl/buildlink3.mk"
|
2010-05-29 13:47:37 +02:00
|
|
|
.include "../../net/libpcap/buildlink3.mk"
|
2009-04-23 20:26:05 +02:00
|
|
|
.include "../../security/openssl/buildlink3.mk"
|
2008-05-15 21:43:47 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|