diff options
Diffstat (limited to 'meta/recipes-devtools/unfs-server/unfs-server-2.2beta47/002-destdir.patch')
-rw-r--r-- | meta/recipes-devtools/unfs-server/unfs-server-2.2beta47/002-destdir.patch | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/meta/recipes-devtools/unfs-server/unfs-server-2.2beta47/002-destdir.patch b/meta/recipes-devtools/unfs-server/unfs-server-2.2beta47/002-destdir.patch new file mode 100644 index 0000000000..9388332675 --- /dev/null +++ b/meta/recipes-devtools/unfs-server/unfs-server-2.2beta47/002-destdir.patch | |||
@@ -0,0 +1,68 @@ | |||
1 | # Patch origin: nfs-server source RPM from openSUSE 10.3 | ||
2 | |||
3 | --- nfs-server/Makefile.in 2002/11/07 16:56:07 1.1 | ||
4 | +++ nfs-server/Makefile.in 2002/11/07 17:08:41 | ||
5 | @@ -74,10 +74,10 @@ | ||
6 | |||
7 | bindir = $(exec_prefix)/sbin | ||
8 | #vardir = $(install_prefix)/var/lib/nfs | ||
9 | -infodir = $(prefix)/info | ||
10 | -man5dir = $(prefix)/man/man5 | ||
11 | +infodir = $(prefix)/share/info | ||
12 | +man5dir = $(prefix)/share/man/man5 | ||
13 | man5ext = .5 | ||
14 | -man8dir = $(prefix)/man/man8 | ||
15 | +man8dir = $(prefix)/share/man/man8 | ||
16 | man8ext = .8 | ||
17 | |||
18 | # Prefix to be prepended to each installed RPC program, normally `rpc.'. | ||
19 | @@ -145,37 +145,37 @@ | ||
20 | .PHONY: install installdirs | ||
21 | install: $(DAEMONS) $(CLIENTS) installdirs | ||
22 | @for prog in $(DAEMONS) $(CLIENTS); do \ | ||
23 | - echo "installing $$prog in $(bindir)"; \ | ||
24 | - $(INSTALL_PROGRAM) $$prog $(bindir)/$$prog; \ | ||
25 | + echo "installing $$prog in $(DESTDIR)$(bindir)"; \ | ||
26 | + $(INSTALL_PROGRAM) $$prog $(DESTDIR)$(bindir)/$$prog; \ | ||
27 | done | ||
28 | @for manp in $(MANPAGES5); do \ | ||
29 | - echo "installing $$manp$(man5ext) in $(man5dir)"; \ | ||
30 | + echo "installing $$manp$(man5ext) in $(DESTDIR)$(man5dir)"; \ | ||
31 | $(INSTALL_DATA) $(srcdir)/$$manp.man \ | ||
32 | - $(man5dir)/$$manp$(man5ext); \ | ||
33 | + $(DESTDIR)$(man5dir)/$$manp$(man5ext); \ | ||
34 | done | ||
35 | @for manp in $(MANPAGES8p); do \ | ||
36 | - echo "installing $$manp$(man8ext) in $(man8dir)"; \ | ||
37 | + echo "installing $$manp$(man8ext) in $(DESTDIR)$(man8dir)"; \ | ||
38 | $(INSTALL_DATA) $(srcdir)/$$manp.man \ | ||
39 | - $(man8dir)/$$manp$(man8ext); \ | ||
40 | + $(DESTDIR)$(man8dir)/$$manp$(man8ext); \ | ||
41 | if [ 'x$(rpcprefix)' != 'x' ]; then \ | ||
42 | rm -f $(man8dir)/$(rpcprefix)$$manp$(man8ext); \ | ||
43 | ln -s $$manp$(man8ext) \ | ||
44 | - $(man8dir)/$(rpcprefix)$$manp$(man8ext); \ | ||
45 | + $(DESTDIR)$(man8dir)/$(rpcprefix)$$manp$(man8ext); \ | ||
46 | fi; \ | ||
47 | done | ||
48 | @for manp in $(MANPAGES8); do \ | ||
49 | - echo "installing $$manp$(man8ext) in $(man8dir)"; \ | ||
50 | + echo "installing $$manp$(man8ext) in $(DESTDIR)$(man8dir)"; \ | ||
51 | $(INSTALL_DATA) $(srcdir)/$$manp.man \ | ||
52 | - $(man8dir)/$$manp$(man8ext); \ | ||
53 | + $(DESTDIR)$(man8dir)/$$manp$(man8ext); \ | ||
54 | done | ||
55 | @if [ -n "$(DEVTAB_FILE)" -a ! -f "$(DEVTAB_FILE)" ]; then \ | ||
56 | echo "Initializing $(DEVTAB_FILE)"; \ | ||
57 | - $(INSTALL) -m 755 -d `dirname $(DEVTAB_FILE)`; \ | ||
58 | - echo "# Device mapping for unfsd" > "$(DEVTAB_FILE)"; \ | ||
59 | + $(INSTALL) -m 755 -d `dirname $(DESTDIR)$(DEVTAB_FILE)`; \ | ||
60 | + echo "# Device mapping for unfsd" > $(DESTDIR)"$(DEVTAB_FILE)"; \ | ||
61 | fi | ||
62 | |||
63 | installdirs: | ||
64 | - ${srcdir}/mkinstalldirs $(bindir) $(man5dir) $(man8dir) | ||
65 | + ${srcdir}/mkinstalldirs $(DESTDIR)$(bindir) $(DESTDIR)$(man5dir) $(DESTDIR)$(man8dir) | ||
66 | |||
67 | $(rpcprefix)mountd: $(MOUNTD_OBJS) libnfs.a | ||
68 | $(CC) $(LDFLAGS) -o $@ $(MOUNTD_OBJS) $(LIBS) | ||