File msn-proxy.patch of Package MSN-Proxy

diff -Naurh ./Makefile msn-proxy-0.7/Makefile
--- ./Makefile	2009-01-24 09:58:23.000000000 -0200
+++ msn-proxy-0.7/Makefile	2009-01-24 10:01:47.000000000 -0200
@@ -1,16 +1,16 @@
 
 RM=/bin/rm
 INSTALL=/usr/bin/install
-SYSCONFDIR=$(DESTDIR)/usr/local/etc/msn-proxy
-BINDIR=$(DESTDIR)/usr/local/bin
+SYSCONFDIR=$(DESTDIR)/etc/msn-proxy
+BINDIR=$(DESTDIR)/usr/bin
 
 # FreeBSD
-MYSQLINC=/usr/local/include
-MYSQLLIB=/usr/local/lib/mysql
+#MYSQLINC=/usr/local/include
+#MYSQLLIB=/usr/local/lib/mysql
 
 # Linux (most)
-#MYSQLINC=/usr/lib/mysql
-#MYSQLLIB=/usr/local/mysql/lib/mysql
+MYSQLINC=/usr/lib/mysql
+MYSQLLIB=/usr/local/mysql/lib/mysql
 
 CCFLAGS=-g -Wall -O2 -pipe -I/usr/local/include -I$(MYSQLINC) -fno-builtin-log

diff -Naur ./mysql.h msn-proxy-0.7/mysql.h
--- ./mysql.h	2009-01-24 09:58:30.000000000 -0200
+++ msn-proxy-0.7/mysql.h	2009-01-24 10:04:06.000000000 -0200
@@ -22,7 +22,7 @@
 #define MYSQL_H
 
 #ifndef MYSQLCONFDIR
-#define MYSQLCONFDIR		"/usr/local/etc/msn-proxy/mysql"
+#define MYSQLCONFDIR		"/etc/msn-proxy/mysql"
 #endif
 #ifndef MYSQLCONF
 #define MYSQLCONF       	"conf"
@@ -31,7 +31,7 @@
 #define MYSQLTABLE      	"tables"
 #endif
 #ifndef DEFAULT_MYSQL_HOST
-#define DEFAULT_MYSQL_HOST	"/tmp/mysql.sock"
+#define DEFAULT_MYSQL_HOST	"/var/lib/mysql/mysql.sock"
 #endif
 #ifndef DEFAULT_MYSQL_PORT
 #define DEFAULT_MYSQL_PORT	3306

diff -Naur ./mysql/conf msn-proxy-0.7/mysql/conf
--- ./mysql/conf	2008-04-25 18:58:28.000000000 -0300
+++ msn-proxy-0.7/mysql/conf	2008-04-25 18:59:03.000000000 -0300
@@ -1,2 +1,2 @@
 # "host or socket|port (zero for socket)|user|pass|database name"
-/tmp/mysql.sock|0|msn-proxy|secret|msn-proxy
+/var/lib/mysql/mysql.sock|0|msn-proxy|secret|msn-proxy

diff -Naur ./msn-proxy.conf msn-proxy-0.7/msn-proxy.conf
--- ./msn-proxy.conf	2008-04-25 19:02:26.000000000 -0300
+++ msn-proxy-0.7/msn-proxy.conf	2008-04-25 19:02:39.000000000 -0300
@@ -22,7 +22,7 @@
 # set the number of simultaneous messenger clients on your network
 # with this knob
 #
-max_clients=10
+max_clients=100
 
 # default timeouts (in seconds)
 #

diff -Naur ./config.h msn-proxy-0.7/config.h
--- ./config.h	2009-01-24 09:58:43.000000000 -0200
+++ msn-proxy-0.7/config.h	2009-01-24 10:05:39.000000000 -0200
@@ -38,7 +38,7 @@
 #endif
 
 #ifndef DEFAULT_CONFIG_PATH
-#define DEFAULT_CONFIG_PATH	"/usr/local/etc/msn-proxy/"
+#define DEFAULT_CONFIG_PATH	"/etc/msn-proxy/"
 #endif
 
 #ifndef DEFAULT_NS_HOST

diff -Naurh ./mysql.inc.php msn-proxy-0.7/php/mysql.inc.php
--- ./mysql.inc.php	2009-04-16 08:52:28.000000000 -0300
+++ msn-proxy-0.7/php/mysql.inc.php	2009-04-16 08:52:59.000000000 -0300
@@ -19,7 +19,7 @@
  * $Id: mysql.inc.php 102 2009-02-05 18:37:40Z loos-br $
  */
 
-    $host = ":/tmp/mysql.sock";
+    $host = ":/var/lib/mysql/mysql.sock";
     $user = "msn-proxy";
     $pass = "secret";
     $db   = "msn-proxy";