maemo: Added Maemo specific patches for strongswan.conf.
authorTobias Brunner <tobias@strongswan.org>
Fri, 4 Feb 2011 17:00:18 +0000 (18:00 +0100)
committerTobias Brunner <tobias@strongswan.org>
Fri, 4 Feb 2011 17:02:49 +0000 (18:02 +0100)
packages/strongswan-maemo/debian/patches/configure-logging.patch [new file with mode: 0644]
packages/strongswan-maemo/debian/patches/series [new file with mode: 0644]
packages/strongswan-maemo/debian/patches/shorter-timeout.patch [new file with mode: 0644]

diff --git a/packages/strongswan-maemo/debian/patches/configure-logging.patch b/packages/strongswan-maemo/debian/patches/configure-logging.patch
new file mode 100644 (file)
index 0000000..f489a2d
--- /dev/null
@@ -0,0 +1,25 @@
+Adding maemo specific logger config (as there is no syslog daemon by default).
+--- a/src/strongswan.conf
++++ b/src/strongswan.conf
+@@ -5,6 +5,21 @@
+       retransmit_timeout = 3.0
+       retransmit_base = 1.4
++      # maemo specific logging
++      filelog {
++              /var/log/charon.log {
++                      time_format = %b %e %T
++                      append = no
++                      default = 1
++                      flush_line = yes
++              }
++      }
++      # there is no syslog daemon installed by default
++      syslog {
++              daemon {
++              }
++      }
++
+       # number of worker threads in charon
+       threads = 16
diff --git a/packages/strongswan-maemo/debian/patches/series b/packages/strongswan-maemo/debian/patches/series
new file mode 100644 (file)
index 0000000..7f11cae
--- /dev/null
@@ -0,0 +1,2 @@
+shorter-timeout.patch
+configure-logging.patch
diff --git a/packages/strongswan-maemo/debian/patches/shorter-timeout.patch b/packages/strongswan-maemo/debian/patches/shorter-timeout.patch
new file mode 100644 (file)
index 0000000..8c90dbc
--- /dev/null
@@ -0,0 +1,13 @@
+Make timeouts shorter which is more appropriate for client only use.
+--- a/src/strongswan.conf
++++ b/src/strongswan.conf
+@@ -1,6 +1,9 @@
+ # strongswan.conf - strongSwan configuration file
+ charon {
++      # shorter timeouts (defaults are 4.0/1.8)
++      retransmit_timeout = 3.0
++      retransmit_base = 1.4
+       # number of worker threads in charon
+       threads = 16