[Libguestfs] [PATCH] builder: install a $sysconfdir/virt-builder -> xdg-virt-builder symlink

Pino Toscano ptoscano at redhat.com
Mon Mar 3 15:31:47 UTC 2014


This way "virt-builder" appears directly in the sysconfdir.
---
 builder/Makefile.am | 3 +++
 configure.ac        | 1 +
 2 files changed, 4 insertions(+)

diff --git a/builder/Makefile.am b/builder/Makefile.am
index a539e91..b3de967 100644
--- a/builder/Makefile.am
+++ b/builder/Makefile.am
@@ -246,6 +246,9 @@ DISTCLEANFILES = .depend
 repoconfdir = $(sysconfdir)/xdg/virt-builder/repos.d
 repoconf_DATA = libguestfs.conf libguestfs.gpg
 
+install-exec-hook:
+	$(LN_S) xdg/virt-builder $(DESTDIR)$(sysconfdir)/virt-builder
+
 # Build a small C index validator program.
 bin_PROGRAMS = virt-index-validate
 
diff --git a/configure.ac b/configure.ac
index 8ea2620..da7caa7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -116,6 +116,7 @@ gl_EARLY
 gl_INIT
 
 AC_PROG_LIBTOOL
+AC_PROG_LN_S
 
 # Define $(SED).
 m4_ifdef([AC_PROG_SED],[
-- 
1.8.3.1




More information about the Libguestfs mailing list