summaryrefslogtreecommitdiff
path: root/network/pptpd/patches/plugins_Makefile.diff
blob: 52d4134a9003cb35525ac3629a5806e741e9c10e (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
27
28
29
30
--- pptpd-1.3.4/plugins/Makefile	2008-07-20 01:46:35.836374075 -0500
+++ pptpd-1.3.4/plugins/Makefile	2008-07-20 01:48:48.729656656 -0500
@@ -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,14 +18,14 @@
 %.so: %.c
 	$(CC) -o $@ $(LDFLAGS) $(CFLAGS) $^ $(LDADD)
 
-LIBDIR	?= $(DESTDIR)$(prefix)/lib/pptpd
+LIBDIR	?= $(prefix)/@baselibdir@/pptpd
 
 install: $(PLUGINS)
-	$(INSTALL) -d $(LIBDIR)
-	$(INSTALL) $? $(LIBDIR)
+	$(INSTALL) -d $(DESTDIR)/$(LIBDIR)
+	$(INSTALL) $? $(DESTDIR)/$(LIBDIR)
 
 uninstall:
-	rm -f $(LIBDIR)$(PLUGINS)
+	rm -f $(DESTDIR)/$(LIBDIR)$(PLUGINS)
 
 clean:
 	rm -f *.o *.so *.a