]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/udhcp/files/install.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / udhcp / files / install.patch
1
2 #
3 # Patch managed by http://www.holgerschurig.de/patcher.html
4 #
5
6 --- udhcp-0.9.8/Makefile~install.patch
7 +++ udhcp-0.9.8/Makefile
8 @@ -1,10 +1,11 @@
9  # udhcp makefile
10  
11 +DESTDIR=
12  prefix=/usr
13 -SBINDIR=/sbin
14 -USRSBINDIR=${prefix}/sbin
15 -USRBINDIR=${prefix}/bin
16 -USRSHAREDIR=${prefix}/share
17 +sbindir=/sbin
18 +usrsbindir=$(prefix)/sbin
19 +usrbindir=$(prefix)/bin
20 +datadir=$(prefix)/share
21  
22  # Uncomment this to get a shared binary. Call as udhcpd for the server,
23  # and udhcpc for the client
24 @@ -81,25 +82,27 @@
25  
26  
27  install: all
28 -
29 -       $(INSTALL) $(DAEMONS) $(USRSBINDIR)
30 -       $(INSTALL) $(COMMANDS) $(USRBINDIR)
31 +       $(INSTALL) -d $(DESTDIR)$(usrsbindir)
32 +       $(INSTALL) $(DAEMONS) $(DESTDIR)$(usrsbindir)
33 +       $(INSTALL) -d $(DESTDIR)$(usrbindir)
34 +       $(INSTALL) $(COMMANDS) $(DESTDIR)$(usrbindir)
35 +       $(INSTALL) -d $(DESTDIR)$(sbindir)
36  ifdef COMBINED_BINARY
37 -       ln -sf $(USRSBINDIR)/$(DAEMONS) $(SBINDIR)/$(BOOT_PROGRAMS)
38 +       ln -sf $(usrsbindir)/$(DAEMONS) $(DESTDIR)$(sbindir)/$(BOOT_PROGRAMS)
39  else
40 -       $(INSTALL) $(BOOT_PROGRAMS) $(SBINDIR)
41 +       $(INSTALL) $(BOOT_PROGRAMS) $(DESTDIR)$(sbindir)
42  endif
43 -       mkdir -p $(USRSHAREDIR)/udhcpc
44 +       $(INSTALL) -d $(DESTDIR)$(datadir)/udhcpc
45         for name in bound deconfig renew script ; do \
46                 $(INSTALL) samples/sample.$$name \
47 -                       $(USRSHAREDIR)/udhcpc/default.$$name ; \
48 +                       $(DESTDIR)$(datadir)/udhcpc/default.$$name ; \
49         done
50 -       mkdir -p $(USRSHAREDIR)/man/man1
51 -       $(INSTALL) dumpleases.1 $(USRSHAREDIR)/man/man1
52 -       mkdir -p $(USRSHAREDIR)/man/man5
53 -       $(INSTALL) udhcpd.conf.5 $(USRSHAREDIR)/man/man5
54 -       mkdir -p $(USRSHAREDIR)/man/man8
55 -       $(INSTALL) udhcpc.8 udhcpd.8 $(USRSHAREDIR)/man/man8
56 +       $(INSTALL) -d $(DESTDIR)$(mandir)/man1
57 +       $(INSTALL) dumpleases.1 $(DESTDIR)$(mandir)/man1
58 +       $(INSTALL) -d $(DESTDIR)$(mandir)/man5
59 +       $(INSTALL) udhcpd.conf.5 $(DESTDIR)$(mandir)/man5
60 +       $(INSTALL) -d $(DESTDIR)$(mandir)/man8
61 +       $(INSTALL) udhcpc.8 udhcpd.8 $(DESTDIR)$(mandir)/man8
62  
63  clean:
64         -rm -f udhcpd udhcpc dumpleases *.o core