Skip to content

Commit

Permalink
remove SOAP questions from Debconf
Browse files Browse the repository at this point in the history
  • Loading branch information
racke committed Jun 4, 2008
1 parent 8c87716 commit 96645e3
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 35 deletions.
10 changes: 10 additions & 0 deletions README.debian
Expand Up @@ -37,6 +37,16 @@ Standard Demo
For the administration of the standard demo (interchange-cat-standard
package) a secure webserver (https://) is required.

SOAP
====

The Interchange SOAP server is disabled by default. Run the following
commands to activate the SOAP server:

apt-get install libsoap-lite-perl
interchangeconfig SOAP=1
/etc/init.d/interchange restart

Other Notes
===========

Expand Down
4 changes: 3 additions & 1 deletion debian/changelog
Expand Up @@ -10,10 +10,12 @@ interchange (5.6.0-0.1) unstable; urgency=low
- added defaults for database name and database user
* added Dutch translation of Debconf templates (Closes: #474696,
thanks to Bart Cornelis <cobaco@skolelinux.no>)
* Debconf
- use colon style
- remove SOAP questions
* don't care about Apache 1 anymore
* fix error in German translation of Debconf templates
* use type error for wrong Debconf input
* use colon style for Debconf questions
* fixed POD error in interchangeconfig script
* lintian fixes
- fix section in interchangeconfig/te manual pages
Expand Down
13 changes: 1 addition & 12 deletions debian/interchange.config
@@ -1,6 +1,6 @@
#! /bin/sh -e
#
# Copyright 2000,2001,2002,2003,2004,2005,2007 by Stefan Hornburg (Racke) <racke@linuxia.de>
# Copyright 2000,2001,2002,2003,2004,2005,2007,2008 by Stefan Hornburg (Racke) <racke@linuxia.de>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -140,9 +140,6 @@ if [ -f /etc/interchange/settings.cfg ]; then
if [ "$name" = "ROBOTS" ]; then
db_set interchange/robots $FLAG
fi
if [ "$name" = "SOAP" ]; then
db_set interchange/soap $FLAG
fi
if [ "$name" = "TRAFFIC" ]; then
db_set interchange/traffic $value
fi
Expand All @@ -154,14 +151,6 @@ fi
db_input low interchange/full_url || [ $? -eq 30 ]
db_go

# SOAP server
if /usr/bin/perl -MSOAP::Lite -e '' 2>/dev/null; then
db_set interchange/cansoap true
db_input low interchange/soap || [ $? -eq 30 ]
else
db_input low interchange/cansoap || [ $? -eq 30 ]
fi

# Inclusion of robots directives
db_input low interchange/robots || [ $? -eq 30 ]
db_go
Expand Down
10 changes: 1 addition & 9 deletions debian/interchange.postinst
Expand Up @@ -96,18 +96,10 @@ if [ "$RET" = true ]; then
else
FULL_URL=0
fi
db_get interchange/cansoap
SOAP=0
if [ "$RET" = true ]; then
db_get interchange/soap
if [ "$RET" = true ]; then
SOAP=1
fi
fi
db_get interchange/traffic
TRAFFIC="$RET"

/usr/sbin/interchangeconfig FULL_URL=$FULL_URL SOAP=$SOAP TRAFFIC=$RET
/usr/sbin/interchangeconfig FULL_URL=$FULL_URL TRAFFIC=$RET

# Make configuration files owned by the interchange user
chown -R $USER.$GROUP /etc/interchange
Expand Down
13 changes: 0 additions & 13 deletions debian/interchange.templates
Expand Up @@ -84,19 +84,6 @@ _Description: Enable the FullURL directive?
This setting determines if the whole URL is considered while checking for
the corresponding catalog.

Template: interchange/cansoap
Type: note
_Description: SOAP server not available
Because the Perl module SOAP::Lite is not installed, you are unable to run
the Interchange SOAP server. To change this, install the libsoap-lite-perl
Debian package and run interchangeconfig SOAP=1.

Template: interchange/soap
Type: boolean
Default: false
_Description: Enable the SOAP server?
This setting determines if the SOAP server is started or not.

Template: interchange/robots
Type: boolean
Default: true
Expand Down

0 comments on commit 96645e3

Please sign in to comment.