summaryrefslogtreecommitdiff
path: root/recipes/poptop/poptop-1.3.4/fix-plugins-install.patch
blob: 8a02f7a5dec90c3f202e4e3b1f1b66dbb3a1ee6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Don't try and install as root.
Always set LIBDIR to the include the DESTDIR, otherwise it uses the
incorrect value set in the toplevel makefile.

Index: pptpd-1.3.4/plugins/Makefile
===================================================================
--- pptpd-1.3.4.orig/plugins/Makefile	2006-08-03 12:02:01.000000000 +1000
+++ pptpd-1.3.4/plugins/Makefile	2007-06-09 11:42:57.000000000 +1000
@@ -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)