summary refs log tree commit diff
path: root/debian/patches/Use-symlinks-for-nmtui.patch
blob: 724494c4189c776fb830a2927631aa20e30d533e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
From: Michael Biebl <biebl@debian.org>
Date: Thu, 10 Jul 2014 03:33:18 +0200
Subject: build: Use symlinks for nmtui

Make /usr/bin/nmtui-* symbolic links to /usr/bin/nmtui.

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=759824
---
 clients/tui/Makefile.am | 2 +-
 configure.ac            | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/clients/tui/Makefile.am b/clients/tui/Makefile.am
index a84fcdf..3eb1756 100644
--- a/clients/tui/Makefile.am
+++ b/clients/tui/Makefile.am
@@ -27,7 +27,7 @@ links = nmtui-edit nmtui-connect nmtui-hostname
 
 install-exec-hook:
 	for link in $(links); do \
-		ln -f $(DESTDIR)$(bindir)/nmtui $(DESTDIR)$(bindir)/$$link; \
+		cd $(DESTDIR)$(bindir) && $(LN_S) -f nmtui $$link; \
 	done
 
 uninstall-hook:
diff --git a/configure.ac b/configure.ac
index 1e9c63d..3274fd9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -33,6 +33,8 @@ AM_PROG_CC_C_O
 # C++ only required if --enable-qt=yes
 AC_PROG_CXX
 
+AC_PROG_LN_S
+
 dnl Initialize libtool
 LT_PREREQ([2.2])
 LT_INIT([disable-static])