summaryrefslogtreecommitdiff
path: root/extras/udev-acl/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'extras/udev-acl/Makefile.am')
-rw-r--r--extras/udev-acl/Makefile.am15
1 files changed, 15 insertions, 0 deletions
diff --git a/extras/udev-acl/Makefile.am b/extras/udev-acl/Makefile.am
new file mode 100644
index 0000000000..f1a5fbd6c1
--- /dev/null
+++ b/extras/udev-acl/Makefile.am
@@ -0,0 +1,15 @@
+include $(top_srcdir)/Makefile.am.inc
+
+udevhomedir = $(udev_prefix)/lib/udev
+udevhome_PROGRAMS = udev-acl
+
+udev_acl_SOURCES = udev-acl.c
+udev_acl_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS)
+udev_acl_LDADD = -lacl $(top_builddir)/libudev/libudev.la $(GLIB_LIBS)
+
+udevrulesdir = $(udev_prefix)/lib/udev/rules.d
+dist_udevrules_DATA = 70-acl.rules
+
+install-exec-hook:
+ mkdir -p $(DESTDIR)$(prefix)/lib/ConsoleKit/run-session.d
+ ln -sf $(udevhomedir)/udev-acl $(DESTDIR)$(prefix)/lib/ConsoleKit/run-session.d/udev-acl.ck