summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2015-01-06 13:12:09 +0300
committerIgor Pashev <pashev.igor@gmail.com>2015-01-06 13:12:09 +0300
commit0181c8859e0b6aeab283c8494f461671ae0fc28a (patch)
tree8f68552c09e21bb32e2dd2406c4065f3357268ed
parent368179019472ffddda01367f1ab14f214a1c11e5 (diff)
downloadpuppet-0181c8859e0b6aeab283c8494f461671ae0fc28a.tar.gz
Use dh-smf on illumos
-rw-r--r--debian/control3
-rwxr-xr-xdebian/rules12
2 files changed, 13 insertions, 2 deletions
diff --git a/debian/control b/debian/control
index 5157a8a25..2d2112364 100644
--- a/debian/control
+++ b/debian/control
@@ -5,7 +5,8 @@ Maintainer: Puppet Package Maintainers <pkg-puppet-devel@lists.alioth.debian.org
Uploaders: Micah Anderson <micah@debian.org>, Andrew Pollock <apollock@debian.org>, Nigel Kersten <nigel@explanatorygap.net>, Stig Sandbeck Mathisen <ssm@debian.org>
Build-Depends:
debhelper (>= 9~),
- dh-systemd,
+ dh-systemd [linux-any],
+ dh-smf [illumos-any],
facter,
rake,
ruby-hiera,
diff --git a/debian/rules b/debian/rules
index 6bd99e40c..e72cc5051 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,11 +1,21 @@
#!/usr/bin/make -f
# -*- makefile -*-
+include /usr/share/dpkg/default.mk
+
# Verbose mode
export DH_VERBOSE=1
+with :=
+ifeq (illumos,$(DEB_HOST_ARCH_OS))
+with += smf
+endif
+ifeq (linux,$(DEB_HOST_ARCH_OS))
+with += systemd
+endif
+
%:
- dh $@ --with=systemd
+ dh $@ $(with:%=--with %)
override_dh_installinit:
dh_installinit -ppuppetmaster