summaryrefslogtreecommitdiff
path: root/package/l2tpns
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2009-06-13 14:56:04 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2009-06-13 14:56:04 +0200
commit6d7a7f4776711758cf5b59028378f01cd8eba493 (patch)
tree67cc0ff4f56a0d7e1deff1d0a39867d486c86a9b /package/l2tpns
parent18b38b0eb68cbcb8793efe989dcd8796a60288af (diff)
FreeBSD compatibility patches
- update ipset and libpri to latest upstream
Diffstat (limited to 'package/l2tpns')
-rw-r--r--package/l2tpns/patches/patch-Makefile16
1 files changed, 14 insertions, 2 deletions
diff --git a/package/l2tpns/patches/patch-Makefile b/package/l2tpns/patches/patch-Makefile
index 4065c2981..4d7ca7540 100644
--- a/package/l2tpns/patches/patch-Makefile
+++ b/package/l2tpns/patches/patch-Makefile
@@ -1,6 +1,6 @@
$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
--- l2tpns-2.1.21.orig/Makefile 2005-12-07 06:21:37.000000000 +0100
-+++ l2tpns-2.1.21/Makefile 2009-05-29 17:48:31.886728540 +0200
++++ l2tpns-2.1.21/Makefile 2009-06-13 09:54:41.000000000 +0200
@@ -10,18 +10,11 @@ DEFINES =
DEFINES += -DLIBDIR='"$(libdir)"'
DEFINES += -DETCDIR='"$(etcdir)"'
@@ -18,7 +18,7 @@ $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+CFLAGS ?= -Wall -Wformat-security -Wno-format-zero-length
LDLIBS =
-INSTALL = install -c -D -o root -g root
-+INSTALL = install -c -D
++INSTALL = install
l2tpns.LIBS = -lm -lcli -ldl
@@ -35,3 +35,15 @@ $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
%.o: %.c
$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
+@@ -70,6 +63,11 @@ nsctl: nsctl.o control.o
+ $(CC) -fPIC -shared $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $<
+
+ install: all
++ $(INSTALL) -m 0755 -d $(DESTDIR)$(libdir)
++ $(INSTALL) -m 0755 -d $(DESTDIR)$(bindir)
++ $(INSTALL) -m 0755 -d $(DESTDIR)$(etcdir)
++ $(INSTALL) -m 0755 -d $(DESTDIR)$(man5dir)
++ $(INSTALL) -m 0755 -d $(DESTDIR)$(man8dir)
+ $(INSTALL) -m 0755 l2tpns $(DESTDIR)$(bindir)/l2tpns
+ $(INSTALL) -m 0755 nsctl $(DESTDIR)$(bindir)/nsctl
+