update freeradius to reflect moved structure and refresh patches
authorTim Yardley <lst@openwrt.org>
Mon, 30 Jul 2007 19:18:45 +0000 (19:18 +0000)
committerTim Yardley <lst@openwrt.org>
Mon, 30 Jul 2007 19:18:45 +0000 (19:18 +0000)
SVN-Revision: 8241

net/freeradius/Makefile
net/freeradius/patches/002-config.patch
net/freeradius/patches/004-ldap_configure.patch
net/freeradius/patches/005-create_libdir_at_install.patch
net/freeradius/patches/007-no_openssl_engine_check.patch
net/freeradius/patches/008-honor_ccpflags.patch
net/freeradius/patches/009-no_pie.patch

index 98351fc96c7d34fa2d4dce66c99ea1c93067b45f..f31cd2224be049c7caf3800a644cd2a1f2ebdeac 100644 (file)
@@ -12,12 +12,12 @@ PKG_NAME:=freeradius
 PKG_VERSION:=1.1.6
 PKG_RELEASE:=1
 
 PKG_VERSION:=1.1.6
 PKG_RELEASE:=1
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=ftp://ftp.freeradius.org/pub/radius/ \
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
+PKG_SOURCE_URL:=ftp://ftp.freeradius.org/pub/radius/old/ \
        http://freeradius.portal-to-web.de/ \
        ftp://ftp.uk.freeradius.org/pub/radius/
        http://freeradius.portal-to-web.de/ \
        ftp://ftp.uk.freeradius.org/pub/radius/
-PKG_MD5SUM:=
-PKG_CAT:=zcat
+PKG_MD5SUM:=2c29ab90cc30aa3b92fbd78030ccc198
+PKG_CAT:=bzcat
 
 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
 
 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
index 271cf56098e86c90a9e2f54e6ab9e51af989e583..e70776b1768cd7f4f4d3d571a948af6b2a13efee 100644 (file)
@@ -1,6 +1,7 @@
-diff -ruN freeradius-1.1.1-old/raddb/eap.conf freeradius-1.1.1-new/raddb/eap.conf
---- freeradius-1.1.1-old/raddb/eap.conf        2006-01-04 15:29:29.000000000 +0100
-+++ freeradius-1.1.1-new/raddb/eap.conf        2006-05-22 23:29:11.000000000 +0200
+Index: freeradius-1.1.6/raddb/eap.conf
+===================================================================
+--- freeradius-1.1.6.orig/raddb/eap.conf       2007-07-30 14:17:42.000000000 -0500
++++ freeradius-1.1.6/raddb/eap.conf    2007-07-30 14:17:42.000000000 -0500
 @@ -73,8 +73,8 @@
                #  User-Password, or the NT-Password attributes.
                #  'System' authentication is impossible with LEAP.
 @@ -73,8 +73,8 @@
                #  User-Password, or the NT-Password attributes.
                #  'System' authentication is impossible with LEAP.
@@ -32,7 +33,7 @@ diff -ruN freeradius-1.1.1-old/raddb/eap.conf freeradius-1.1.1-new/raddb/eap.con
  
                ## EAP-TLS
                #
  
                ## EAP-TLS
                #
-@@ -283,7 +283,7 @@
+@@ -329,7 +329,7 @@
                #  of MS-CHAPv2 in EAP by Cisco, which FreeRADIUS does not
                #  currently support.
                #
                #  of MS-CHAPv2 in EAP by Cisco, which FreeRADIUS does not
                #  currently support.
                #
@@ -42,9 +43,10 @@ diff -ruN freeradius-1.1.1-old/raddb/eap.conf freeradius-1.1.1-new/raddb/eap.con
 +#             }
        }
  
 +#             }
        }
  
-diff -ruN freeradius-1.1.1-old/raddb/radiusd.conf.in freeradius-1.1.1-new/raddb/radiusd.conf.in
---- freeradius-1.1.1-old/raddb/radiusd.conf.in 2006-02-10 16:12:02.000000000 +0100
-+++ freeradius-1.1.1-new/raddb/radiusd.conf.in 2006-05-22 23:33:53.000000000 +0200
+Index: freeradius-1.1.6/raddb/radiusd.conf.in
+===================================================================
+--- freeradius-1.1.6.orig/raddb/radiusd.conf.in        2007-07-30 14:17:42.000000000 -0500
++++ freeradius-1.1.6/raddb/radiusd.conf.in     2007-07-30 14:17:42.000000000 -0500
 @@ -31,13 +31,13 @@
  
  #  Location of config and logfiles.
 @@ -31,13 +31,13 @@
  
  #  Location of config and logfiles.
