xref: /OK3568_Linux_fs/buildroot/package/vtun/0001-fix-installation.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1Makefile.in: fix installation steps
2
3Not sure what the reason for that patch is, but originally added by Ulf
4Samuelsson <ulf.samuelsson@atmel.com>, when upgrading from 2.6.x to 3.0.2.
5
6yann.morin.1998@free.fr: the initial commit in the Buildroot tree had the
7SoB by Ulf, but it was not explicitly reproduced here in the patch; so I
8added it here directly in the patch.
9
10Somewhat-signed-off-by: Ulf Samuelsson <ulf.samuelsson@atmel.com>
11Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
12diff -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.
45