summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Jones <ashmodai@gentoo.org>2002-07-05 14:00:32 +0000
committerMike Jones <ashmodai@gentoo.org>2002-07-05 14:00:32 +0000
commit2a6c94f45cec44bdeb53fa570a132a286cf0fe3d (patch)
treecb8c8bddabf1d232a59d484da3b6188862b5e515 /net-misc/freeswan
parentdigested (diff)
downloadgentoo-2-2a6c94f45cec44bdeb53fa570a132a286cf0fe3d.tar.gz
gentoo-2-2a6c94f45cec44bdeb53fa570a132a286cf0fe3d.tar.bz2
gentoo-2-2a6c94f45cec44bdeb53fa570a132a286cf0fe3d.zip
Added the cflags patch.
Diffstat (limited to 'net-misc/freeswan')
-rw-r--r--net-misc/freeswan/files/freeswan-gentoo-cflags.patch63
1 files changed, 63 insertions, 0 deletions
diff --git a/net-misc/freeswan/files/freeswan-gentoo-cflags.patch b/net-misc/freeswan/files/freeswan-gentoo-cflags.patch
new file mode 100644
index 000000000000..c65b07cc5101
--- /dev/null
+++ b/net-misc/freeswan/files/freeswan-gentoo-cflags.patch
@@ -0,0 +1,63 @@
+diff -ubr freeswan-1.98b/libdes/Makefile freeswan-gentoo/libdes/Makefile
+--- freeswan-1.98b/libdes/Makefile Mon Apr 1 16:48:03 2002
++++ freeswan-gentoo/libdes/Makefile Thu Jul 4 14:56:38 2002
+@@ -52,7 +52,7 @@
+ # normally overridden by FreeS/WAN Makefiles anyway
+ CFLAG= -O3 -fomit-frame-pointer
+
+-CFLAGS=$(OPTS) $(CFLAG)
++CFLAGS=$(OPTS) $(CFLAG) $(USERCOMPILE)
+ CPP=$(CC) -E
+ AS=as
+
+@@ -63,10 +63,10 @@
+ #DES_ENC=asm/dx86-sol.o asm/yx86-sol.o # solaris format x86
+ #DES_ENC=asm/dx86bsdi.o asm/yx86basi.o # bsdi format x86
+
+-LIBDIR=${DESTDIR}/usr/local/lib
+-BINDIR=${DESTDIR}/usr/local/bin
+-INCDIR=${DESTDIR}/usr/local/include
+-MANDIR=${DESTDIR}/usr/local/man
++LIBDIR=${DESTDIR}/usr/lib
++BINDIR=${DESTDIR}/usr/bin
++INCDIR=${DESTDIR}/usr/include
++MANDIR=${DESTDIR}/usr/share/man
+ MAN1=1
+ MAN3=3
+ SHELL=/bin/sh
+diff -ubr freeswan-1.98b/pluto/Makefile freeswan-gentoo/pluto/Makefile
+--- freeswan-1.98b/pluto/Makefile Mon Jun 3 21:28:33 2002
++++ freeswan-gentoo/pluto/Makefile Thu Jul 4 14:54:35 2002
+@@ -80,7 +80,7 @@
+ CPPFLAGS = $(HDRDIRS) $(DEFINES) \
+ -DSHARED_SECRETS_FILE=\"${FINALCONFDIR}/ipsec.secrets\"
+
+-ALLFLAGS = $(CPPFLAGS) $(CFLAGS)
++ALLFLAGS = $(CPPFLAGS) $(CFLAGS) $(USERCOMPILE)
+
+ # libefence is a free memory allocation debugger
+ # Solaris 2 needs -lsocket -lnsl
+diff -ubr freeswan-1.98b/utils/showhostkey freeswan-gentoo/utils/showhostkey
+--- freeswan-1.98b/utils/showhostkey Wed Jun 26 15:46:54 2002
++++ freeswan-gentoo/utils/showhostkey Thu Jul 4 14:58:03 2002
+@@ -17,7 +17,7 @@
+ me="ipsec showhostkey"
+ usage="Usage: $me [--file secrets] [--left] [--right] [--txt gateway] [--id id]"
+
+-file=/etc/ipsec.secrets
++file=/etc/ipsec/ipsec.secrets
+ fmt="dns"
+ gw=
+ id=
+diff -ubr freeswan-1.98b/zlib/Makefile freeswan-gentoo/zlib/Makefile
+--- freeswan-1.98b/zlib/Makefile Wed Mar 27 18:34:35 2002
++++ freeswan-gentoo/zlib/Makefile Thu Jul 4 14:54:35 2002
+@@ -29,7 +29,7 @@
+ L_TARGET := zlib.a
+ obj-y := adler32.o deflate.o infblock.o infcodes.o inffast.o inflate.o inftrees.o infutil.o trees.o zutil.o
+
+-EXTRA_CFLAGS += $(KLIPSCOMPILE)
++EXTRA_CFLAGS += $(KLIPSCOMPILE) $(USERCOMPILE)
+
+ EXTRA_CFLAGS += -Wall
+ #EXTRA_CFLAGS += -Wconversion