# HG changeset patch # User Michael Schloh von Bennewitz # Date 1348265130 -7200 # Node ID 005bcc1c949bce5190300a78c3eff86744c566f8 # Parent cfb237fad7c7be00e2bb0d1fd60833b7b71b9716 Replace missing perl-dbi dependencies and add path to mysql(1) client. diff -r cfb237fad7c7 -r 005bcc1c949b opensips/opensips.patch.ctlrc --- a/opensips/opensips.patch.ctlrc Fri Sep 21 22:47:25 2012 +0200 +++ b/opensips/opensips.patch.ctlrc Sat Sep 22 00:05:30 2012 +0200 @@ -2,7 +2,7 @@ diff -Nau scripts/opensipsctlrc.orig scripts/opensipsctlrc --- scripts/opensipsctlrc.orig 2011-08-24 10:12:07.000000000 +0200 +++ scripts/opensipsctlrc 2012-03-22 19:04:38.092856433 +0100 -@@ -1,22 +1,16 @@ +@@ -1,22 +1,19 @@ -# $Id: opensipsctlrc 9049 2012-05-24 14:03:31Z osas $ -# -# The OpenSIPS configuration file for the control tools. @@ -29,10 +29,13 @@ +## Database type: MYSQL, PGSQL, ORACLE, DB_BERKELEY, or DBTEXT; +## by default none is loaded. Use opensipsdbctl to setup a database. +DBENGINE=DBTEXT ++ ++## Path to MySQL client ++MYSQL=@l_prefix@/bin/mysql ## database host # DBHOST=localhost -@@ -25,16 +19,22 @@ +@@ -25,16 +22,22 @@ # DBNAME=opensips # database path used by dbtext or db_berkeley @@ -59,7 +62,7 @@ # user name column # USERCOL="username" -@@ -43,7 +43,7 @@ +@@ -43,7 +46,7 @@ # SQL definitions # If you change this definitions here, then you must change them # in db/schema/entities.xml too. @@ -68,7 +71,7 @@ # FOREVER="2020-05-28 21:32:15" # DEFAULT_ALIASES_EXPIRES=$FOREVER -@@ -97,13 +97,16 @@ +@@ -97,13 +100,16 @@ ## control engine: FIFO or UNIXSOCK ## - default FIFO @@ -88,7 +91,7 @@ # MI_CONNECTOR=UNIXSOCK:/tmp/opensips.sock # MI_CONNECTOR=UDP:192.168.2.133:8000 # MI_CONNECTOR=XMLRPC:192.168.2.133:8000 -@@ -120,15 +123,16 @@ +@@ -120,15 +126,16 @@ ## do (1) or don't (0) store plaintext passwords ## in the subscriber table - default '1' @@ -112,7 +115,7 @@ diff -Nau scripts/osipsconsolerc.orig scripts/osipsconsolerc --- scripts/osipsconsolerc.orig 2011-07-12 18:42:53.000000000 +0200 +++ scripts/osipsconsolerc 2012-03-22 19:04:45.670384106 +0100 -@@ -1,51 +1,52 @@ +@@ -1,51 +1,55 @@ -# $Id: osicpsconsolerc -# -# The OpenSIPS configuration file for the control tools. @@ -127,14 +130,17 @@ ## your SIP domain -# SIP_DOMAIN=opensips.org +# SIP_DOMAIN=name.host.tld ++ ++## Database type: MYSQL, PGSQL, ORACLE, DB_BERKELEY, or DBTEXT; ++## by default none is loaded. Use opensipsdbctl to setup a database. ++DBENGINE=DBTEXT -## database type: MYSQL, PGSQL, ORACLE, DB_BERKELEY, or DBTEXT, by default none is loaded -# If you want to setup a database with opensipsdbctl, you must at least specify -# this parameter. -# DBENGINE=MYSQL -+## Database type: MYSQL, PGSQL, ORACLE, DB_BERKELEY, or DBTEXT; -+## by default none is loaded. Use opensipsdbctl to setup a database. -+DBENGINE=DBTEXT ++## Path to MySQL client ++MYSQL=@l_prefix@/bin/mysql ## database host # DBHOST=localhost @@ -188,7 +194,7 @@ # Describe what additional tables to install. Valid values for the variables -@@ -54,14 +55,15 @@ +@@ -54,14 +58,15 @@ # # Define what module tables should be installed. @@ -210,7 +216,7 @@ # opensips extra modules # EXTRA_MODULES="imc cpl siptrace domainpolicy carrierroute userblacklist" -@@ -69,10 +71,10 @@ +@@ -69,10 +74,10 @@ ## type of aliases used: DB - database aliases; UL - usrloc aliases ## - default: none @@ -223,7 +229,7 @@ # MI_CONNECTOR=UNIXSOCK:/tmp/opensips.sock # MI_CONNECTOR=UDP:192.168.2.133:8000 # MI_CONNECTOR=XMLRPC:192.168.2.133:8000 -@@ -80,22 +82,18 @@ +@@ -80,22 +85,18 @@ ## check ACL names; default on (1); off (0) # VERIFY_ACL=1 diff -r cfb237fad7c7 -r 005bcc1c949b opensips/opensips.spec --- a/opensips/opensips.spec Fri Sep 21 22:47:25 2012 +0200 +++ b/opensips/opensips.spec Sat Sep 22 00:05:30 2012 +0200 @@ -119,15 +119,15 @@ %endif %if "%{with_mysql}" == "yes" BuildPreReq: mysql -PreReq: mysql +PreReq: mysql, perl-dbi::with_mysql %endif %if "%{with_pgsql}" == "yes" BuildPreReq: postgresql -PreReq: postgresql +PreReq: postgresql, perl-dbi::with_pgsql %endif %if "%{with_odbc}" == "yes" BuildPreReq: unixodbc -PreReq: unixodbc +PreReq: unixodbc, perl-dbi::with_odbc %endif %if "%{with_geoip}" == "yes" BuildPreReq: geoip