mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
pptpd: import from old packages
Signed-off-by: Luka Perkov <luka@openwrt.org>
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
--- a/pqueue.c
|
||||
+++ b/pqueue.c
|
||||
@@ -7,13 +7,11 @@
|
||||
#include "pqueue.h"
|
||||
|
||||
#ifdef DEBUG_PQUEUE
|
||||
-#define DEBUG_ON 1
|
||||
+#define DEBUG_CMD(_a) { _a }
|
||||
#else
|
||||
-#define DEBUG_ON 0
|
||||
+#define DEBUG_CMD(_a)
|
||||
#endif
|
||||
|
||||
-#define DEBUG_CMD(_a) if (DEBUG_ON) { _a }
|
||||
-
|
||||
#define MIN_CAPACITY 128 /* min allocated buffer for a packet */
|
||||
|
||||
static int pqueue_alloc (int seq, unsigned char *packet, int packlen, pqueue_t **new);
|
||||
@@ -0,0 +1,11 @@
|
||||
--- a/plugins/Makefile
|
||||
+++ b/plugins/Makefile
|
||||
@@ -18,7 +18,7 @@ all: $(PLUGINS)
|
||||
%.so: %.c
|
||||
$(CC) -o $@ $(LDFLAGS) $(CFLAGS) $^ $(LDADD)
|
||||
|
||||
-LIBDIR ?= $(DESTDIR)$(prefix)/lib/pptpd
|
||||
+LIBDIR = $(DESTDIR)$(prefix)/lib/pptpd
|
||||
|
||||
install: $(PLUGINS)
|
||||
$(INSTALL) -d $(LIBDIR)
|
||||
@@ -0,0 +1,11 @@
|
||||
--- a/Makefile.in
|
||||
+++ b/Makefile.in
|
||||
@@ -153,7 +153,7 @@ AUTOMAKE = @AUTOMAKE@
|
||||
AWK = @AWK@
|
||||
CC = @CC@
|
||||
CCDEPMODE = @CCDEPMODE@
|
||||
-CFLAGS = -O2 -fno-builtin -Wall -DSBINDIR='"$(sbindir)"'
|
||||
+CFLAGS = $(COPTS) -fno-builtin -Wall -DSBINDIR='"$(sbindir)"'
|
||||
CPP = @CPP@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
Reference in New Issue
Block a user