pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/freeradius2 FreeRADIUS 2.1.4 Tue Mar 10 17:05:00 C...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1f7ca8233ed3
branches:  trunk
changeset: 391978:1f7ca8233ed3
user:      adam <adam%pkgsrc.org@localhost>
date:      Thu Apr 23 18:26:05 2009 +0000

description:
FreeRADIUS 2.1.4 Tue Mar 10 17:05:00 CEST 2009;  , urgency=medium
* Permit multiple "-e" in radmin.
* Add support for originating CoA-Request and Disconnect-Request.
  See raddb/sites-available/originate-coa.
* Added "lifetime" and "max_queries" to raddb/sql.conf.
  This helps address the problem of hung SQL sockets.
* Allow packets to be injected via radmin.  See "inject help" in radmin.
* Answer VMPS reconfirmation request.
* Sample logrotate script in scripts/logrotate.freeradius
* Add configurable poll interval for "detail" listeners
* New "raddebug" command.  This prints debugging information from
  a running server.
* Add "require_message_authenticator" configuration to home_server
  configuration.  This makes the server add Message-Authenticator
  to all outgoing Access-Request packets.
* Added smsotp module.
* Enabled the administration socket in the default install.
  See raddb/sites-available/control-socket, and "man radmin"
* Handle duplicate clients, such as with replicated or
  load-balanced SQL servers and "readclients = yes"
* Bug fixes

diffstat:

 net/freeradius2/Makefile         |  128 ++++++++++++++++++--------------------
 net/freeradius2/PLIST            |   85 ++++++++++++++++++++++++-
 net/freeradius2/PLIST.dbm        |    5 -
 net/freeradius2/PLIST.gdbm       |    3 -
 net/freeradius2/PLIST.kerberos   |    3 -
 net/freeradius2/PLIST.ldap       |    3 -
 net/freeradius2/PLIST.mysql      |    2 -
 net/freeradius2/PLIST.pam        |    3 -
 net/freeradius2/PLIST.pgsql      |    2 -
 net/freeradius2/distinfo         |   12 ++-
 net/freeradius2/options.mk       |   69 ++++++++++++++-------
 net/freeradius2/patches/patch-ac |   21 ++++++
 net/freeradius2/patches/patch-ad |   13 +++
 net/freeradius2/patches/patch-ai |    6 +-
 14 files changed, 232 insertions(+), 123 deletions(-)

diffs (truncated from 706 to 300 lines):

