uboot-tools: add patch to fix linking with libubootenv
[buildroot-gz.git] / package / vtun / 0001-fix-installation.patch
blobd9659fa885bcfff16ec9b904f1b4552f7e50a48f
1 Makefile.in: fix installation steps
3 Not sure what the reason for that patch is, but originally added by Ulf
4 Samuelsson <ulf.samuelsson@atmel.com>, when upgrading from 2.6.x to 3.0.2.
6 yann.morin.1998@free.fr: the initial commit in the Buildroot tree had the
7 SoB by Ulf, but it was not explicitly reproduced here in the patch; so I
8 added it here directly in the patch.
10 Somewhat-signed-off-by: Ulf Samuelsson <ulf.samuelsson@atmel.com>
11 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
12 diff -durN vtun-3.0.3.orig/Makefile.in vtun-3.0.3/Makefile.in
13 --- vtun-3.0.3.orig/Makefile.in 2012-07-09 06:55:38.000000000 +0200
14 +++ vtun-3.0.3/Makefile.in 2013-02-16 23:28:47.034036869 +0100
15 @@ -28,7 +28,7 @@
16 LEXFLAGS = -t
18 INSTALL = @INSTALL@
19 -INSTALL_OWNER = -o root -g 0
20 +INSTALL_OWNER =
22 prefix = @prefix@
23 exec_prefix = @exec_prefix@
24 @@ -89,16 +89,15 @@
26 install_config:
27 $(INSTALL) -d -m 755 $(INSTALL_OWNER) $(DESTDIR)$(ETC_DIR)
28 - if [ ! -f $(ETC_DIR)/vtund.conf ]; then \
29 - $(INSTALL) -m 600 $(INSTALL_OWNER) vtund.conf $(DESTDIR)$(ETC_DIR); \
30 - fi
31 + $(INSTALL) -m 600 $(INSTALL_OWNER) vtund.conf $(DESTDIR)$(ETC_DIR);
32 + $(INSTALL) -m 600 $(INSTALL_OWNER) scripts/vtund-start.conf $(DESTDIR)$(ETC_DIR);
34 install: vtund install_config install_man
35 - $(INSTALL) -d -m 755 $(INSTALL_OWNER) $(DESTDIR)$(VAR_DIR)/run
36 $(INSTALL) -d -m 755 $(INSTALL_OWNER) $(DESTDIR)$(STAT_DIR)
37 $(INSTALL) -d -m 755 $(INSTALL_OWNER) $(DESTDIR)$(LOCK_DIR)
38 $(INSTALL) -d -m 755 $(INSTALL_OWNER) $(DESTDIR)$(SBIN_DIR)
39 $(INSTALL) -m 755 $(INSTALL_OWNER) vtund $(DESTDIR)$(SBIN_DIR)
40 - $(BIN_DIR)/strip $(DESTDIR)$(SBIN_DIR)/vtund
41 + $(INSTALL) -m 755 -D $(INSTALL_OWNER) scripts/vtund.rc.debian \
42 + $(DESTDIR)$(ETC_DIR)/init.d/S90vtun
44 # DO NOT DELETE THIS LINE -- make depend depends on it.