The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / vtun / 0001-fix-installation.patch
1 Makefile.in: fix installation steps
2
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.
5
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.
9
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 
17  
18  INSTALL = @INSTALL@
19 -INSTALL_OWNER = -o root -g 0
20 +INSTALL_OWNER =
21  
22  prefix = @prefix@
23  exec_prefix = @exec_prefix@
24 @@ -89,16 +89,15 @@
25  
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);
33  
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
43  
44  # DO NOT DELETE THIS LINE -- make depend depends on it.