diff -r d0edd6d7085d -r 1f7ca8233ed3 net/freeradius2/Makefile
--- a/net/freeradius2/Makefile  Thu Apr 23 18:03:42 2009 +0000
+++ b/net/freeradius2/Makefile  Thu Apr 23 18:26:05 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2008/12/19 22:49:18 adrianp Exp $
+# $NetBSD: Makefile,v 1.5 2009/04/23 18:26:05 adam Exp $
 
 DISTNAME=      freeradius-server-${RADVER}
 PKGNAME=       ${DISTNAME:S/-server//}
@@ -15,13 +15,11 @@
 CONFLICTS+=            radiusd-cistron-[0-9]*
 CONFLICTS+=            freeradius<2.0
 USE_TOOLS+=            gmake perl:run
-GNU_CONFIGURE=         YES
 USE_LIBTOOL=           YES
 USE_OLD_DES_API=       YES
 MAKE_JOBS_SAFE=                NO
 
 BUILD_DEFS=            VARBASE
-PLIST_SRC=             ${WRKDIR}/.PLIST_SRC
 FILES_SUBST+=          RADIUS_USER=${RADIUS_USER}
 FILES_SUBST+=          RADIUS_GROUP=${RADIUS_GROUP}
 PLIST_SUBST+=          RADVER=${RADVER}
@@ -45,27 +43,21 @@
 OWN_DIRS_PERMS+=       ${VARBASE}/log/radiusd/radacct \
                        ${RADIUS_USER} ${RADIUS_GROUP} 0750
 
-RADVER=                        2.1.3
+RADVER=                        2.1.4
 EGDIR=                 ${PREFIX}/share/examples/freeradius
 
 BUILDLINK_API_DEPENDS.openssl+=        openssl>=0.9.7
 
-CONFIGURE_ARGS+=       --with-logdir=${VARBASE}/log/radiusd
+GNU_CONFIGURE=         YES
 CONFIGURE_ARGS+=       --localstatedir=${VARBASE}
+CONFIGURE_ARGS+=       --quiet
 CONFIGURE_ARGS+=       --sysconfdir=${PKG_SYSCONFBASEDIR}
-CONFIGURE_ARGS+=       --disable-ltdl-install
+CONFIGURE_ARGS+=       --with-logdir=${VARBASE}/log/radiusd
 CONFIGURE_ARGS+=       --with-ltdl-lib=${PREFIX}/lib
 CONFIGURE_ARGS+=       --with-ltdl-include=${PREFIX}/include
-CONFIGURE_ARGS+=       --without-rlm_ippool
 CONFIGURE_ARGS+=       --without-rlm_smb
-CONFIGURE_ARGS+=       --without-rlm_sql_iodbc
 CONFIGURE_ARGS+=       --without-rlm_sql_oracle
 CONFIGURE_ARGS+=       --without-rlm_sql_unixodbc
-CONFIGURE_ARGS+=       --quiet
-#CONFIGURE_ARGS+=      --without-rlm_eap_peap
-#CONFIGURE_ARGS+=      --without-rlm_eap_sim
-#CONFIGURE_ARGS+=      --without-rlm_eap_tls
-#CONFIGURE_ARGS+=      --without-rlm_eap_ttls
 
 REPLACE_PERL=          scripts/radsqlrelay
 
@@ -73,7 +65,7 @@
 SUBST_STAGE.make=      post-patch
 SUBST_FILES.make=      src/modules/rlm_sql/drivers/rlm_sql_postgresql/Makefile.in
 SUBST_SED.make+=       -e "s|RLM_SQL_LIBS      =|RLM_SQL_LIBS  = \
-                               -L${PREFIX}/lib|g"
+                       -L${PREFIX}/lib|g"
 SUBST_MESSAGE.make=    Fixing Makefiles.
 
 SUBST_CLASSES+=                config
@@ -85,42 +77,51 @@
 
 .include "options.mk"
 
-EGFILES=       certs/demoCA/cacert.pem certs/bootstrap certs/xpextensions \
-               certs/client.cnf certs/server.cnf certs/README certs/ca.cnf \
-               sql/mssql/dialup.conf sql/mssql/schema.sql \
-               sql/mysql/dialup.conf sql/mysql/nas.sql sql/mysql/ippool.conf \
-               sql/mysql/schema.sql sql/mysql/counter.conf \
-               sql/mysql/ippool.sql sql/oracle/dialup.conf sql/oracle/nas.sql \
-               sql/oracle/schema.sql sql/oracle/ippool.sql \
-               sql/postgresql/dialup.conf sql/postgresql/nas.sql \
-               sql/postgresql/voip-postpaid.conf sql/postgresql/ippool.conf \
-               sql/postgresql/schema.sql sql/postgresql/ippool.sql \
-               sql/postgresql/cisco_h323_db_schema.sql \
-               sql/postgresql/counter.conf sql/postgresql/admin.sql \
-               sql/postgresql/update_radacct_group_trigger.sql policy.txt \
-               experimental.conf radiusd.conf otp.conf policy.conf \
-               preproxy_users users vmpsd.conf.in acct_users \
-               ldap.attrmap clients.conf huntgroups sql.conf sqlippool.conf \
-               sites-available/inner-tunnel sites-available/example \
-               sites-available/buffered-sql sites-available/default \
-               sites-available/vmps sites-available/README \
-               sites-available/proxy-inner-tunnel \
-               sites-available/copy-acct-to-home-server attrs.pre-proxy \
-               sites-available/dhcp sites-available/robust-proxy-accounting \
-               sites-available/virtual.example.com sql/mysql/admin.sql \
-               eap.conf attrs.accounting_response hints attrs.access_reject \
-               templates.conf attrs proxy.conf dictionary
-
-EGDIRS=                certs certs/demoCA sql sql/mssql sql/mysql sql/oracle \
-               sql/postgresql sites-available
+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
 
 .for f in ${EGFILES}
 CONF_FILES_PERMS+=     ${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f} \
                        ${RADIUS_USER} ${RADIUS_GROUP} 0640
 .endfor
 
-.include "../../security/openssl/buildlink3.mk"
-.include "../../devel/libltdl/buildlink3.mk"
 .include "../../mk/pthread.buildlink3.mk"
 
 .if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} == "none"
