From 6d7a7f4776711758cf5b59028378f01cd8eba493 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 13 Jun 2009 14:56:04 +0200 Subject: FreeBSD compatibility patches - update ipset and libpri to latest upstream --- package/l2tpns/patches/patch-Makefile | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'package/l2tpns/patches') 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 + -- cgit v1.2.3