aboutsummaryrefslogtreecommitdiffstats
path: root/main/pptpd/pptpd.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-09-16 11:21:12 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-09-16 11:21:12 +0000
commit43419d27a334214568486a4f6caaf19ebf245cbb (patch)
tree9ff324b320e215ce8dbb8fca8a8499dcc9b3c93e /main/pptpd/pptpd.patch
parentd3aa5f237ecaf9873444c5b3978af6d824b0a390 (diff)
downloadaports-43419d27a334214568486a4f6caaf19ebf245cbb.tar.bz2
aports-43419d27a334214568486a4f6caaf19ebf245cbb.tar.xz
main/pptpd: moved from testing
Diffstat (limited to 'main/pptpd/pptpd.patch')
-rw-r--r--main/pptpd/pptpd.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/main/pptpd/pptpd.patch b/main/pptpd/pptpd.patch
new file mode 100644
index 0000000000..c2118889da
--- /dev/null
+++ b/main/pptpd/pptpd.patch
@@ -0,0 +1,32 @@
+--- pptpd-1.3.4/Makefile.am
++++ pptpd-1.3.4-orig/Makefile.am
+@@ -11,7 +11,8 @@
+ ## warning with -Wmissing-prototypes).
+ ## -Wmissing-prototypes removed (eg, Linux 2.2.6 headers
+ ## aren't up to it).
+-CFLAGS = -O2 -fno-builtin -Wall -DSBINDIR='"$(sbindir)"'
++OPTFLAGS=-O2
++CFLAGS = $(OPTFLAGS) -fno-builtin -Wall -DSBINDIR='"$(sbindir)"'
+ #CFLAGS = -O2 -fno-builtin -Wall -ansi -DSBINDIR='"$(sbindir)"'
+ #CFLAGS = -O2 -fno-builtin -Wall -ansi -pedantic -Wmissing-prototypes -Werror -DSBINDIR='"$(sbindir)"'
+
+--- pptpd-1.3.4/plugins/Makefile
++++ pptpd-1.3.4-orig/plugins/Makefile
+@@ -3,7 +3,7 @@
+ CFLAGS = $(COPTS) -I.. -I../../include -fPIC
+ LDFLAGS = -shared
+ LDADD = -lutil
+-INSTALL = install -o root
++INSTALL = install
+ prefix = /usr/local
+
+ PLUGINS = pptpd-logwtmp.so
+@@ -18,7 +18,7 @@
+ %.so: %.c
+ $(CC) -o $@ $(LDFLAGS) $(CFLAGS) $^ $(LDADD)
+
+-LIBDIR ?= $(DESTDIR)$(prefix)/lib/pptpd
++LIBDIR = $(DESTDIR)$(prefix)/lib/pptpd
+
+ install: $(PLUGINS)
+ $(INSTALL) -d $(LIBDIR)