2010-11-01 15:10:47 +00:00
|
|
|
Index: openl2tp-1.7/Makefile
|
|
|
|
===================================================================
|
|
|
|
--- openl2tp-1.7.orig/Makefile 2010-03-18 10:04:47.000000000 +0100
|
|
|
|
+++ openl2tp-1.7/Makefile 2010-11-01 15:59:00.279999805 +0100
|
2010-10-31 23:29:44 +00:00
|
|
|
@@ -8,7 +8,7 @@
|
2009-07-26 10:26:13 +00:00
|
|
|
L2TP_FEATURE_LAOC_SUPPORT= y
|
|
|
|
L2TP_FEATURE_LNIC_SUPPORT= y
|
|
|
|
L2TP_FEATURE_LNOC_SUPPORT= y
|
|
|
|
-L2TP_FEATURE_LOCAL_CONF_FILE= y
|
|
|
|
+#L2TP_FEATURE_LOCAL_CONF_FILE= y
|
|
|
|
#L2TP_FEATURE_LOCAL_STAT_FILE= y
|
|
|
|
|
|
|
|
# Define USE_DMALLOC to enable dmalloc memory debugging
|
2010-10-31 23:29:44 +00:00
|
|
|
@@ -29,31 +29,31 @@
|
2009-07-26 10:26:13 +00:00
|
|
|
# Build for UML environment?
|
|
|
|
# UML_TARGET= y
|
|
|
|
|
|
|
|
-ARCH=$(shell uname -p)
|
|
|
|
-ifeq ($(ARCH),x86_64)
|
|
|
|
-SYS_LIBDIR=/usr/lib64
|
|
|
|
-else
|
|
|
|
+#ARCH=$(shell uname -p)
|
|
|
|
+#ifeq ($(ARCH),x86_64)
|
|
|
|
+#SYS_LIBDIR=/usr/lib64
|
|
|
|
+#else
|
|
|
|
SYS_LIBDIR=/usr/lib
|
|
|
|
-endif
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
# Point to kernel source tree
|
|
|
|
-KERNEL_SRCDIR= /lib/modules/$(shell uname -r)/source
|
|
|
|
-KERNEL_BLDDIR= /lib/modules/$(shell uname -r)/build
|
|
|
|
+#KERNEL_SRCDIR= /lib/modules/$(shell uname -r)/source
|
|
|
|
+#KERNEL_BLDDIR= /lib/modules/$(shell uname -r)/build
|
|
|
|
|
|
|
|
# Points to pppd install.
|
|
|
|
# By default, pppd headers are assumed to be in /usr/include/pppd. but
|
|
|
|
# can be pointed to a local pppd source tree if desired.
|
2010-10-31 23:29:44 +00:00
|
|
|
-PPPD_VERSION= 2.4.5
|
|
|
|
+#PPPD_VERSION= 2.4.5
|
|
|
|
# PPPD_SRCDIR= /usr/local/src/ppp-2.4.5
|
|
|
|
# PPPD_LIBDIR= /usr/lib/pppd/2.4.5
|
2009-07-26 10:26:13 +00:00
|
|
|
|
|
|
|
# Points to readline install root. READLINE_DIR should have lib/ & include/ subdirs
|
|
|
|
# If not defined, readline is assumed to be installed in the standard places that
|
|
|
|
# the compiler looks.
|
|
|
|
-READLINE_DIR=
|
|
|
|
+#READLINE_DIR=
|
|
|
|
|
|
|
|
# For cross-compiling
|
|
|
|
-CROSS_COMPILE=
|
|
|
|
+#CROSS_COMPILE=
|
|
|
|
|
|
|
|
# END CONFIGURABLE SETTINGS
|
|
|
|
|
2010-10-31 23:29:44 +00:00
|
|
|
@@ -142,9 +142,9 @@
|
2010-10-13 18:58:57 +00:00
|
|
|
|
|
|
|
CPPFLAGS= $(CPPFLAGS.l2tptest) $(CPPFLAGS-y)
|
2009-07-26 10:26:13 +00:00
|
|
|
CFLAGS= -I. -Iusl -Icli -isystem $(KERNEL_BLDDIR)/include \
|
2010-10-13 18:58:57 +00:00
|
|
|
- -isystem $(KERNEL_SRCDIR)/include -MMD -Wall -Werror $(CPPFLAGS) $(CPPFLAGS.dmalloc) -DSYS_LIBDIR=$(SYS_LIBDIR)
|
|
|
|
+ -isystem $(KERNEL_SRCDIR)/include -MMD -Wall $(CPPFLAGS) $(CPPFLAGS.dmalloc) -DSYS_LIBDIR=$(SYS_LIBDIR)
|
2009-07-26 10:26:13 +00:00
|
|
|
LDFLAGS.l2tpd= -Wl,-E -L. -Lusl -lusl -ldl $(LIBS.dmalloc) -lc
|
|
|
|
-LDFLAGS.l2tpconfig= -Lcli -lcli -lreadline $(LIBS.dmalloc) $(READLINE_LDFLAGS) -lc
|
|
|
|
+LDFLAGS.l2tpconfig= -Lcli -lcli -lreadline -lncurses $(LIBS.dmalloc) $(READLINE_LDFLAGS) -lc
|
|
|
|
|
|
|
|
OPT_CFLAGS?= -O
|
|
|
|
|
2010-11-01 15:10:47 +00:00
|
|
|
@@ -189,7 +189,7 @@
|
|
|
|
|
|
|
|
.PHONY: $(SUBDIRS:%=subdir-%)
|
|
|
|
|
|
|
|
-$(SUBDIRS:%=subdir-%): FORCE
|
|
|
|
+$(SUBDIRS:%=subdir-%): FORCE generated-files
|
|
|
|
$(MAKE) -C $(@:subdir-%=%) $(MFLAGS) EXTRA_CFLAGS="$(CPPFLAGS)"
|
|
|
|
|
|
|
|
ifeq ($(L2TP_FEATURE_LOCAL_CONF_FILE),y)
|
|
|
|
@@ -260,8 +260,8 @@
|
|
|
|
openl2tpd: $(L2TPD_SRCS.o)
|
|
|
|
$(CC) -o $@ $^ $(LDFLAGS.l2tpd)
|
|
|
|
|
|
|
|
-l2tpconfig: $(L2TPCONFIG_SRCS.o)
|
|
|
|
- $(CC) -o $@ $^ $(LDFLAGS.l2tpconfig)
|
|
|
|
+l2tpconfig: generated-files $(L2TPCONFIG_SRCS.o)
|
|
|
|
+ $(CC) -o $@ $(L2TPCONFIG_SRCS.o) $(LDFLAGS.l2tpconfig)
|
|
|
|
|
|
|
|
%.o: %.c
|
|
|
|
$(CC) -c $(CFLAGS) $< -o $@
|
|
|
|
Index: openl2tp-1.7/cli/Makefile
|
|
|
|
===================================================================
|
|
|
|
--- openl2tp-1.7.orig/cli/Makefile 2008-02-03 15:55:30.000000000 +0100
|
|
|
|
+++ openl2tp-1.7/cli/Makefile 2010-11-01 15:56:22.938000001 +0100
|
2010-10-31 23:29:44 +00:00
|
|
|
@@ -7,7 +7,7 @@
|
2010-10-13 18:58:57 +00:00
|
|
|
|
|
|
|
LDFLAGS.cli_test= -L.. -L. $(READLINE_LDFLAGS) -lcli -lusl -lreadline -lcurses -lc
|
|
|
|
|
|
|
|
-CFLAGS= $(CFLAGS.optimize) -MMD -Wall -Werror -I.. $(READLINE_CFLAGS)
|
|
|
|
+CFLAGS= $(CFLAGS.optimize) -MMD -Wall -I.. $(READLINE_CFLAGS)
|
|
|
|
|
|
|
|
.PHONY: all test clean
|
|
|
|
|
2010-11-01 15:10:47 +00:00
|
|
|
Index: openl2tp-1.7/usl/Makefile
|
|
|
|
===================================================================
|
|
|
|
--- openl2tp-1.7.orig/usl/Makefile 2008-02-24 12:52:50.000000000 +0100
|
|
|
|
+++ openl2tp-1.7/usl/Makefile 2010-11-01 15:56:22.938000001 +0100
|
2010-10-31 23:29:44 +00:00
|
|
|
@@ -14,7 +14,7 @@
|
2010-10-13 18:58:57 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
CPPFLAGS+= $(CFLAGS.optimize) -g
|
|
|
|
-CFLAGS= -I. -MMD -Wall -Werror $(CPPFLAGS) $(CPPFLAGS.dmalloc)
|
|
|
|
+CFLAGS= -I. -MMD -Wall $(CPPFLAGS) $(CPPFLAGS.dmalloc)
|
|
|
|
|
|
|
|
.PHONY: all test clean
|
|
|
|
|