summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2012-11-09 12:55:37 +0000
committerIgor Pashev <pashev.igor@gmail.com>2012-11-09 13:08:27 +0000
commitc97b3d93cac1ea8efefc2ea068275e846b0a0f2f (patch)
treef7a058361c2bb64d4a8bf7f1ac15fd826a8c15a7
parent62c6453eee5653fb87f6cc68a8c89650a80dfe2e (diff)
downloadconsolekit-c97b3d93cac1ea8efefc2ea068275e846b0a0f2f.tar.gz
Install systemd files only on linux
-rw-r--r--debian/changelog6
-rw-r--r--debian/consolekit.install8
-rwxr-xr-xdebian/rules19
3 files changed, 24 insertions, 9 deletions
diff --git a/debian/changelog b/debian/changelog
index 7580d00..f0136f3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+consolekit (0.4.5-3+dyson1) UNRELEASED; urgency=low
+
+ * Install systemd files only on linux
+
+ -- Igor Pashev <pashev.igor@gmail.com> Fri, 09 Nov 2012 12:54:55 +0000
+
consolekit (0.4.5-3) unstable; urgency=low
* Strip debian/tmp/ from .install files.
diff --git a/debian/consolekit.install b/debian/consolekit.install
index be35036..41dcc23 100644
--- a/debian/consolekit.install
+++ b/debian/consolekit.install
@@ -7,11 +7,3 @@ var/log/ConsoleKit/
usr/sbin/
usr/bin/
debian/90consolekit etc/X11/Xsession.d/
-lib/systemd/system/console-kit-daemon.service
-lib/systemd/system/console-kit-log-system-start.service
-lib/systemd/system/console-kit-log-system-stop.service
-lib/systemd/system/console-kit-log-system-restart.service
-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
diff --git a/debian/rules b/debian/rules
index 2e8d504..0269691 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,18 +1,35 @@
#!/usr/bin/make -f
+include /usr/share/dpkg/architecture.mk
+
%:
dh $@ --with autoreconf
+ifeq (linux, $(DEB_HOST_ARCH_OS))
+with-systemd := --with-systemdsystemunitdir=/lib/systemd/system
+else
+with-systemd :=
+endif
+
+
override_dh_auto_configure:
dh_auto_configure -- \
--libexecdir="\$$(prefix)/lib/ConsoleKit" \
--enable-pam-module \
--enable-docbook-docs \
--with-pid-file=/var/run/console-kit-daemon.pid \
- --with-systemdsystemunitdir=/lib/systemd/system \
+ $(with-systemd) \
--with-pam-module-dir=/lib/$(DEB_HOST_MULTIARCH)/security
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 (linux, $(DEB_HOST_ARCH_OS))
+ dh_install -pconsolekit lib/systemd
+endif
+
+