@@ -90,7 +92,7 @@ diff -ruN freeradius-1.1.1-old/raddb/radiusd.conf.in freeradius-1.1.1-new/raddb/
  
  
  # THREAD POOL CONFIGURATION
  
  
  # THREAD POOL CONFIGURATION
-@@ -657,7 +657,7 @@
+@@ -665,7 +665,7 @@
        #  For all EAP related authentications.
        #  Now in another file, because it is very large.
        #
        #  For all EAP related authentications.
        #  Now in another file, because it is very large.
        #
@@ -99,7 +101,7 @@ diff -ruN freeradius-1.1.1-old/raddb/radiusd.conf.in freeradius-1.1.1-new/raddb/
  
        # Microsoft CHAP authentication
        #
  
        # Microsoft CHAP authentication
        #
-@@ -1046,8 +1046,8 @@
+@@ -1066,8 +1066,8 @@
        #
        files {
                usersfile = ${confdir}/users
        #
        files {
                usersfile = ${confdir}/users
@@ -110,7 +112,7 @@ diff -ruN freeradius-1.1.1-old/raddb/radiusd.conf.in freeradius-1.1.1-new/raddb/
  
                #  If you want to use the old Cistron 'users' file
                #  with FreeRADIUS, you should change the next line
  
                #  If you want to use the old Cistron 'users' file
                #  with FreeRADIUS, you should change the next line
-@@ -1221,7 +1221,7 @@
+@@ -1253,7 +1253,7 @@
        #  For MS-SQL, use:             ${confdir}/mssql.conf
        #  For Oracle, use:             ${confdir}/oraclesql.conf
        #
        #  For MS-SQL, use:             ${confdir}/mssql.conf
        #  For Oracle, use:             ${confdir}/oraclesql.conf
        #
@@ -119,7 +121,7 @@ diff -ruN freeradius-1.1.1-old/raddb/radiusd.conf.in freeradius-1.1.1-new/raddb/
  
  
        #  For Cisco VoIP specific accounting with Postgresql,
  
  
        #  For Cisco VoIP specific accounting with Postgresql,
-@@ -1694,7 +1694,7 @@
+@@ -1755,7 +1755,7 @@
        #  The entire command line (and output) must fit into 253 bytes.
        #
        #  e.g. Framed-Pool = `%{exec:/bin/echo foo}`
        #  The entire command line (and output) must fit into 253 bytes.
        #
        #  e.g. Framed-Pool = `%{exec:/bin/echo foo}`
@@ -128,7 +130,7 @@ diff -ruN freeradius-1.1.1-old/raddb/radiusd.conf.in freeradius-1.1.1-new/raddb/
  
        #
        #  The expression module doesn't do authorization,
  
        #
        #  The expression module doesn't do authorization,
-@@ -1707,7 +1707,7 @@
+@@ -1768,7 +1768,7 @@
        #  listed in any other section.  See 'doc/rlm_expr' for
        #  more information.
        #
        #  listed in any other section.  See 'doc/rlm_expr' for
        #  more information.
        #
@@ -137,7 +139,7 @@ diff -ruN freeradius-1.1.1-old/raddb/radiusd.conf.in freeradius-1.1.1-new/raddb/
  
        #
        # We add the counter module here so that it registers
  
        #
        # We add the counter module here so that it registers
-@@ -1734,7 +1734,7 @@
+@@ -1795,7 +1795,7 @@
        #  'raddb/huntgroups' files.
        #
        #  It also adds the %{Client-IP-Address} attribute to the request.
        #  'raddb/huntgroups' files.
        #
        #  It also adds the %{Client-IP-Address} attribute to the request.
@@ -146,7 +148,7 @@ diff -ruN freeradius-1.1.1-old/raddb/radiusd.conf.in freeradius-1.1.1-new/raddb/
  
        #
        #  If you want to have a log of authentication requests,
  
        #
        #  If you want to have a log of authentication requests,
-@@ -1747,7 +1747,7 @@
+@@ -1808,7 +1808,7 @@
        #
        #  The chap module will set 'Auth-Type := CHAP' if we are
        #  handling a CHAP request and Auth-Type has not already been set
        #
        #  The chap module will set 'Auth-Type := CHAP' if we are
        #  handling a CHAP request and Auth-Type has not already been set
@@ -155,7 +157,7 @@ diff -ruN freeradius-1.1.1-old/raddb/radiusd.conf.in freeradius-1.1.1-new/raddb/
  
        #
        #  If the users are logging in with an MS-CHAP-Challenge
  
        #
        #  If the users are logging in with an MS-CHAP-Challenge
-@@ -1775,7 +1775,7 @@
+@@ -1836,7 +1836,7 @@
        #  Otherwise, when the first style of realm doesn't match,
        #  the other styles won't be checked.
        #
        #  Otherwise, when the first style of realm doesn't match,
        #  the other styles won't be checked.
        #
@@ -164,7 +166,7 @@ diff -ruN freeradius-1.1.1-old/raddb/radiusd.conf.in freeradius-1.1.1-new/raddb/
  #     ntdomain
  
        #
  #     ntdomain
  
        #
-@@ -1784,11 +1784,11 @@
+@@ -1845,11 +1845,11 @@
        #
        #  It also sets the EAP-Type attribute in the request
        #  attribute list to the EAP type from the packet.
        #
        #  It also sets the EAP-Type attribute in the request
        #  attribute list to the EAP type from the packet.
@@ -178,7 +180,7 @@ diff -ruN freeradius-1.1.1-old/raddb/radiusd.conf.in freeradius-1.1.1-new/raddb/
  
        #
        #  Look in an SQL database.  The schema of the database
  
        #
        #  Look in an SQL database.  The schema of the database
-@@ -1842,24 +1842,24 @@
+@@ -1908,24 +1908,24 @@
        #  PAP authentication, when a back-end database listed
        #  in the 'authorize' section supplies a password.  The
        #  password can be clear-text, or encrypted.
        #  PAP authentication, when a back-end database listed
        #  in the 'authorize' section supplies a password.  The
        #  password can be clear-text, or encrypted.
@@ -212,7 +214,7 @@ diff -ruN freeradius-1.1.1-old/raddb/radiusd.conf.in freeradius-1.1.1-new/raddb/
  
        #
        #  If you have a Cisco SIP server authenticating against
  
        #
        #  If you have a Cisco SIP server authenticating against
-@@ -1877,7 +1877,7 @@
+@@ -1943,7 +1943,7 @@
        #  containing CHAP-Password attributes CANNOT be authenticated
        #  against /etc/passwd!  See the FAQ for details.
        #  
        #  containing CHAP-Password attributes CANNOT be authenticated
        #  against /etc/passwd!  See the FAQ for details.
        #  
@@ -221,7 +223,7 @@ diff -ruN freeradius-1.1.1-old/raddb/radiusd.conf.in freeradius-1.1.1-new/raddb/
  
        # Uncomment it if you want to use ldap for authentication
        #
  
        # Uncomment it if you want to use ldap for authentication
        #
-@@ -1890,7 +1890,7 @@
+@@ -1956,7 +1956,7 @@
  
        #
        #  Allow EAP authentication.
  
        #
        #  Allow EAP authentication.
@@ -230,7 +232,7 @@ diff -ruN freeradius-1.1.1-old/raddb/radiusd.conf.in freeradius-1.1.1-new/raddb/
  }
  
  
  }
  
  
