]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
strongswan: Customize the welcome banner.
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 10 Feb 2012 10:01:42 +0000 (11:01 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 10 Feb 2012 10:01:42 +0000 (11:01 +0100)
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 [new symlink]
lfs/strongswan

diff --git a/config/rootfiles/core/57/filelists/strongswan b/config/rootfiles/core/57/filelists/strongswan
new file mode 120000 (symlink)
index 0000000..90c727e
--- /dev/null
@@ -0,0 +1 @@
+../../../common/strongswan
\ No newline at end of file
index e2da4754a525306b1626d01d3931fda0946d618b..7370be9e5aa4d07cac54b53dbfdd23279cf8951e 100644 (file)
@@ -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 \