[PATCH 2/2] Install udev rules in system-default directory

From: Amit Shah
Date: Thu Aug 07 2014 - 09:09:56 EST


not-quite-Signed-off-by: Amit Shah <amit.shah@xxxxxxxxxx>
---
Makefile.am | 1 +
configure.ac | 8 ++++++++
2 files changed, 9 insertions(+)

diff --git a/Makefile.am b/Makefile.am
index f8490a3..a2b8173 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -8,6 +8,7 @@ sbin_PROGRAMS = rngd
bin_PROGRAMS = rngtest
man_MANS = rngd.8 rngtest.1
noinst_LIBRARIES = librngd.a
+udevrules_DATA = 90-virtio-rng.rules

rngd_SOURCES = rngd.h rngd.c rngd_entsource.h rngd_entsource.c \
rngd_linux.h rngd_linux.c util.c \
diff --git a/configure.ac b/configure.ac
index 27a2dba..4187aca 100644
--- a/configure.ac
+++ b/configure.ac
@@ -32,6 +32,14 @@ AC_ARG_WITH([libgcrypt],
[with_libgcrypt=check]
)

+PKG_PROG_PKG_CONFIG
+
+AC_ARG_WITH([udevrulesdir],
+ AS_HELP_STRING([--with-udevrulesdir=DIR], [Directory for udev rules]),
+ [],
+ [with_udevrulesdir=$($PKG_CONFIG --variable=udevdir udev)"/rules.d"])
+AC_SUBST([udevrulesdir], [$with_udevrulesdir])
+
dnl Make sure anyone changing configure.ac/Makefile.am has a clue
AM_MAINTAINER_MODE

--
1.9.3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/