Added multipath routing to quagga, and close #290
[openwrt.git] / openwrt / package / vpnc / patches / 01-cross.patch
1 diff -Nur vpnc-0.3.3/Makefile vpnc-0.3.3.patched/Makefile
2 --- vpnc-0.3.3/Makefile 2005-05-01 22:30:35.000000000 +0200
3 +++ vpnc-0.3.3.patched/Makefile 2005-12-23 23:43:55.222055250 +0100
4 @@ -17,31 +17,32 @@
5 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
6
7 DESTDIR=
8 -PREFIX=/usr/local
9 +PREFIX=/usr
10 ETCDIR=/etc/vpnc
11 SBINDIR=$(PREFIX)/sbin
12 MANDIR=$(PREFIX)/share/man
13
14 CC=gcc
15 -CFLAGS=-W -Wall -O -g '-DVERSION="$(shell cat VERSION)"' $(shell libgcrypt-config --cflags)
16 -LDFLAGS=-g $(shell libgcrypt-config --libs)
17 +CFLAGS=-W -Wall -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include $(OFLAGS) '-DVERSION="$(shell cat VERSION)"'
18 +LDFLAGS=-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib -lgcrypt -lgpg-error
19
20 -ifeq ($(shell uname -s), Linux)
21 +OS=$(shell uname -s)
22 +ifeq ($(OS), Linux)
23 SYSDEP=sysdep-linux.o
24 endif
25 -ifeq ($(shell uname -s), FreeBSD)
26 +ifeq ($(OS), FreeBSD)
27 CFLAGS += -DSOCKADDR_IN_SIN_LEN -DHAVE_SA_LEN
28 SYSDEP=sysdep-bsd.o
29 endif
30 -ifeq ($(shell uname -s), NetBSD)
31 +ifeq ($(OS), NetBSD)
32 CFLAGS += -DSOCKADDR_IN_SIN_LEN -DHAVE_SA_LEN
33 SYSDEP=sysdep-bsd.o
34 endif
35 -ifeq ($(shell uname -s), OpenBSD)
36 +ifeq ($(OS), OpenBSD)
37 CFLAGS += -DSOCKADDR_IN_SIN_LEN -DHAVE_SA_LEN -DNEED_IPLEN_FIX -DNEW_TUN
38 SYSDEP=sysdep-bsd.o
39 endif
40 -ifeq ($(shell uname -s), SunOS)
41 +ifeq ($(OS), SunOS)
42 CFLAGS += -DNEED_IPLEN_FIX
43 LDFLAGS += -lnsl -lresolv -lsocket
44 SYSDEP=sysdep-svr4.o
This page took 0.045239 seconds and 5 git commands to generate.