-@@ -1898,12 +1898,12 @@
+@@ -1964,12 +1964,12 @@
  #  Pre-accounting.  Decide which accounting type to use.
  #
  preacct {
  #  Pre-accounting.  Decide which accounting type to use.
  #
  preacct {
@@ -245,7 +247,7 @@ diff -ruN freeradius-1.1.1-old/raddb/radiusd.conf.in freeradius-1.1.1-new/raddb/
  
        #
        #  Look for IPASS-style 'realm/', and if not found, look for
  
        #
        #  Look for IPASS-style 'realm/', and if not found, look for
-@@ -1913,12 +1913,12 @@
+@@ -1979,12 +1979,12 @@
        #  Accounting requests are generally proxied to the same
        #  home server as authentication requests.
  #     IPASS
        #  Accounting requests are generally proxied to the same
        #  home server as authentication requests.
  #     IPASS
@@ -260,7 +262,7 @@ diff -ruN freeradius-1.1.1-old/raddb/radiusd.conf.in freeradius-1.1.1-new/raddb/
  }
  
  #
  }
  
  #
-@@ -1929,20 +1929,20 @@
+@@ -1995,20 +1995,20 @@
        #  Create a 'detail'ed log of the packets.
        #  Note that accounting requests which are proxied
        #  are also logged in the detail file.
        #  Create a 'detail'ed log of the packets.
        #  Note that accounting requests which are proxied
        #  are also logged in the detail file.
