From 30eb81d45145f16d30f7e8338ca4219ee01e4dbc Mon Sep 17 00:00:00 2001 From: John Dennis Date: Dec 10 2012 21:00:01 +0000 Subject: resolves: bug#876564 - fails to start without freeradius-mysql --- diff --git a/freeradius-dhcp_sqlippool.patch b/freeradius-dhcp_sqlippool.patch new file mode 100644 index 0000000..d0d2143 --- /dev/null +++ b/freeradius-dhcp_sqlippool.patch @@ -0,0 +1,18 @@ +diff --git a/raddb/modules/dhcp_sqlippool b/raddb/modules/dhcp_sqlippool +index 39358b2..2a29daf 100644 +--- a/raddb/modules/dhcp_sqlippool ++++ b/raddb/modules/dhcp_sqlippool +@@ -14,8 +14,11 @@ sqlippool dhcp_sqlippool { + # Client's MAC address is mapped to Calling-Station-Id in policy.conf + pool-key = "%{Calling-Station-Id}" + +- # For now, it only works with MySQL. +- $INCLUDE ${confdir}/sql/mysql/ippool-dhcp.conf ++ # For now, it only works with MySQL. ++ # This line is commented by default to enable clean startup when you ++ # don't have freeradius-mysql installed. Uncomment this line if you ++ # use this module. ++ #$INCLUDE ${confdir}/sql/mysql/ippool-dhcp.conf + + sqlippool_log_exists = "DHCP: Existing IP: %{reply:Framed-IP-Address} (did %{Called-Station-Id} cli %{Calling-Station-Id} port %{NAS-Port} user %{User-Name})" + diff --git a/freeradius.spec b/freeradius.spec index 46ede5b..061560f 100644 --- a/freeradius.spec +++ b/freeradius.spec @@ -1,7 +1,7 @@ Summary: High-performance and highly configurable free RADIUS server Name: freeradius Version: 2.2.0 -Release: 0%{?dist} +Release: 1%{?dist} License: GPLv2+ and LGPLv2+ Group: System Environment/Daemons URL: http://www.freeradius.org/ @@ -16,6 +16,7 @@ Patch1: freeradius-cert-config.patch Patch2: freeradius-radtest.patch Patch3: freeradius-radeapclient-ipv6.patch Patch4: freeradius-exclude-config-file.patch +Patch5: freeradius-dhcp_sqlippool.patch Obsoletes: freeradius-devel Obsoletes: freeradius-libs @@ -151,6 +152,7 @@ This plugin provides the unixODBC support for the FreeRADIUS server project. %patch2 -p1 -b .radtest %patch3 -p1 -b radeapclient-ipv6 %patch4 -p1 -b exclude-config-file +%patch5 -p1 -b dhcp_sqlippool # Some source files mistakenly have execute permissions set find $RPM_BUILD_DIR/freeradius-server-%{version} \( -name '*.c' -o -name '*.h' \) -a -perm /0111 -exec chmod a-x {} + @@ -601,6 +603,9 @@ exit 0 %{_libdir}/freeradius/rlm_sql_unixodbc-%{version}.so %changelog +* Mon Dec 10 2012 John Dennis - 2.2.0-1 +- resolves: bug#876564 - fails to start without freeradius-mysql + * Wed Oct 3 2012 John Dennis - 2.2.0-0 - Add new patch to avoid reading .rpmnew, .rpmsave and other invalid files when loading config files