1 Don't try and install as root.
2 Always set LIBDIR to the include the DESTDIR, otherwise it uses the
3 incorrect value set in the toplevel makefile.
5 Index: pptpd-1.3.4/plugins/Makefile
6 ===================================================================
7 --- pptpd-1.3.4.orig/plugins/Makefile 2006-08-03 12:02:01.000000000 +1000
8 +++ pptpd-1.3.4/plugins/Makefile 2007-06-09 11:42:57.000000000 +1000
10 CFLAGS = $(COPTS) -I.. -I../../include -fPIC
13 -INSTALL = install -o root
17 PLUGINS = pptpd-logwtmp.so
20 $(CC) -o $@ $(LDFLAGS) $(CFLAGS) $^ $(LDADD)
22 -LIBDIR ?= $(DESTDIR)$(prefix)/lib/pptpd
23 +LIBDIR = $(DESTDIR)$(prefix)/lib/pptpd
26 $(INSTALL) -d $(LIBDIR)