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.
Le mardi 03 avril 2007 à 23:26 +0200, Olivier Berger a écrit :
> Le mardi 03 avril 2007 à 22:54 +0200, Stefan Hornburg (Racke) a écrit :
> > Olivier Berger wrote:
> > > Package: sympa
> > > Followup-For: Bug #411983
> > >
> > > Here's a patch I'm proposing on the package, to help configure the
> > > settings in the case the SOAP interface needs to be used.
> > >
> > > Note I've also added small corrections in the template translation to
> > > french and small other bits.
> > >
> > > I've also changed some of the suggests dependancies in the control file
> > > to help configure in the case apache2 is used for modcgi.
> > >
> > > Hope this helps.
> >
> > Thanks for your patch, Olivier. Please do not an NMU at this point. I'll
> > go through all sympa bugs after etch is released, which should only a few
> > days away.
>
> Sure.
>
> The NMU in the changelog is just something I did locally... btw, the
> corresponding generated package is available from :
> http://www-public.int-evry.fr/~berger_o/debian/sympa_5.2.3-1.3_i386.deb
>
> 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/sympa-5.2.3/debian/config
--- sympa-orig/sympa-5.2.3/debian/config 2007-04-03 22:32:37.000000000 +0200
+++ sympa/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-orig/sympa-5.2.3/debian/control sympa/sympa-5.2.3/debian/control
--- sympa-orig/sympa-5.2.3/debian/control 2007-04-03 22:32:37.000000000 +0200
+++ sympa/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-orig/sympa-5.2.3/debian/postinst sympa/sympa-5.2.3/debian/postinst
--- sympa-orig/sympa-5.2.3/debian/postinst 2007-04-03 22:32:37.000000000 +0200
+++ sympa/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-orig/sympa-5.2.3/debian/po/fr.po sympa/sympa-5.2.3/debian/po/fr.po
--- sympa-orig/sympa-5.2.3/debian/po/fr.po 2007-04-03 22:32:37.000000000 +0200
+++ sympa/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
--- sympa-orig/sympa-5.2.3/debian/conf/apache-soap 2007-04-25 19:26:22.000000000 +0200
+++ sympa/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,