File Makefile.patch of Package xl2tpd
--- Makefile.orig 2010-03-11 12:36:18.000000000 +0100
+++ Makefile 2010-03-11 13:14:42.000000000 +0100
@@ -47,13 +47,13 @@
# trust pppd. This work around will be removed in the near future.
# DFLAGS= -g -DDEBUG_HELLO -DDEBUG_CLOSE -DDEBUG_FLOW -DDEBUG_PAYLOAD -DDEBUG_CONTROL -DDEBUG_CONTROL_XMIT -DDEBUG_FLOW_MORE -DDEBUG_MAGIC -DDEBUG_ENTROPY -DDEBUG_HIDDEN -DDEBUG_PPPD -DDEBUG_AAA -DDEBUG_FILE -DDEBUG_FLOW -DDEBUG_HELLO -DDEBUG_CLOSE -DDEBUG_ZLB -DDEBUG_AUTH
-DFLAGS?= -DDEBUG_PPPD -DTRUST_PPPD_TO_DIE
+#DFLAGS?= -DDEBUG_PPPD -DTRUST_PPPD_TO_DIE
# Uncomment the next line for Linux. KERNELSRC is needed for if_pppol2tp.h,
# but we use a local copy if we don't find it.
#
-#KERNELSRC=/lib/modules/`uname -r`/build/
-KERNELSRC?=./linux
+KERNELSRC=/lib/modules/`uname -r`/build/
+#KERNELSRC?=./linux
OSFLAGS?= -DLINUX -I$(KERNELSRC)/include/
#
# Uncomment the following to use the kernel interface under Linux
@@ -62,7 +62,7 @@ OSFLAGS?= -DLINUX -I$(KERNELSRC)/include
# are packages seperately (eg kernel-headers on Fedora)
# Note: 2.6.23+ support still needs some changes in the xl2tpd source
#
-#OSFLAGS+= -DUSE_KERNEL
+OSFLAGS+= -DUSE_KERNEL
#
#
# Uncomment the next line for FreeBSD
@@ -97,7 +97,7 @@ SRCS=${OBJS:.o=.c} ${HDRS}
#LIBS= $(OSLIBS) # -lefence # efence for malloc checking
EXEC=xl2tpd
-PREFIX?=/usr/local
+PREFIX?=/usr
SBINDIR?=$(DESTDIR)${PREFIX}/sbin
BINDIR?=$(DESTDIR)${PREFIX}/bin
MANDIR?=$(DESTDIR)${PREFIX}/share/man
@@ -113,7 +113,7 @@ $(EXEC): $(OBJS) $(HDRS)
pfc:
$(CC) $(CFLAGS) -c contrib/pfc.c
- $(CC) $(LDFLAGS) -lpcap $(LDLIBS) -o pfc pfc.o
+ $(CC) $(LDFLAGS) $(LDLIBS) -o pfc pfc.o -lpcap
romfs:
$(ROMFSINST) /bin/$(EXEC)