summaryrefslogtreecommitdiff
path: root/src/udev/Makefile.am
diff options
context:
space:
mode:
authorIan Stakenvicius <axs@gentoo.org>2013-04-02 10:05:26 -0400
committerAnthony G. Basile <blueness@gentoo.org>2013-04-04 09:23:53 -0400
commitdd91c2dbcf34bac3b6fe30bc6ffeb25cfd219411 (patch)
tree72cada3bbad3a0b099f21c3578b1c749d106b03c /src/udev/Makefile.am
parent95c60af90b36fef54ef17dc81cfc8ec91b6ff99c (diff)
Move udevadm from sbin to bin
Follow upstream commit f432bb914499e2c28b43f592bb273f0a8664f352 but refactor the patch for eudev build system. Provide a compatibility symlink in sbindir for anything that hard-codes the path to udevadm Signed-off-by: Ian Stakenvicius <axs@gentoo.org> Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/udev/Makefile.am')
-rw-r--r--src/udev/Makefile.am13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/udev/Makefile.am b/src/udev/Makefile.am
index d88d72bc6b..929185b08d 100644
--- a/src/udev/Makefile.am
+++ b/src/udev/Makefile.am
@@ -12,10 +12,12 @@ AM_CPPFLAGS = \
-DUDEV_VERSION=\"$(UDEV_VERSION)\" \
-I $(top_srcdir)/src/libudev
-sbin_PROGRAMS = \
- udevd \
+bin_PROGRAMS = \
udevadm
+sbin_PROGRAMS = \
+ udevd
+
udevd_SOURCES = \
udevd.c
@@ -114,3 +116,10 @@ EXTRA_DIST = \
CLEANFILES = \
udev.pc
+
+# install udevadm symlink in sbindir
+install-exec-hook:
+ ln -sf ../bin/udevadm $(DESTDIR)$(sbindir)/udevadm
+
+uninstall-hook:
+ rm -Rf $(DESTDIR)$(sbindir)/udevadm