From a73f60abb870bf94498eb1147f97b7b67b036f32 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Fri, 10 Feb 2012 11:01:42 +0100 Subject: [PATCH] strongswan: Customize the welcome banner. References: http://forum.ipfire.org/index.php/topic,5993.0.html http://forum.ipfire.org/index.php/topic,3329.0.html --- config/rootfiles/core/57/filelists/strongswan | 1 + lfs/strongswan | 4 ++++ 2 files changed, 5 insertions(+) create mode 120000 config/rootfiles/core/57/filelists/strongswan diff --git a/config/rootfiles/core/57/filelists/strongswan b/config/rootfiles/core/57/filelists/strongswan new file mode 120000 index 000000000..90c727e26 --- /dev/null +++ b/config/rootfiles/core/57/filelists/strongswan @@ -0,0 +1 @@ +../../../common/strongswan \ No newline at end of file diff --git a/lfs/strongswan b/lfs/strongswan index e2da4754a..7370be9e5 100644 --- a/lfs/strongswan +++ b/lfs/strongswan @@ -73,6 +73,10 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/strongswan-4.5.3_ipfire.patch + # Customize the welcome banner. + sed -i $(DIR_APP)/src/pluto/modecfg.c \ + -e 's/^#define.*DEFAULT_UNITY_BANNER.*/#define DEFAULT_UNITY_BANNER "Welcome to IPFire - An Open Source Firewall Solution.\\n"/' + cd $(DIR_APP) && ./configure --prefix="/usr" --sysconfdir="/etc" \ --enable-cisco-quirks \ --enable-curl \ -- 2.39.2