@@ -138,38 +139,31 @@
                        ${PTHREAD_LDFLAGS:M*:Q} ${PTHREAD_LIBS:M*:Q}|g'
 .endif
 
-.if ${MACHINE_ARCH} == "amd64"
-CFLAGS+= -fPIC
-.endif
+# fix for wrong version number in freeradius-2.1.4
+post-patch:
+       ${ECHO} ${RADVER} > ${WRKSRC}/VERSION
 
 post-build:
-       ${CP} ${PKGDIR}/PLIST ${WRKDIR}/.PLIST_SRC
-       ${CP} ${PKGDIR:Q}/MESSAGE ${WRKDIR:Q}/.MESSAGE_SRC
-
-.      if !empty(PKG_OPTIONS:Mpam)
-               ${CP} ${PKGDIR}/MESSAGE.pam ${WRKDIR}/.MESSAGE_SRC.pam
-.      endif
+       ${CP} ${PKGDIR}/MESSAGE ${WRKDIR}/.MESSAGE_SRC
+.if !empty(PKG_OPTIONS:Mpam)
+       ${CP} ${PKGDIR}/MESSAGE.pam ${WRKDIR}/.MESSAGE_SRC.pam
+.endif
 
 post-install:
        ${INSTALL_DATA_DIR} ${EGDIR}
-
-.      for d in ${EGDIRS}
-               ${INSTALL_DATA_DIR} ${EGDIR}/${d}
-.      endfor
-
-.      for f in ${EGFILES}
-               ${INSTALL_DATA} ${WRKSRC}/raddb/${f} ${EGDIR}/${f}
-.      endfor
-
+.for d in ${EGDIRS}
+       ${INSTALL_DATA_DIR} ${EGDIR}/${d}
+       ${MKDIR} ${PKG_SYSCONFDIR}/${d}
+.endfor
+.for f in ${EGFILES}
+       ${INSTALL_DATA} ${WRKSRC}/raddb/${f} ${EGDIR}/${f}
+.endfor
        ${INSTALL_DATA} ${WRKSRC}/src/modules/rlm_perl/example.pl ${EGDIR}
-
-.      for d in ${EGDIRS}
-               ${MKDIR} ${PKG_SYSCONFDIR}/${d}
-.      endfor
-
        ${CHOWN} ${RADIUS_USER}:${RADIUS_GROUP} ${PKG_SYSCONFDIR}/certs
        ${CHOWN} ${RADIUS_USER}:${RADIUS_GROUP} ${PKG_SYSCONFDIR}/certs/demoCA
        ${CHMOD} 0750 ${PKG_SYSCONFDIR}/certs
        ${CHMOD} 0750 ${PKG_SYSCONFDIR}/certs/demoCA
 
+.include "../../devel/libltdl/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r d0edd6d7085d -r 1f7ca8233ed3 net/freeradius2/PLIST
--- a/net/freeradius2/PLIST     Thu Apr 23 18:03:42 2009 +0000
+++ b/net/freeradius2/PLIST     Thu Apr 23 18:26:05 2009 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.3 2008/12/19 22:49:18 adrianp Exp $
+@comment $NetBSD: PLIST,v 1.4 2009/04/23 18:26:05 adam Exp $
 bin/radclient
 bin/radconf2xml
 bin/radeapclient
@@ -8,6 +8,9 @@
 bin/radtest
 bin/radwho
 bin/radzap
+${PLIST.dbm}bin/rlm_dbm_cat
+${PLIST.dbm}bin/rlm_dbm_parser
+bin/rlm_ippool_tool
 bin/smbencrypt
 include/freeradius/hash.h
 include/freeradius/ident.h
