2010-05-11 22:55:01 +02:00
|
|
|
--- 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
|
2010-05-13 00:37:59 +02:00
|
|
|
+LIBDIR ?= $(prefix)/@baselibdir@/pptpd
|
2010-05-11 22:55:01 +02:00
|
|
|
|
|
|
|
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
|