File anope-1.7.19_pid_path.patch of Package anope

http://viewcvs.gentoo.org/viewcvs.py/*checkout*/gentoo-x86/net-irc/anope/files/pid-patch.diff?rev=1.1'

Index: data/example.conf
===================================================================
--- data/example.conf.orig
+++ data/example.conf
@@ -285,30 +285,30 @@ HostServName	"HostServ"  "vHost Server"
 # PIDFile <filename>  [REQUIRED]
 #     Specifies the name of the file containing Services' process ID.
 
-PIDFile     services.pid
+PIDFile     /var/run/anope/services.pid
 
 # MOTDFile <filename>  [REQUIRED]
 #     Specifies the name of the Message of the Day file.
 
-MOTDFile    services.motd
+MOTDFile    /etc/anope/services.motd
 
 # ...DB <filename>  [REQUIRED]
 #     Specifies the filenames for the various Services subsystems' databases.
 
-NickServDB  nick.db
-#PreNickServDB prenick.db
-ChanServDB  chan.db
-BotServDB   bot.db
-OperServDB  oper.db
-NewsDB      news.db
-ExceptionDB exception.db
-HostServDB  hosts.db
+NickServDB  /var/lib/anope/nick.db
+PreNickServDB /var/lib/anope/prenick.db
+ChanServDB  /var/lib/anope/chan.db
+BotServDB   /var/lib/anope/bot.db
+OperServDB  /var/lib/anope/oper.db
+NewsDB      /var/lib/anope/news.db
+ExceptionDB /var/lib/anope/exception.db
+HostServDB  /var/lib/anope/hosts.db
 
 # There is no more databases for AKILLs. This setting is kept to allow
 # you to import old AKILL database, and is optional. (If not given,
 # Services will look for a file named akill.db.)
 
-# AutokillDB    akill.db
+AutokillDB    /var/lib/anope/akill.db
 
 ###########################################################################
 #
@@ -1478,10 +1478,10 @@ OSOpersOnly
 #     MysqlPort defines the Mysql TCP port
 #
 #MysqlHost "localhost"
-#MysqlUser "Anonymous"
-#MysqlPass ""
+#MysqlUser "anope"
+#MysqlPass "changeme"
 #MysqlName "anope"
-#MysqlSock "/tmp/mysql.sock"
+#MysqlSock "/var/lib/mysql/mysql.sock"
 #MysqlPort 3306
 
 # MysqlSecure "<des>|<md5>|<sha>|<key>" [OPTIONAL]
@@ -1564,7 +1564,7 @@ ModuleDelayedAutoload "cs_appendtopic cs
 # Use the given filename as database for the oper information lines.
 # If not given, the default of "os_info.db" will be used.
 #
-#OSInfoDBName "os_info.db"
+OSInfoDBName "/var/lib/anope/os_info.db"
 
 # HSRequestMemo... [OPTIONAL]
 # Module: hs_request
@@ -1585,6 +1585,6 @@ ModuleDelayedAutoload "cs_appendtopic cs
 # Use the given filename as database for the vhost requests. If not given,
 # the default of "hs_request.db" will be used.
 #
-#HSRequestDBName "hs_request.db"
+HSRequestDBName "/var/lib/anope/hs_request.db"
 
 #EOF
Index: src/bin/anoperc.in
===================================================================
--- src/bin/anoperc.in.orig
+++ src/bin/anoperc.in
@@ -15,9 +15,9 @@
 
 
 
-ANOPEPID="@DATDEST@/services.pid"
+ANOPEPID="/var/run/anope/services.pid"
 ANOPROG="@BINDEST@/services"
-LOG="@DATDEST@/logs/"
+LOG="/var/log/anope/"
 ARCVERSION="1.2"
 
 isAnopeRunning () {
Index: src/log.c
===================================================================
--- src/log.c.orig
+++ src/log.c
@@ -34,7 +34,7 @@ static int get_logname(char *name, int c
 
     /* fix bug 577 */
     strftime(timestamp, sizeof(timestamp), "%Y%m%d", tm);
-    snprintf(name, count, "logs/%s.%s", log_filename, timestamp);
+    snprintf(name, count, "/var/log/anope/%s.%s", log_filename, timestamp);
     curday = tm->tm_yday;
 
     return 1;
Index: include/config.h
===================================================================
--- include/config.h.orig
+++ include/config.h
@@ -23,7 +23,7 @@
 /******* General configuration *******/
 
 /* Name of configuration file (in Services directory) */
-#define SERVICES_CONF	"services.conf"
+#define SERVICES_CONF	"/etc/anope/services.conf"
 
 /* Name of log file (in Services directory) */
 #define LOG_FILENAME	"services.log"
openSUSE Build Service is sponsored by