initscripts-shr: remove devtmpfs initscript for palmpre machine
[openembedded.git] / recipes / poptop / poptop-1.3.4 / fix-plugins-install.patch
blob8a02f7a5dec90c3f202e4e3b1f1b66dbb3a1ee6c
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
9 @@ -3,7 +3,7 @@
10 CFLAGS = $(COPTS) -I.. -I../../include -fPIC
11 LDFLAGS = -shared
12 LDADD = -lutil
13 -INSTALL = install -o root
14 +INSTALL = install
15 prefix = /usr/local
17 PLUGINS = pptpd-logwtmp.so
18 @@ -18,7 +18,7 @@
19 %.so: %.c
20 $(CC) -o $@ $(LDFLAGS) $(CFLAGS) $^ $(LDADD)
22 -LIBDIR ?= $(DESTDIR)$(prefix)/lib/pptpd
23 +LIBDIR = $(DESTDIR)$(prefix)/lib/pptpd
25 install: $(PLUGINS)
26 $(INSTALL) -d $(LIBDIR)