summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/unfs-server/unfs-server-2.2beta47/002-destdir.patch
blob: 938833267556bca0e46c5013b3656bc0d10c1aec (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Patch origin: nfs-server source RPM from openSUSE 10.3

--- nfs-server/Makefile.in	2002/11/07 16:56:07	1.1
+++ nfs-server/Makefile.in	2002/11/07 17:08:41
@@ -74,10 +74,10 @@
 
 bindir	= $(exec_prefix)/sbin
 #vardir = $(install_prefix)/var/lib/nfs
-infodir = $(prefix)/info
-man5dir = $(prefix)/man/man5
+infodir = $(prefix)/share/info
+man5dir = $(prefix)/share/man/man5
 man5ext = .5
-man8dir = $(prefix)/man/man8
+man8dir = $(prefix)/share/man/man8
 man8ext = .8
 
 # Prefix to be prepended to each installed RPC program, normally `rpc.'.
@@ -145,37 +145,37 @@
 .PHONY: install installdirs
 install: $(DAEMONS) $(CLIENTS) installdirs
 	@for prog in $(DAEMONS) $(CLIENTS); do \
-	    echo "installing $$prog in $(bindir)";	\
-	    $(INSTALL_PROGRAM) $$prog $(bindir)/$$prog;	\
+	    echo "installing $$prog in $(DESTDIR)$(bindir)";	\
+	    $(INSTALL_PROGRAM) $$prog $(DESTDIR)$(bindir)/$$prog;	\
 	done
 	@for manp in $(MANPAGES5); do			\
-	    echo "installing $$manp$(man5ext) in $(man5dir)";	\
+	    echo "installing $$manp$(man5ext) in $(DESTDIR)$(man5dir)";	\
 	    $(INSTALL_DATA) $(srcdir)/$$manp.man	\
-	        $(man5dir)/$$manp$(man5ext); \
+	        $(DESTDIR)$(man5dir)/$$manp$(man5ext); \
 	done
 	@for manp in $(MANPAGES8p); do			\
-	    echo "installing $$manp$(man8ext) in $(man8dir)";	\
+	    echo "installing $$manp$(man8ext) in $(DESTDIR)$(man8dir)";	\
 	    $(INSTALL_DATA) $(srcdir)/$$manp.man	\
-	        $(man8dir)/$$manp$(man8ext); 		\
+	        $(DESTDIR)$(man8dir)/$$manp$(man8ext); 		\
 	    if [ 'x$(rpcprefix)' != 'x' ]; then \
 	        rm -f $(man8dir)/$(rpcprefix)$$manp$(man8ext); \
 	        ln -s $$manp$(man8ext) \
-	            $(man8dir)/$(rpcprefix)$$manp$(man8ext); \
+	            $(DESTDIR)$(man8dir)/$(rpcprefix)$$manp$(man8ext); \
 	    fi; \
 	done
 	@for manp in $(MANPAGES8); do			\
-	    echo "installing $$manp$(man8ext) in $(man8dir)";	\
+	    echo "installing $$manp$(man8ext) in $(DESTDIR)$(man8dir)";	\
 	    $(INSTALL_DATA) $(srcdir)/$$manp.man	\
-	        $(man8dir)/$$manp$(man8ext); 		\
+	        $(DESTDIR)$(man8dir)/$$manp$(man8ext); 		\
 	done
 	@if [ -n "$(DEVTAB_FILE)" -a ! -f "$(DEVTAB_FILE)" ]; then \
 	    echo "Initializing $(DEVTAB_FILE)"; \
-	    $(INSTALL) -m 755 -d `dirname $(DEVTAB_FILE)`; \
-	    echo "# Device mapping for unfsd" > "$(DEVTAB_FILE)"; \
+	    $(INSTALL) -m 755 -d `dirname $(DESTDIR)$(DEVTAB_FILE)`; \
+	    echo "# Device mapping for unfsd" > $(DESTDIR)"$(DEVTAB_FILE)"; \
 	fi
 
 installdirs:
-	${srcdir}/mkinstalldirs $(bindir) $(man5dir) $(man8dir)
+	${srcdir}/mkinstalldirs $(DESTDIR)$(bindir) $(DESTDIR)$(man5dir) $(DESTDIR)$(man8dir)
 
 $(rpcprefix)mountd: $(MOUNTD_OBJS) libnfs.a
 	$(CC) $(LDFLAGS) -o $@ $(MOUNTD_OBJS) $(LIBS)