blob: a9319ff1e3ee1a26b5011eda699b66478020ea45 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001
2#
3# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
4#
5
6--- liblockfile-1.05/Makefile.in~install
7+++ liblockfile-1.05/Makefile.in
8@@ -20,6 +20,7 @@
9 includedir = @includedir@
10
11 MAILGROUP = @MAILGROUP@
12+INSTGRP = $(if $(MAILGROUP),-g $(MAILGROUP))
13
14 all: @TARGETS@
15 install: @INSTALL_TARGETS@
16@@ -50,25 +51,27 @@
17 $(CC) $(CFLAGS) -c lockfile.c -o xlockfile.o
18
19 install_static: static install_common
20+ install -d $(ROOT)$(libdir)
21 install -m 644 liblockfile.a $(ROOT)$(libdir)
22
23 install_shared: shared install_common
24+ install -d $(ROOT)$(libdir)
25 install -m 755 liblockfile.so \
26 $(ROOT)$(libdir)/liblockfile.so.$(VER)
27 ln -s liblockfile.so.$(VER) $(ROOT)$(libdir)/liblockfile.so
28 if test "$(ROOT)" = ""; then @LDCONFIG@; fi
29
30 install_common:
31+ install -d $(ROOT)$(includedir)
32 install -m 644 lockfile.h maillock.h $(ROOT)$(includedir)
33- if [ "$(MAILGROUP)" != "" ]; then\
34- install -g $(MAILGROUP) -m 2755 dotlockfile $(ROOT)$(bindir);\
35- else \
36- install -g root -m 755 dotlockfile $(ROOT)$(bindir); \
37- fi
38+ install -d $(ROOT)$(bindir)
39+ install -m 755 $(INSTGRP) dotlockfile $(ROOT)$(bindir)
40+ install -d $(ROOT)$(mandir)/man1 $(ROOT)$(mandir)/man3
41 install -m 644 *.1 $(ROOT)$(mandir)/man1
42 install -m 644 *.3 $(ROOT)$(mandir)/man3
43
44 install_nfslib: nfslib
45+ install -d $(ROOT)$(nfslockdir)
46 install -m 755 nfslock.so.$(VER) $(ROOT)$(nfslockdir)
47 if test "$(ROOT)" = ""; then @LDCONFIG@; fi
48