From ea4feb02487e4f411f358980366cd12a4b557527 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Fri, 4 Feb 2011 18:00:18 +0100 Subject: maemo: Added Maemo specific patches for strongswan.conf. --- .../debian/patches/configure-logging.patch | 25 ++++++++++++++++++++++ packages/strongswan-maemo/debian/patches/series | 2 ++ .../debian/patches/shorter-timeout.patch | 13 +++++++++++ 3 files changed, 40 insertions(+) create mode 100644 packages/strongswan-maemo/debian/patches/configure-logging.patch create mode 100644 packages/strongswan-maemo/debian/patches/series create mode 100644 packages/strongswan-maemo/debian/patches/shorter-timeout.patch (limited to 'packages') diff --git a/packages/strongswan-maemo/debian/patches/configure-logging.patch b/packages/strongswan-maemo/debian/patches/configure-logging.patch new file mode 100644 index 000000000..f489a2d45 --- /dev/null +++ b/packages/strongswan-maemo/debian/patches/configure-logging.patch @@ -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 index 000000000..7f11cae60 --- /dev/null +++ b/packages/strongswan-maemo/debian/patches/series @@ -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 index 000000000..8c90dbc3a --- /dev/null +++ b/packages/strongswan-maemo/debian/patches/shorter-timeout.patch @@ -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 -- cgit v1.2.3