Date: Wed, 11 Feb 2009 14:51:44 -0500 (EST) From: Garrett Wollman <wollman@ntp-0.csail.mit.edu> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/131595: freeradius port is out-of-date Message-ID: <200902111951.n1BJpiWh011911@ntp-0.csail.mit.edu> Resent-Message-ID: <200902112030.n1BKU66S083649@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 131595 >Category: ports >Synopsis: freeradius port is out-of-date >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Wed Feb 11 20:30:06 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Garrett Wollman >Release: FreeBSD 6.4-RELEASE-p1 i386 >Organization: MIT Computer Science & Artificial Intelligence Lab >Environment: System: FreeBSD ntp-0.csail.mit.edu 6.4-RELEASE-p1 FreeBSD 6.4-RELEASE-p1 #4: Tue Dec 23 13:33:20 EST 2008 root@ca.csail.mit.edu:/usr/obj/usr/src/sys/CSAIL i386 >Description: The current version of FreeRADIUS is 2.1.3. >How-To-Repeat: >Fix: This patch also includes changes to allow Perl and Python modules to be built conditionally (but Perl is still unconditionally required as a dependency). Note that files/patch-config-security is deleted; it contains a bug-fix for 2.0.5 which is no longer necessary. (I have not evaluated whether the other patches are still necessary; they still apply.) Index: Makefile =================================================================== RCS file: /home/ncvs/ports/net/freeradius2/Makefile,v retrieving revision 1.73 diff -u -r1.73 Makefile --- Makefile 29 Nov 2008 22:32:37 -0000 1.73 +++ Makefile 11 Feb 2009 18:53:34 -0000 @@ -6,7 +6,7 @@ # PORTNAME= freeradius -DISTVERSION= 2.0.5 +DISTVERSION= 2.1.3 CATEGORIES= net MASTER_SITES= ftp://ftp.freeradius.org/pub/freeradius/%SUBDIR%/ \ ftp://ftp.ntua.gr/pub/net/radius/freeradius/%SUBDIR%/ \ @@ -34,7 +34,6 @@ USE_AUTOTOOLS= libltdl:15 libtool:15 autoconf:262 USE_GMAKE= yes USE_OPENSSL= yes -USE_PYTHON= yes MAKE_ARGS+= LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" CFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib @@ -48,14 +47,12 @@ PGSQL "With PostgreSQL database support" off \ FIREBIRD "With Firebird database support (EXPERIMENTAL)" off \ SNMP "With SNMP support" off \ + PYTHON_MODULE "With Python module" off \ + PERL_MODULE "With Perl module" off \ EXPERIMENTAL "Build experimental modules (including DHCP)" off .include <bsd.port.pre.mk> -.if ${OSVERSION} < 700000 -BROKEN= fails to build python rlm module -.endif - # Default requirements for rc script _REQUIRE= NETWORKING SERVERS @@ -88,9 +85,7 @@ .if ${OPENSSLLIB} != "/usr/lib" CONFIGURE_ARGS+=--with-openssl-libraries=${OPENSSLLIB} .endif -CONFIGURE_ARGS+=--with-rlm-python-lib-dir=${PYTHON_LIBDIR} \ - --with-rlm-python-include-dir=${PYTHON_INCLUDEDIR} \ - --without-rlm_eap_ikev2 \ +CONFIGURE_ARGS+=--without-rlm_eap_ikev2 \ --without-rlm_eap_tnc \ --without-rlm_eap2 \ --without-rlm_opendirectory \ @@ -100,6 +95,7 @@ --without-rlm_sql_sqlite \ --without-rlm_sql_sybase \ --without-rlm_sql_unixodbc \ + --with-udpfromto \ --with-vmps .if ${ARCH} == amd64 @@ -206,8 +202,10 @@ .ifdef(WITH_SNMP) LIB_DEPENDS+= snmp.4:${PORTSDIR}/net-mgmt/net-snmp4 +PLIST_SUB+= RLMSNMP="" .else CONFIGURE_ARGS+=--without-snmp +PLIST_SUB+= RLMSNMP="@comment " .endif .ifdef(WITH_EXPERIMENTAL) @@ -217,27 +215,31 @@ PLIST_SUB+= EXPM="@comment " .endif -.ifdef(WITH_DEVELOPER) -CONFIGURE_ARGS+=--enable-developer -# Turn off compiler optimisations -CFLAGS!= ${ECHO} ${CFLAGS} | ${SED} -Ee 's:-O[0-9]?[[:space:]]*::g' +.ifdef(WITH_PYTHON_MODULE) +USE_PYTHON= yes +PLIST_SUB+= RLMPYTHON="" +CONFIGURE_ARGS+=--with-rlm-python-lib-dir=${PYTHON_LIBDIR} \ + --with-rlm-python-include-dir=${PYTHON_INCLUDEDIR} +.else +PLIST_SUB+= RLMPYTHON="@comment " +CONFIGURE_ARGS+=--without-rlm-python .endif -# NOPERL has been removed from OPTIONS. It is a nasty hack as it doesn't -# properly remove the dependency on perl. The main configure.in should be -# patched so that the perl detection test fails to make this work properly, -# though that configure run (at least in 2.0.0) only looks for perl to issue -# a warning about Simultaneous-Use and checkrad.pl maybe not working without -# perl. -# Leave WITH_NOPERL as a knob for anyone that really wants it - or for -# a proper fix in the future. -.ifdef(WITH_NOPERL) -CONFIGURE_ARGS+=--without-rlm_perl -PLIST_SUB+= RLMPERL="@comment " -.else +# Depends on Perl even if you don't build the module. USE_PERL5= yes -CONFIGURE_ARGS+=--with-rlm_perl + +.ifdef(WITH_PERL_MODULE) +CONFIGURE_ARGS+=--with-rlm-perl PLIST_SUB+= RLMPERL="" +.else +CONFIGURE_ARGS+=--without-rlm-perl +PLIST_SUB+= RLMPERL="@comment " +.endif + +.ifdef(WITH_DEVELOPER) +CONFIGURE_ARGS+=--enable-developer +# Turn off compiler optimisations +CFLAGS!= ${ECHO} ${CFLAGS} | ${SED} -Ee 's:-O[0-9]?[[:space:]]*::g' .endif MAN1= radclient.1 radeapclient.1 radlast.1 radtest.1 radwho.1 \ @@ -248,7 +250,7 @@ rlm_detail.5 rlm_digest.5 rlm_expr.5 rlm_files.5 rlm_mschap.5 \ rlm_pap.5 rlm_passwd.5 rlm_policy.5 rlm_realm.5 rlm_sql.5 \ rlm_sql_log.5 rlm_unix.5 unlang.5 users.5 -MAN8= radiusd.8 radrelay.8 radsqlrelay.8 radwatch.8 \ +MAN8= radiusd.8 radmin.8 radrelay.8 radsqlrelay.8 radwatch.8 \ rlm_ippool_tool.8 SUB_LIST+= REQUIRE="${_REQUIRE}" Index: distinfo =================================================================== RCS file: /home/ncvs/ports/net/freeradius2/distinfo,v retrieving revision 1.26 diff -u -r1.26 distinfo --- distinfo 28 Jul 2008 13:14:17 -0000 1.26 +++ distinfo 11 Feb 2009 00:38:31 -0000 @@ -1,3 +1,3 @@ -MD5 (freeradius-server-2.0.5.tar.bz2) = 3f7f3491d619542baa72746cbd6a7ed2 -SHA256 (freeradius-server-2.0.5.tar.bz2) = 9eab7d8bfa89196a28ed65a76f647edd5e666dd9edc6e29384381d72139ed6e2 -SIZE (freeradius-server-2.0.5.tar.bz2) = 2323968 +MD5 (freeradius-server-2.1.3.tar.bz2) = df7a23ec6303a89d014fcc43418ce5e5 +SHA256 (freeradius-server-2.1.3.tar.bz2) = 984cf7f3418de8f2abe1e599827264495cef1d234cce4abe05a06a4b6419db1a +SIZE (freeradius-server-2.1.3.tar.bz2) = 2380451 Index: pkg-plist =================================================================== RCS file: /home/ncvs/ports/net/freeradius2/pkg-plist,v retrieving revision 1.36 diff -u -r1.36 pkg-plist --- pkg-plist 28 Jul 2008 13:14:17 -0000 1.36 +++ pkg-plist 11 Feb 2009 18:52:56 -0000 @@ -1,5 +1,6 @@ @stopdaemon radiusd bin/radclient +bin/radconf2xml bin/radeapclient bin/radlast bin/radsniff @@ -41,6 +42,7 @@ %%EXAMPLESDIR%%/raddb/modules/checkval %%EXAMPLESDIR%%/raddb/modules/counter %%EXAMPLESDIR%%/raddb/modules/detail +%%EXAMPLESDIR%%/raddb/modules/detail.example.com %%EXAMPLESDIR%%/raddb/modules/detail.log %%EXAMPLESDIR%%/raddb/modules/digest %%EXAMPLESDIR%%/raddb/modules/echo @@ -49,9 +51,11 @@ %%EXAMPLESDIR%%/raddb/modules/expiration %%EXAMPLESDIR%%/raddb/modules/expr %%EXAMPLESDIR%%/raddb/modules/files +%%EXAMPLESDIR%%/raddb/modules/inner-eap %%EXAMPLESDIR%%/raddb/modules/ippool %%EXAMPLESDIR%%/raddb/modules/krb5 %%EXAMPLESDIR%%/raddb/modules/ldap +%%EXAMPLESDIR%%/raddb/modules/linelog %%EXAMPLESDIR%%/raddb/modules/logintime %%EXAMPLESDIR%%/raddb/modules/mac2ip %%EXAMPLESDIR%%/raddb/modules/mac2vlan @@ -59,14 +63,17 @@ %%EXAMPLESDIR%%/raddb/modules/pam %%EXAMPLESDIR%%/raddb/modules/pap %%EXAMPLESDIR%%/raddb/modules/passwd +%%EXAMPLESDIR%%/raddb/modules/perl %%EXAMPLESDIR%%/raddb/modules/policy %%EXAMPLESDIR%%/raddb/modules/preprocess %%EXAMPLESDIR%%/raddb/modules/radutmp %%EXAMPLESDIR%%/raddb/modules/realm %%EXAMPLESDIR%%/raddb/modules/smbpasswd +%%EXAMPLESDIR%%/raddb/modules/sqlcounter_expire_on_login %%EXAMPLESDIR%%/raddb/modules/sql_log %%EXAMPLESDIR%%/raddb/modules/sradutmp %%EXAMPLESDIR%%/raddb/modules/unix +%%EXAMPLESDIR%%/raddb/modules/wimax %%EXAMPLESDIR%%/raddb/otp.conf %%EXAMPLESDIR%%/raddb/policy.conf %%EXAMPLESDIR%%/raddb/policy.txt @@ -75,18 +82,22 @@ %%EXAMPLESDIR%%/raddb/radiusd.conf %%EXAMPLESDIR%%/raddb/sites-available/README %%EXAMPLESDIR%%/raddb/sites-available/buffered-sql +%%EXAMPLESDIR%%/raddb/sites-available/control-socket %%EXAMPLESDIR%%/raddb/sites-available/copy-acct-to-home-server +%%EXAMPLESDIR%%/raddb/sites-available/decoupled-accounting %%EXAMPLESDIR%%/raddb/sites-available/default %%EXAMPLESDIR%%/raddb/sites-available/dhcp +%%EXAMPLESDIR%%/raddb/sites-available/dynamic-clients %%EXAMPLESDIR%%/raddb/sites-available/example %%EXAMPLESDIR%%/raddb/sites-available/inner-tunnel %%EXAMPLESDIR%%/raddb/sites-available/proxy-inner-tunnel %%EXAMPLESDIR%%/raddb/sites-available/robust-proxy-accounting +%%EXAMPLESDIR%%/raddb/sites-available/status %%EXAMPLESDIR%%/raddb/sites-available/virtual.example.com %%EXAMPLESDIR%%/raddb/sites-available/vmps %%EXAMPLESDIR%%/raddb/sites-enabled/default %%EXAMPLESDIR%%/raddb/sites-enabled/inner-tunnel -%%EXAMPLESDIR%%/raddb/snmp.conf +%%RLMSNMP%%%%EXAMPLESDIR%%/raddb/snmp.conf %%EXAMPLESDIR%%/raddb/sql.conf %%EXAMPLESDIR%%/raddb/sql/mssql/dialup.conf %%EXAMPLESDIR%%/raddb/sql/mssql/schema.sql @@ -97,6 +108,8 @@ %%EXAMPLESDIR%%/raddb/sql/mysql/ippool.sql %%EXAMPLESDIR%%/raddb/sql/mysql/nas.sql %%EXAMPLESDIR%%/raddb/sql/mysql/schema.sql +%%EXAMPLESDIR%%/raddb/sql/mysql/wimax.conf +%%EXAMPLESDIR%%/raddb/sql/mysql/wimax.sql %%EXAMPLESDIR%%/raddb/sql/oracle/dialup.conf %%EXAMPLESDIR%%/raddb/sql/oracle/ippool.conf %%EXAMPLESDIR%%/raddb/sql/oracle/ippool.sql @@ -204,6 +217,11 @@ %%LIBDIR%%/rlm_digest.a %%LIBDIR%%/rlm_digest.la %%LIBDIR%%/rlm_digest.so +%%LIBDIR%%/rlm_dynamic_clients-%%PORTVERSION%%.la +%%LIBDIR%%/rlm_dynamic_clients-%%PORTVERSION%%.so +%%LIBDIR%%/rlm_dynamic_clients.a +%%LIBDIR%%/rlm_dynamic_clients.la +%%LIBDIR%%/rlm_dynamic_clients.so %%LIBDIR%%/rlm_eap-%%PORTVERSION%%.la %%LIBDIR%%/rlm_eap-%%PORTVERSION%%.so %%LIBDIR%%/rlm_eap.a @@ -299,11 +317,11 @@ %%LDAP%%%%LIBDIR%%/rlm_ldap.a %%LDAP%%%%LIBDIR%%/rlm_ldap.la %%LDAP%%%%LIBDIR%%/rlm_ldap.so -%%EXPM%%%%LIBDIR%%/rlm_linelog-%%PORTVERSION%%.la -%%EXPM%%%%LIBDIR%%/rlm_linelog-%%PORTVERSION%%.so -%%EXPM%%%%LIBDIR%%/rlm_linelog.a -%%EXPM%%%%LIBDIR%%/rlm_linelog.la -%%EXPM%%%%LIBDIR%%/rlm_linelog.so +%%LIBDIR%%/rlm_linelog-%%PORTVERSION%%.la +%%LIBDIR%%/rlm_linelog-%%PORTVERSION%%.so +%%LIBDIR%%/rlm_linelog.a +%%LIBDIR%%/rlm_linelog.la +%%LIBDIR%%/rlm_linelog.so %%LIBDIR%%/rlm_logintime-%%PORTVERSION%%.la %%LIBDIR%%/rlm_logintime-%%PORTVERSION%%.so %%LIBDIR%%/rlm_logintime.a @@ -354,11 +372,11 @@ %%EXPM%%%%LIBDIR%%/rlm_protocol_filter.a %%EXPM%%%%LIBDIR%%/rlm_protocol_filter.la %%EXPM%%%%LIBDIR%%/rlm_protocol_filter.so -%%LIBDIR%%/rlm_python-%%PORTVERSION%%.la -%%LIBDIR%%/rlm_python-%%PORTVERSION%%.so -%%LIBDIR%%/rlm_python.a -%%LIBDIR%%/rlm_python.la -%%LIBDIR%%/rlm_python.so +%%RLMPYTHON%%%%LIBDIR%%/rlm_python-%%PORTVERSION%%.la +%%RLMPYTHON%%%%LIBDIR%%/rlm_python-%%PORTVERSION%%.so +%%RLMPYTHON%%%%LIBDIR%%/rlm_python.a +%%RLMPYTHON%%%%LIBDIR%%/rlm_python.la +%%RLMPYTHON%%%%LIBDIR%%/rlm_python.so %%LIBDIR%%/rlm_radutmp-%%PORTVERSION%%.la %%LIBDIR%%/rlm_radutmp-%%PORTVERSION%%.so %%LIBDIR%%/rlm_radutmp.a @@ -427,6 +445,7 @@ @dirrm %%LIBDIR%% sbin/checkrad sbin/radiusd +sbin/radmin sbin/radwatch sbin/rc.radiusd include/freeradius/hash.h @@ -487,6 +506,7 @@ %%PORTDOCS%%%%DOCSDIR%%/rfc/rfc1901.txt %%PORTDOCS%%%%DOCSDIR%%/rfc/rfc1905.txt %%PORTDOCS%%%%DOCSDIR%%/rfc/rfc2243.txt +%%PORTDOCS%%%%DOCSDIR%%/rfc/rfc2284.txt %%PORTDOCS%%%%DOCSDIR%%/rfc/rfc2289.txt %%PORTDOCS%%%%DOCSDIR%%/rfc/rfc2433.txt %%PORTDOCS%%%%DOCSDIR%%/rfc/rfc2548.txt @@ -513,12 +533,21 @@ %%PORTDOCS%%%%DOCSDIR%%/rfc/rfc3748.txt %%PORTDOCS%%%%DOCSDIR%%/rfc/rfc4372.txt %%PORTDOCS%%%%DOCSDIR%%/rfc/rfc4590.txt +%%PORTDOCS%%%%DOCSDIR%%/rfc/rfc4668.txt +%%PORTDOCS%%%%DOCSDIR%%/rfc/rfc4669.txt +%%PORTDOCS%%%%DOCSDIR%%/rfc/rfc4670.txt +%%PORTDOCS%%%%DOCSDIR%%/rfc/rfc4671.txt +%%PORTDOCS%%%%DOCSDIR%%/rfc/rfc4672.txt +%%PORTDOCS%%%%DOCSDIR%%/rfc/rfc4673.txt %%PORTDOCS%%%%DOCSDIR%%/rfc/rfc4675.txt %%PORTDOCS%%%%DOCSDIR%%/rfc/rfc4679.txt %%PORTDOCS%%%%DOCSDIR%%/rfc/rfc4818.txt %%PORTDOCS%%%%DOCSDIR%%/rfc/rfc4849.txt %%PORTDOCS%%%%DOCSDIR%%/rfc/rfc5080.txt +%%PORTDOCS%%%%DOCSDIR%%/rfc/rfc5090.txt %%PORTDOCS%%%%DOCSDIR%%/rfc/rfc5176.txt +%%PORTDOCS%%%%DOCSDIR%%/rfc/rfc5247.txt +%%PORTDOCS%%%%DOCSDIR%%/rfc/rfc5281.txt %%PORTDOCS%%%%DOCSDIR%%/rlm_dbm %%PORTDOCS%%%%DOCSDIR%%/rlm_eap %%PORTDOCS%%%%DOCSDIR%%/rlm_expiration @@ -550,6 +579,7 @@ %%DATADIR%%/dictionary.alteon %%DATADIR%%/dictionary.altiga %%DATADIR%%/dictionary.alvarion +%%DATADIR%%/dictionary.apc %%DATADIR%%/dictionary.aptis %%DATADIR%%/dictionary.aruba %%DATADIR%%/dictionary.ascend @@ -593,6 +623,7 @@ %%DATADIR%%/dictionary.jradius %%DATADIR%%/dictionary.juniper %%DATADIR%%/dictionary.karlnet +%%DATADIR%%/dictionary.lancom %%DATADIR%%/dictionary.livingston %%DATADIR%%/dictionary.localweb %%DATADIR%%/dictionary.lucent @@ -603,6 +634,7 @@ %%DATADIR%%/dictionary.motorola %%DATADIR%%/dictionary.navini %%DATADIR%%/dictionary.netscreen +%%DATADIR%%/dictionary.networkphysics %%DATADIR%%/dictionary.nexans %%DATADIR%%/dictionary.nokia %%DATADIR%%/dictionary.nokia.conflict @@ -632,6 +664,7 @@ %%DATADIR%%/dictionary.rfc4679 %%DATADIR%%/dictionary.rfc4818 %%DATADIR%%/dictionary.rfc4849 +%%DATADIR%%/dictionary.rfc5090 %%DATADIR%%/dictionary.rfc5176 %%DATADIR%%/dictionary.riverstone %%DATADIR%%/dictionary.roaringpenguin @@ -649,11 +682,13 @@ %%DATADIR%%/dictionary.tropos %%DATADIR%%/dictionary.unix %%DATADIR%%/dictionary.usr +%%DATADIR%%/dictionary.utstarcom %%DATADIR%%/dictionary.valemount %%DATADIR%%/dictionary.versanet %%DATADIR%%/dictionary.vqp %%DATADIR%%/dictionary.walabi %%DATADIR%%/dictionary.waverider +%%DATADIR%%/dictionary.wimax %%DATADIR%%/dictionary.wispr %%DATADIR%%/dictionary.xedia %%DATADIR%%/dictionary.xylan Index: files/patch-config-security =================================================================== RCS file: files/patch-config-security diff -N files/patch-config-security --- files/patch-config-security 28 Jul 2008 13:14:17 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,11 +0,0 @@ ---- src/main/mainconfig.c 2008-06-05 10:48:22.000000000 +0100 -+++ src/main/mainconfig.c 2008-07-02 22:18:16.000000000 +0100 -@@ -229,6 +229,8 @@ - { "log_auth_goodpass", PW_TYPE_BOOLEAN, 0, &mainconfig.log_auth_goodpass, NULL }, - { "log_stripped_names", PW_TYPE_BOOLEAN, 0, &log_stripped_names, NULL }, - -+ { "security", PW_TYPE_SUBSECTION, 0, NULL, (const void *) security_config }, -+ - { NULL, -1, 0, NULL, NULL } - }; - >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902111951.n1BJpiWh011911>