Skip to content
This repository
Browse code

FullURL setting now configurable from debconf

  • Loading branch information...
commit 5cf2faab3d26f6c24995d476a3991387de1a27ed 1 parent 82268cf
Stefan Hornburg (Racke) authored April 04, 2003
22  debian/interchange.cfg
@@ -5,7 +5,7 @@
5 5
 
6 6
 #========================================================================#
7 7
 
8  
-# These settings (DEBUG, TRAFFIC, UI, UI_LOCALE) all affect
  8
+# These settings (DEBUG, FULL_URL, SOAP, TRAFFIC, UI, UI_LOCALE) all affect
9 9
 # other configuration directives below.
10 10
 #
11 11
 # We read them from /etc/interchange/features.cfg resp.
@@ -13,11 +13,13 @@
13 13
 # manually (not recommended), with /usr/sbin/interchangeconfig
14 14
 # or dpkg-reconfigure.
15 15
 #
16  
-# DEBUG:   Set to 1 to send extra debugging info to file 
17  
-#          /var/log/interchange/debug.log and get a dump of global 
18  
-#          and catalog data structures.
19  
-# TRAFFIC: Set to "low", "high", or "rpc" to get different server parameters.
20  
-# UI:      Set to 1 to include back-end administration interface.
  16
+# DEBUG:    Set to 1 to send extra debugging info to file 
  17
+#           /var/log/interchange/debug.log and get a dump of global 
  18
+#           and catalog data structures.
  19
+# FULL_URL: Set to 1 for enabling the FullURL configuration directive.
  20
+# SOAP:		Set to 1 for enabling the SOAP server.
  21
+# TRAFFIC:  Set to "low", "high", or "rpc" to get different server parameters.
  22
+# UI:       Set to 1 to include back-end administration interface.
21 23
 
22 24
 include /usr/lib/interchange/VERSION
23 25
 include /etc/interchange/features.cfg
@@ -35,6 +37,14 @@ include /etc/interchange/settings.cfg
35 37
 
36 38
 #========================================================================#
37 39
 
  40
+# Whether to consider the whole URL for determining the catalog or not
  41
+
  42
+ifdef @FULL_URL
  43
+FullURL Yes
  44
+endif
  45
+
  46
+#========================================================================#
  47
+
38 48
 # Read catalog definitions from two different locations:
39 49
 # - catalogs.cfg is for custom catalogs
40 50
 # - catalog.d/*.cfg is for catalogs installed by Debian packages
6  debian/interchange.config
@@ -131,6 +131,9 @@ if [ -f /etc/interchange/settings.cfg ]; then
131 131
 			if [ "$name" = "DEBUG" ]; then				
132 132
 				db_set interchange/debug $FLAG
133 133
 			fi
  134
+			if [ "$name" = "FULL_URL" ]; then				
  135
+				db_set interchange/full_url $FLAG
  136
+			fi
134 137
 			if [ "$name" = "TRAFFIC" ]; then
135 138
 				db_set interchange/traffic $value
136 139
 			fi
@@ -138,6 +141,9 @@ if [ -f /etc/interchange/settings.cfg ]; then
138 141
 	done
139 142
 fi
140 143
 
  144
+db_input low interchange/full_url || true
  145
+db_go
  146
+
141 147
 db_input medium interchange/traffic || true
142 148
 db_go
143 149
 
8  debian/interchange.postinst
@@ -96,9 +96,15 @@ if [ "$RET" = true ]; then
96 96
 else
97 97
 	DEBUG=0
98 98
 fi
  99
+db_get interchange/full_url
  100
+if [ "$RET" = true ]; then
  101
+	FULL_URL=1
  102
+else
  103
+	FULL_URL=0
  104
+fi
99 105
 db_get interchange/traffic
100 106
 TRAFFIC="$RET"
101  
-/usr/sbin/interchangeconfig DEBUG=$DEBUG TRAFFIC=$RET
  107
+/usr/sbin/interchangeconfig DEBUG=$DEBUG FULL_URL=$FULL_URL TRAFFIC=$RET
102 108
 
103 109
 # Make configuration files owned by the interchange user
104 110
 chown -R $USER.$GROUP /etc/interchange
7  debian/interchange.templates
@@ -80,3 +80,10 @@ Description: Selects set of server parameters
80 80
  You can choose different sets of server parameters. Any store based on
81 81
  the foundation demo will change its behaviour too. If rpc is selected,
82 82
  the Interchange server will run in PreFork mode.
  83
+
  84
+Template: interchange/full_url
  85
+Type: boolean
  86
+Default: false
  87
+Description: Whether to enable the FullURL directive or not
  88
+ This setting determines if the whole URL is considered while checking
  89
+ for the corresponding catalog.
3  debian/interchangeconfig
@@ -29,7 +29,8 @@ my $featconf = '/etc/interchange/features.cfg';
29 29
 my $settingsconf = '/etc/interchange/settings.cfg';
30 30
 
31 31
 # Interchange variables
32  
-my %setvars = (DEBUG => 0, TRAFFIC => 'low', UI_LOCALE => 'en_US');
  32
+my %setvars = (DEBUG => 0, FULL_URL => 0,
  33
+			   TRAFFIC => 'low', UI_LOCALE => 'en_US');
33 34
 my %featvars = (UI => '', USE_FOUNDATION => '');
34 35
 my %skipvars;
35 36
 	

0 notes on commit 5cf2faa

Please sign in to comment.
Something went wrong with that request. Please try again.