]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fix debian package to work even without freeradius-mysql 74/head
authorFajar A. Nugraha <github@fajar.net>
Tue, 7 Aug 2012 06:30:28 +0000 (13:30 +0700)
committerFajar A. Nugraha <github@fajar.net>
Tue, 7 Aug 2012 06:35:23 +0000 (13:35 +0700)
Added a patch to comment-out the line referencing mysql on
modules/dhcp_sqlippool in the default debian package.
This is needed so that by default users installing "freeradius"
package can always start the server, even without
"freeeradius-mysql" package installed.

debian/patches/dhcp_sqlippool-comment-out-mysql.diff [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/dhcp_sqlippool-comment-out-mysql.diff b/debian/patches/dhcp_sqlippool-comment-out-mysql.diff
new file mode 100644 (file)
index 0000000..d0d2143
--- /dev/null
@@ -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})"
index 944f2135a063bc438c7da506416b87af5cdea8ea..d2760f6953d00cc2f205540cd4f7173b026ba784 100644 (file)
@@ -2,3 +2,4 @@ radiusd-to-freeradius.diff
 dialupadmin-help.diff
 gitignore.diff
 rlm_sql.libs.diff
+dhcp_sqlippool-comment-out-mysql.diff