1 This patch adds $(DESTDIR) to xinetd's installation paths, to support
2 installation to a cross-compiled RFS area.
4 The content of this patch was inspired by the OpenWrt project:
5 https://dev.openwrt.org/browser/packages/net/xinetd/patches/002-destdir.patch
7 Signed-off-by: Danomi Manchego <danomimanchego123@gmail.com>
9 diff -urN xinetd-2.3.15.ORIG/Makefile.in xinetd-2.3.15/Makefile.in
10 --- xinetd-2.3.15.ORIG/Makefile.in 2007-09-20 13:01:52.000000000 -0400
11 +++ xinetd-2.3.15/Makefile.in 2012-06-18 10:20:00.540864388 -0400
15 for i in $(DAEMONDIR) $(BINDIR) $(MANDIR)/man5 $(MANDIR)/man8 ; do \
16 - test -d $$i || mkdir -p $$i ; done
17 - $(INSTALL_CMD) -m 755 xinetd/xinetd $(DAEMONDIR)
18 - $(INSTALL_CMD) -m 755 xinetd/itox $(DAEMONDIR)
19 - $(INSTALL_CMD) -m 755 $(SRCDIR)/xinetd/xconv.pl $(DAEMONDIR)
20 - $(INSTALL_CMD) -m 644 $(SRCDIR)/xinetd/xinetd.conf.man $(MANDIR)/man5/xinetd.conf.5
21 - $(INSTALL_CMD) -m 644 $(SRCDIR)/xinetd/xinetd.log.man $(MANDIR)/man8/xinetd.log.8
22 - $(INSTALL_CMD) -m 644 $(SRCDIR)/xinetd/xinetd.man $(MANDIR)/man8/xinetd.8
23 - $(INSTALL_CMD) -m 644 $(SRCDIR)/xinetd/itox.8 $(MANDIR)/man8/itox.8
24 - $(INSTALL_CMD) -m 644 $(SRCDIR)/xinetd/xconv.pl.8 $(MANDIR)/man8/xconv.pl.8
25 + test -d $(DESTDIR)$$i || mkdir -p $(DESTDIR)$$i ; done
26 + $(INSTALL_CMD) -m 755 xinetd/xinetd $(DESTDIR)$(DAEMONDIR)
27 + $(INSTALL_CMD) -m 755 xinetd/itox $(DESTDIR)$(DAEMONDIR)
28 + $(INSTALL_CMD) -m 755 $(SRCDIR)/xinetd/xconv.pl $(DESTDIR)$(DAEMONDIR)
29 + $(INSTALL_CMD) -m 644 $(SRCDIR)/xinetd/xinetd.conf.man $(DESTDIR)$(MANDIR)/man5/xinetd.conf.5
30 + $(INSTALL_CMD) -m 644 $(SRCDIR)/xinetd/xinetd.log.man $(DESTDIR)$(MANDIR)/man8/xinetd.log.8
31 + $(INSTALL_CMD) -m 644 $(SRCDIR)/xinetd/xinetd.man $(DESTDIR)$(MANDIR)/man8/xinetd.8
32 + $(INSTALL_CMD) -m 644 $(SRCDIR)/xinetd/itox.8 $(DESTDIR)$(MANDIR)/man8/itox.8
33 + $(INSTALL_CMD) -m 644 $(SRCDIR)/xinetd/xconv.pl.8 $(DESTDIR)$(MANDIR)/man8/xconv.pl.8
34 @echo "You must put your xinetd.conf in /etc/xinetd.conf"
35 @echo "There is a sample config file in xinetd/sample.conf and you can"
36 @echo "use xconv.pl to convert your old inetd.conf file to an xinetd format"
39 - rm -f $(DAEMONDIR)/xinetd
40 - rm -f $(DAEMONDIR)/itox
41 - rm -f $(DAEMONDIR)/xconv.pl
42 - rm -f $(MANDIR)/man5/xinetd.conf.5
43 - rm -f $(MANDIR)/man8/xinetd.log.8
44 - rm -f $(MANDIR)/man8/xinetd.8
45 - rm -f $(MANDIR)/man8/itox.8
46 + rm -f $(DESTDIR)$(DAEMONDIR)/xinetd
47 + rm -f $(DESTDIR)$(DAEMONDIR)/itox
48 + rm -f $(DESTDIR)$(DAEMONDIR)/xconv.pl
49 + rm -f $(DESTDIR)$(MANDIR)/man5/xinetd.conf.5
50 + rm -f $(DESTDIR)$(MANDIR)/man8/xinetd.log.8
51 + rm -f $(DESTDIR)$(MANDIR)/man8/xinetd.8
52 + rm -f $(DESTDIR)$(MANDIR)/man8/itox.8
55 rm -f config.cache config.log Makefile config.status xinetd/itox