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
5 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
11 SBINDIR=$(PREFIX)/sbin
12 MANDIR=$(PREFIX)/share/man
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
20 -ifeq ($(shell uname -s), Linux)
25 -ifeq ($(shell uname -s), FreeBSD)
26 +ifeq ($(OS), FreeBSD)
27 CFLAGS += -DSOCKADDR_IN_SIN_LEN -DHAVE_SA_LEN
30 -ifeq ($(shell uname -s), NetBSD)
32 CFLAGS += -DSOCKADDR_IN_SIN_LEN -DHAVE_SA_LEN
35 -ifeq ($(shell uname -s), OpenBSD)
36 +ifeq ($(OS), OpenBSD)
37 CFLAGS += -DSOCKADDR_IN_SIN_LEN -DHAVE_SA_LEN -DNEED_IPLEN_FIX -DNEW_TUN
40 -ifeq ($(shell uname -s), SunOS)
42 CFLAGS += -DNEED_IPLEN_FIX
43 LDFLAGS += -lnsl -lresolv -lsocket