summaryrefslogtreecommitdiffstats
path: root/network/xl2tpd/makefile.patch
diff options
context:
space:
mode:
author gshep <shepelev.georgy@googlemail.com>2010-04-16 22:05:37 -0400
committer David Somero <xgizzmo@slackbuilds.org>2010-05-15 10:38:11 +0200
commit89561721635655f34b446a885bdd0f2ede45bc95 (patch)
treece224939a76e9badab8dfab42fac75c1f275e7a5 /network/xl2tpd/makefile.patch
parentd09ff52f2a799879c552bbdc401dea4b5f99bda3 (diff)
downloadslackbuilds-89561721635655f34b446a885bdd0f2ede45bc95.tar.gz
slackbuilds-89561721635655f34b446a885bdd0f2ede45bc95.tar.xz
network/xl2tpd: Added (L2TP daemon)
Diffstat (limited to 'network/xl2tpd/makefile.patch')
-rw-r--r--network/xl2tpd/makefile.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/network/xl2tpd/makefile.patch b/network/xl2tpd/makefile.patch
new file mode 100644
index 0000000000..5e46047ea4
--- /dev/null
+++ b/network/xl2tpd/makefile.patch
@@ -0,0 +1,44 @@
+--- Makefile-orig 2010-04-09 20:02:02.000000000 +0400
++++ Makefile 2010-04-09 20:02:39.000000000 +0400
+@@ -53,8 +53,8 @@
+ # but we use a local copy if we don't find it.
+ #
+ #KERNELSRC=/lib/modules/`uname -r`/build/
+-KERNELSRC?=./linux
+-OSFLAGS?= -DLINUX -I$(KERNELSRC)/include/
++KERNELSRC=/usr/src/linux
++OSFLAGS= -DLINUX -I$(KERNELSRC)/include/
+ #
+ # Uncomment the following to use the kernel interface under Linux
+ # This requires the pppol2tp-linux-2.4.27.patch patch from contrib
+@@ -62,7 +62,7 @@
+ # 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,10 +97,10 @@
+ #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
++MANDIR?=$(DESTDIR)${PREFIX}/man
+
+
+ all: $(EXEC) pfc
+@@ -113,7 +113,7 @@
+
+ pfc:
+ $(CC) $(CFLAGS) -c contrib/pfc.c
+- $(CC) $(LDFLAGS) -lpcap $(LDLIBS) -o pfc pfc.o
++ $(CC) pfc.o $(LDFLAGS) -lpcap $(LDLIBS) -o pfc
+
+ romfs:
+ $(ROMFSINST) /bin/$(EXEC)