@@ -42,6 +45,10 @@
 lib/rlm_checkval.la
 lib/rlm_copy_packet-${RADVER}.la
 lib/rlm_copy_packet.la
+${PLIST.gdbm}lib/rlm_counter-${RADVER}.la
+${PLIST.gdbm}lib/rlm_counter.la
+${PLIST.dbm}lib/rlm_dbm-${RADVER}.la
+${PLIST.dbm}lib/rlm_dbm.la
 lib/rlm_detail-${RADVER}.la
 lib/rlm_detail.la
 lib/rlm_digest-${RADVER}.la
@@ -76,18 +83,30 @@
 lib/rlm_fastusers.la
 lib/rlm_files-${RADVER}.la
 lib/rlm_files.la
+lib/rlm_ippool-${RADVER}.la
+lib/rlm_ippool.la
+${PLIST.kerberos}lib/rlm_krb5-${RADVER}.la
+${PLIST.kerberos}lib/rlm_krb5.la
+${PLIST.ldap}lib/rlm_ldap-${RADVER}.la
+${PLIST.ldap}lib/rlm_ldap.la
 lib/rlm_linelog-${RADVER}.la
 lib/rlm_linelog.la
 lib/rlm_logintime-${RADVER}.la
 lib/rlm_logintime.la
 lib/rlm_mschap-${RADVER}.la
 lib/rlm_mschap.la
+${PLIST.mysql}lib/rlm_sql_mysql-${RADVER}.la
+${PLIST.mysql}lib/rlm_sql_mysql.la
 lib/rlm_otp-${RADVER}.la
 lib/rlm_otp.la
+${PLIST.pam}lib/rlm_pam-${RADVER}.la
+${PLIST.pam}lib/rlm_pam.la
 lib/rlm_pap-${RADVER}.la
 lib/rlm_pap.la
 lib/rlm_passwd-${RADVER}.la
 lib/rlm_passwd.la
+${PLIST.pgsql}lib/rlm_sql_postgresql-${RADVER}.la
+${PLIST.pgsql}lib/rlm_sql_postgresql.la
 lib/rlm_policy-${RADVER}.la
 lib/rlm_policy.la
 lib/rlm_preprocess-${RADVER}.la
@@ -98,8 +117,12 @@
 lib/rlm_realm.la
 lib/rlm_sql-${RADVER}.la
 lib/rlm_sql.la
+${PLIST.iodbc}lib/rlm_sql_iodbc-${RADVER}.la
+${PLIST.iodbc}lib/rlm_sql_iodbc.la
 lib/rlm_sql_log-${RADVER}.la
 lib/rlm_sql_log.la
+${PLIST.unixodbc}lib/rlm_sql_unixodbc-${RADVER}.la
+${PLIST.unixodbc}lib/rlm_sql_unixodbc.la
 lib/rlm_sqlcounter-${RADVER}.la
 lib/rlm_sqlcounter.la
 lib/rlm_sqlippool-${RADVER}.la
@@ -137,12 +160,15 @@
 man/man5/rlm_unix.5
 man/man5/unlang.5
 man/man5/users.5
+man/man8/raddebug.8
 man/man8/radiusd.8
 man/man8/radmin.8
 man/man8/radrelay.8
 man/man8/radsqlrelay.8
 man/man8/radwatch.8
+man/man8/rlm_ippool_tool.8
 sbin/checkrad
+sbin/raddebug
 sbin/radiusd
 sbin/radmin
 sbin/radwatch
@@ -185,7 +211,6 @@
 share/doc/freeradius/rfc/draft-sterman-aaa-sip-00.txt
 share/doc/freeradius/rfc/leap.txt
 share/doc/freeradius/rfc/pppext-eap-sim-12.txt
-share/doc/freeradius/rfc/rfc5281.txt
 share/doc/freeradius/rfc/rfc1157.txt
 share/doc/freeradius/rfc/rfc1227.txt
 share/doc/freeradius/rfc/rfc1448.txt
@@ -233,6 +258,7 @@



Home | Main Index | Thread Index | Old Index