blob: 9275a340b70e1414a73f8cf00df273524b3030a3 (
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
31
|
diff -Nur pptpd-1.4.0.orig/plugins/Makefile pptpd-1.4.0/plugins/Makefile
--- pptpd-1.4.0.orig/plugins/Makefile 2013-02-18 16:05:46.000000000 -0600
+++ pptpd-1.4.0/plugins/Makefile 2016-01-10 23:23:06.816535697 -0600
@@ -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
|