@@ -284,7 +286,7 @@ diff -ruN freeradius-1.1.1-old/raddb/radiusd.conf.in freeradius-1.1.1-new/raddb/
  #     sradutmp
  
        #  Return an address to the IP Pool when we see a stop record.
  #     sradutmp
  
        #  Return an address to the IP Pool when we see a stop record.
-@@ -1970,7 +1970,7 @@
+@@ -2036,7 +2036,7 @@
  #  or rlm_sql module can handle this.
  #  The rlm_sql module is *much* faster
  session {
  #  or rlm_sql module can handle this.
  #  The rlm_sql module is *much* faster
  session {
@@ -293,7 +295,7 @@ diff -ruN freeradius-1.1.1-old/raddb/radiusd.conf.in freeradius-1.1.1-new/raddb/
  
        #
        #  See "Simultaneous Use Checking Querie" in sql.conf
  
        #
        #  See "Simultaneous Use Checking Querie" in sql.conf
-@@ -2073,5 +2073,5 @@
+@@ -2139,5 +2139,5 @@
        #  hidden inside of the EAP packet, and the end server will
        #  reject the EAP request.
        #
        #  hidden inside of the EAP packet, and the end server will
        #  reject the EAP request.
        #
index e2df5538e86860b988e5f9ebb120adc815c55ed9..3a3c0d965152073f01d78655382ad1559311c012 100644 (file)
@@ -1,6 +1,7 @@
-diff -ruN freeradius-1.1.6-old/src/modules/rlm_ldap/configure freeradius-1.1.6-new/src/modules/rlm_ldap/configure
---- freeradius-1.1.6-old/src/modules/rlm_ldap/configure        2006-06-27 00:57:36.000000000 +0200
-+++ freeradius-1.1.6-new/src/modules/rlm_ldap/configure        2007-04-13 02:09:28.000000000 +0200
+Index: freeradius-1.1.6/src/modules/rlm_ldap/configure
+===================================================================
+--- freeradius-1.1.6.orig/src/modules/rlm_ldap/configure       2007-07-30 14:17:42.000000000 -0500
++++ freeradius-1.1.6/src/modules/rlm_ldap/configure    2007-07-30 14:17:42.000000000 -0500
 @@ -1,9 +1,10 @@
  #! /bin/sh
  # From configure.in Revision: 1.10.2.4 .
 @@ -1,9 +1,10 @@
  #! /bin/sh
  # From configure.in Revision: 1.10.2.4 .
@@ -6249,9 +6250,10 @@ diff -ruN freeradius-1.1.6-old/src/modules/rlm_ldap/configure freeradius-1.1.6-n
  
  { (exit 0); exit 0; }
  _ACEOF
  
  { (exit 0); exit 0; }
  _ACEOF
-diff -ruN freeradius-1.1.6-old/src/modules/rlm_ldap/configure.in freeradius-1.1.6-new/src/modules/rlm_ldap/configure.in
---- freeradius-1.1.6-old/src/modules/rlm_ldap/configure.in     2005-08-22 16:50:46.000000000 +0200
-+++ freeradius-1.1.6-new/src/modules/rlm_ldap/configure.in     2007-04-13 01:52:06.000000000 +0200
+Index: freeradius-1.1.6/src/modules/rlm_ldap/configure.in
+===================================================================
+--- freeradius-1.1.6.orig/src/modules/rlm_ldap/configure.in    2007-07-30 14:17:42.000000000 -0500
++++ freeradius-1.1.6/src/modules/rlm_ldap/configure.in 2007-07-30 14:17:42.000000000 -0500
 @@ -90,6 +90,10 @@
        dnl Static linking will probably not work, but nobody ever
        dnl complained about it.
 @@ -90,6 +90,10 @@
        dnl Static linking will probably not work, but nobody ever
        dnl complained about it.
index b96864423cfda7c01090ed01e41708381ff919a1..10bf7456fc7af24d873c09e0ed8558d74d0396e1 100644 (file)
@@ -1,7 +1,8 @@
-diff -ruN freeradius-1.1.1-old/Makefile freeradius-1.1.1-new/Makefile
---- freeradius-1.1.1-old/Makefile      2005-04-11 23:18:27.000000000 +0200
-+++ freeradius-1.1.1-new/Makefile      2006-05-22 08:27:44.000000000 +0200
-@@ -38,6 +38,7 @@
+Index: freeradius-1.1.6/Makefile
+===================================================================
+--- freeradius-1.1.6.orig/Makefile     2007-07-30 14:17:42.000000000 -0500
++++ freeradius-1.1.6/Makefile  2007-07-30 14:17:43.000000000 -0500
+@@ -42,6 +42,7 @@
  install:
        $(INSTALL) -d -m 755    $(R)$(sbindir)
        $(INSTALL) -d -m 755    $(R)$(bindir)
  install:
        $(INSTALL) -d -m 755    $(R)$(sbindir)
        $(INSTALL) -d -m 755    $(R)$(bindir)
index 12f53f1f969241bbd479f4efe13a2498b7d53737..ab1d0aaf0da29f0b8880d49d2aeeb6ce06a8fea5 100644 (file)
@@ -1,19 +1,21 @@
-diff -ruN freeradius-1.1.1-old/configure freeradius-1.1.1-new/configure
---- freeradius-1.1.1-old/configure     2006-05-21 19:44:54.000000000 +0200
-+++ freeradius-1.1.1-new/configure     2006-06-02 01:07:28.000000000 +0200
-@@ -7150,7 +7150,7 @@
+Index: freeradius-1.1.6/configure
+===================================================================
+--- freeradius-1.1.6.orig/configure    2007-07-30 14:17:42.000000000 -0500
++++ freeradius-1.1.6/configure 2007-07-30 14:17:43.000000000 -0500
+@@ -22454,7 +22454,7 @@
        openssl/ssl.h \
        openssl/crypto.h \
        openssl/err.h \
 -      openssl/engine.h
 +      
  do
        openssl/ssl.h \
        openssl/crypto.h \
        openssl/err.h \
 -      openssl/engine.h
 +      
  do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-diff -ruN freeradius-1.1.1-old/configure.in freeradius-1.1.1-new/configure.in
---- freeradius-1.1.1-old/configure.in  2006-02-06 13:50:52.000000000 +0100
-+++ freeradius-1.1.1-new/configure.in  2006-06-02 01:07:19.000000000 +0200
-@@ -574,7 +574,7 @@
+ as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
+ if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+Index: freeradius-1.1.6/configure.in
+===================================================================
+--- freeradius-1.1.6.orig/configure.in 2007-07-30 14:17:42.000000000 -0500
++++ freeradius-1.1.6/configure.in      2007-07-30 14:17:43.000000000 -0500
+@@ -616,7 +616,7 @@
        openssl/ssl.h \
        openssl/crypto.h \
        openssl/err.h \
        openssl/ssl.h \
        openssl/crypto.h \
        openssl/err.h \
index b91e022d7ff25430266a4676ddd1f2d6f2cecf60..bcf82b5a0691f61dc08472261e6e2f0d6baaf933 100644 (file)
@@ -1,5 +1,7 @@
---- freeradius-1.1.6-old/src/modules/rules.mak 2006-07-06 18:42:57.000000000 +0200
-+++ freeradius-1.1.6-new/src/modules/rules.mak 2007-04-13 03:17:33.000000000 +0200
+Index: freeradius-1.1.6/src/modules/rules.mak
+===================================================================
+--- freeradius-1.1.6.orig/src/modules/rules.mak        2007-07-30 14:17:42.000000000 -0500
++++ freeradius-1.1.6/src/modules/rules.mak     2007-07-30 14:17:43.000000000 -0500
 @@ -62,10 +62,10 @@
  #
  #######################################################################
 @@ -62,10 +62,10 @@
  #
  #######################################################################
index 4531965baafd74f3028cdae5d1b687e8b1bf61dd..86e3490f5cdabb19b73903d7233afd11a6ef610a 100644 (file)
@@ -1,6 +1,7 @@
-diff -ruN freeradius-1.1.6-old/src/main/Makefile.in freeradius-1.1.6-new/src/main/Makefile.in
---- freeradius-1.1.6-old/src/main/Makefile.in  2007-02-14 16:44:23.000000000 +0100
-+++ freeradius-1.1.6-new/src/main/Makefile.in  2007-04-13 05:08:11.000000000 +0200
+Index: freeradius-1.1.6/src/main/Makefile.in
+===================================================================
+--- freeradius-1.1.6.orig/src/main/Makefile.in 2007-07-30 14:17:42.000000000 -0500
++++ freeradius-1.1.6/src/main/Makefile.in      2007-07-30 14:17:43.000000000 -0500
 @@ -61,7 +61,7 @@
  
  radiusd: $(SERVER_OBJS) $(MODULE_OBJS) ../lib/libradius.la
 @@ -61,7 +61,7 @@
  
  radiusd: $(SERVER_OBJS) $(MODULE_OBJS) ../lib/libradius.la