Add strongswan (#1330)
[openwrt-10.03/.git] / package / strongswan / patches / 300-openwrt.patch
1 diff -ruN strongswan-2.8.1-orig/Makefile.inc strongswan-2.8.1/Makefile.inc
2 --- strongswan-2.8.1-orig/Makefile.inc  2007-01-11 16:42:11.000000000 -0500
3 +++ strongswan-2.8.1/Makefile.inc       2007-01-17 02:42:25.961297797 -0500
4 @@ -123,7 +123,7 @@
5  # With a non-null DESTDIR, INC_RCDEFAULT will be used unless one of the
6  # INC_RCDIRS directories has been pre-created under DESTDIR.
7  INC_RCDIRS=/etc/rc.d/init.d /etc/rc.d /etc/init.d /sbin/init.d
8 -INC_RCDEFAULT=/etc/rc.d/init.d
9 +INC_RCDEFAULT=/etc/init.d
10  
11  # RCDIR is where boot/shutdown scripts go; FINALRCDIR is where they think
12  # will finally be (so utils/Makefile can create a symlink in BINDIR to the
13 diff -ruN strongswan-2.8.1-orig/programs/showhostkey/showhostkey.in strongswan-2.8.1/programs/showhostkey/showhostkey.in
14 --- strongswan-2.8.1-orig/programs/showhostkey/showhostkey.in   2004-03-15 15:35:31.000000000 -0500
15 +++ strongswan-2.8.1/programs/showhostkey/showhostkey.in        2007-01-17 00:02:35.433150839 -0500
16 @@ -62,7 +62,7 @@
17         exit 1
18  fi
19  
20 -host="`hostname --fqdn`"
21 +host="`cat /proc/sys/kernel/hostname`"
22  
23  awk '  BEGIN {
24                 inkey = 0