[network-manager-openswan/dcbw/libreswan: 16/16] core: symlink helper to nm-libreswan-service-helper



commit 578fcfa8e484313010590571566da347a95e609a
Author: Dan Williams <dcbw redhat com>
Date:   Mon Dec 1 19:01:02 2014 -0600

    core: symlink helper to nm-libreswan-service-helper
    
    libreswan explicitly calls the helper, and expects a specific name
    which we must provide.

 configure.ac    |    1 +
 src/Makefile.am |    7 +++++++
 2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index e3098db..8b2c2a9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -17,6 +17,7 @@ AC_PROG_CC
 AM_PROG_CC_C_O
 AC_PROG_INSTALL
 AC_PROG_LIBTOOL
+AC_PROG_LN_S
 
 dnl
 dnl Required headers
diff --git a/src/Makefile.am b/src/Makefile.am
index 46f6288..09223f5 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -35,6 +35,13 @@ nm_openswan_service_helper_LDADD = \
        $(NM_LIBS) \
        $(LIBNL_LIBS)
 
+install-exec-hook:
+       $(LN_S) -f $(DESTDIR)$(libexecdir)/nm-openswan-service-helper \
+               $(DESTDIR)$(libexecdir)/nm-libreswan-service-helper
+
+uninstall-hook:
+       rm -f $(DESTDIR)$(libexecdir)/nm-libreswan-service-helper
+
 noinst_PROGRAMS = show-xfrm
 
 show_xfrm_SOURCES = show-xfrm.c


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]