Le mercredi 25 avril 2007 à 19:52 +0200, Olivier Berger a écrit :
> Hi.
>
> I've made a new version of that patch, for latest testing source
> package, and in order to have soap interface activated when using
> apache2's mod-fcgid (see #420905), which hopefully will work for
> sympasoap.
>
> Hope this helps,
>
> Best regards.
>
Oops... that patch was obviously wrong. I sent you a non-finished
version.
Here's a proper one. Sorry.
Best regards,
--
Olivier BERGER <[EMAIL PROTECTED]> (ATTENTION : new address)
Ingénieur Recherche - Dept INF
GET/INT at Evry (http://www.int-edu.eu/)
OpenPGP-Id: 1024D/6B829EEC
diff -irbwu sympa-orig/sympa-5.2.3/debian/config sympa-5.2.3/debian/config
--- sympa-5.2.3.orig/debian/config 2007-04-03 22:32:37.000000000 +0200
+++ sympa-5.2.3/debian/config 2007-04-03 22:26:56.000000000 +0200
@@ -266,6 +268,9 @@
while [ "$pass_ok" != "true" ]; do
# Ask for password
+ db_get sympa/db_user
+ db_subst sympa/db_passwd user "$RET"
+
db_input critical sympa/db_passwd || [ $? -eq 30 ]
db_go
@@ -365,8 +370,10 @@
db_get sympa/use_soap
use_soap="$RET"
- if [ use_soap="true" ]; then
+ if [ "$use_soap" = "true" ]; then
+
soap_url="http://${host}/sympasoap"
+
if [ -f /etc/sympa/sympa.conf ]; then
# Get the soap url from sympa.conf
orig_soap_url=`perl -nle 'if (/^\s*soap_url\s+(\d)$/) {print $1;}' /etc/sympa/sympa.conf`
@@ -376,13 +383,13 @@
else
soap_url="$orig_soap_url";
fi
+ fi
db_set sympa/soap_url "$soap_url"
db_input medium sympa/soap_url || [ $? -eq 30 ]
db_go
fi
- fi
db_input high wwsympa/webserver_restart || [ $? -eq 30 ]
db_go
diff -irbwu sympa-5.2.3.orig/debian/control sympa-5.2.3/debian/control
--- sympa-5.2.3.orig/debian/control 2007-04-03 22:32:37.000000000 +0200
+++ sympa-5.2.3/debian/control 2007-04-03 21:54:34.000000000 +0200
@@ -12,7 +12,7 @@
Provides: wwsympa
Conflicts: wwsympa
Recommends: logrotate, doc-base
-Suggests: mysql-server | postgresql, apache | apache-ssl | httpd, openssl (>= 0.9.5a), libapache-mod-fastcgi
+Suggests: mysql-server | postgresql, apache | apache-ssl | httpd, openssl (>= 0.9.5a), libapache2-mod-fcgid, libsoap-lite-perl
Description: Modern mailing list manager
Sympa is a scalable and highly customizable modern mailing list manager
which can cope with big lists (200,000 subscribers).
diff -irbwu sympa-5.2.3.orig/debian/postinst sympa-5.2.3/debian/postinst
--- sympa-5.2.3.orig/debian/postinst 2007-04-03 22:32:37.000000000 +0200
+++ sympa-5.2.3/debian/postinst 2007-04-03 22:27:00.000000000 +0200
@@ -457,6 +459,11 @@
db_get sympa/soap_url
soap_url="$RET"
+ if ! grep -q soap_url /etc/sympa/sympa.conf
+ then
+ echo >> /etc/sympa/sympa.conf
+ echo "soap_url http://mykerinos/sympasoap" >> /etc/sympa/sympa.conf
+ fi
perl -i -pe "s%^(soap_url\s+).*%soap_url ${soap_url}%" /etc/sympa/sympa.conf
# Tell Debconf SOAP has been configured
diff -irbwu sympa-5.2.3.orig/debian/po/fr.po sympa-5.2.3/debian/po/fr.po
--- sympa-5.2.3.orig/debian/po/fr.po 2007-04-03 22:32:37.000000000 +0200
+++ sympa-5.2.3/debian/po/fr.po 2007-04-03 19:00:37.000000000 +0200
@@ -664,8 +664,7 @@
msgid ""
"Once installed, you will be able to access the SOAP server at the following "
"address."
-msgstr ""
-"Une fois installé, vous pouvez accéder à WWSympa à l'adresse suivante :"
+msgstr "Une fois installé, vous pouvez accéder au serveur SOAP à l'adresse suivante :"
#. Type: boolean
#. Description
diff -irbwu sympa-5.2.3.orig/debian/conf/apache-soap sympa-5.2.3/debian/conf/apache-soap
--- sympa-5.2.3.orig/debian/conf/apache-soap 2007-04-25 19:26:22.000000000 +0200
+++ sympa-5.2.3/debian/conf/apache-soap 2007-04-25 19:26:34.000000000 +0200
@@ -2,7 +2,7 @@
ScriptAlias /sympasoap /usr/lib/cgi-bin/sympa/sympa_soap_server.fcgi
-<Location /sympasoap>
- SetHandler fastcgi-script
-</Location>
+#<Location /sympasoap>
+# SetHandler fastcgi-script
+#</Location>
diff -Naur sympa-5.2.3.orig/debian/changelog sympa-5.2.3/debian/changelog
--- sympa-5.2.3.orig/debian/changelog 2007-04-25 16:36:18.000000000 +0200
+++ sympa-5.2.3/debian/changelog 2007-04-25 16:37:17.000000000 +0200
@@ -1,3 +1,9 @@
+sympa (5.2.3-2.1) unstable; urgency=low
+
+ * my NMU : fix #411983
+
+ -- Olivier Berger <[EMAIL PROTECTED]> Wed, 25 Apr 2007 15:51:27 +0200
+
sympa (5.2.3-2) unstable; urgency=medium
* fixed incorrect typography in debconf templates (Closes: #413623,