summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2013-07-19 16:47:02 +0200
committerMichael Biebl <biebl@debian.org>2013-07-19 18:36:14 +0200
commit7e2b7824805c147380dc614014c1ee81f157b3ed (patch)
treea2b76ebd1d9d6e2c4eb2bd1f984f2d704b4ab675
parent5208fd377ebc570f87cc3509c82ccda9bcac33ff (diff)
downloadconsolekit-7e2b7824805c147380dc614014c1ee81f157b3ed.tar.gz
Build and install udev-acl on Linux only
-rw-r--r--debian/consolekit.install2
-rw-r--r--debian/control4
-rwxr-xr-xdebian/rules14
3 files changed, 15 insertions, 5 deletions
diff --git a/debian/consolekit.install b/debian/consolekit.install
index 30ffe2d..be35036 100644
--- a/debian/consolekit.install
+++ b/debian/consolekit.install
@@ -15,5 +15,3 @@ lib/systemd/system/basic.target.wants/console-kit-log-system-start.service
lib/systemd/system/halt.target.wants/console-kit-log-system-stop.service
lib/systemd/system/poweroff.target.wants/console-kit-log-system-stop.service
lib/systemd/system/reboot.target.wants/console-kit-log-system-restart.service
-lib/udev/udev-acl
-lib/udev/rules.d/70-udev-acl.rules
diff --git a/debian/control b/debian/control
index 8691cfa..582c118 100644
--- a/debian/control
+++ b/debian/control
@@ -7,7 +7,9 @@ Build-Depends: debhelper (>= 9),
autotools-dev,
pkg-config,
libdbus-glib-1-dev (>= 0.30),
- libglib2.0-dev (>= 2.14.0),
+ libglib2.0-dev (>= 2.22.0),
+ libacl1-dev [linux-any],
+ libudev-dev [linux-any],
libx11-dev (>= 1.0.0),
libkvm-dev [kfreebsd-any],
xmlto,
diff --git a/debian/rules b/debian/rules
index a5738e0..713fe1f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,12 +3,15 @@
%:
dh $@ --with autoreconf
+ifeq ($(DEB_HOST_ARCH_OS),linux)
+CONFFLAGS = --enable-udev-acl
+endif
+
override_dh_auto_configure:
- dh_auto_configure -- \
+ dh_auto_configure -- $(CONFFLAGS) \
--libexecdir="\$$(prefix)/lib/ConsoleKit" \
--enable-pam-module \
--enable-docbook-docs \
- --enable-udev-acl \
--with-pid-file=/var/run/console-kit-daemon.pid \
--with-systemdsystemunitdir=/lib/systemd/system \
--with-pam-module-dir=/lib/$(DEB_HOST_MULTIARCH)/security
@@ -17,3 +20,10 @@ override_dh_auto_install:
dh_auto_install
install -m 755 debian/pam-foreground-compat.ck debian/tmp/usr/lib/ConsoleKit/run-session.d/
install -D -m 644 debian/libpam-ck-connector.pam-auth-update debian/tmp/usr/share/pam-configs/consolekit
+
+override_dh_install:
+ dh_install
+ifeq ($(DEB_HOST_ARCH_OS),linux)
+ dh_install -pconsolekit debian/tmp/lib/udev/
+endif
+