pptpd/pptpd-1.3.4-install.patch

22 lines
656 B
Diff

diff -rup pptpd-1.3.4/plugins/Makefile pptpd-1.3.4-install/plugins/Makefile
--- pptpd-1.3.4/plugins/Makefile 2006-08-02 22:02:01.000000000 -0400
+++ pptpd-1.3.4-install/plugins/Makefile 2011-04-07 14:29:24.377575790 -0400
@@ -3,7 +3,7 @@ COPTS = -O2 -g
CFLAGS = $(COPTS) -I.. -I../../include -fPIC
LDFLAGS = -shared
LDADD = -lutil
-INSTALL = install -o root
+INSTALL = install -c
prefix = /usr/local
PLUGINS = pptpd-logwtmp.so
@@ -18,7 +18,7 @@ all: $(PLUGINS)
%.so: %.c
$(CC) -o $@ $(LDFLAGS) $(CFLAGS) $^ $(LDADD)
-LIBDIR ?= $(DESTDIR)$(prefix)/lib/pptpd
+LIBDIR = $(DESTDIR)/usr/lib/pptpd
install: $(PLUGINS)
$(INSTALL) -d $(LIBDIR)