From 0181c8859e0b6aeab283c8494f461671ae0fc28a Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Tue, 6 Jan 2015 13:12:09 +0300 Subject: Use dh-smf on illumos --- debian/control | 3 ++- debian/rules | 12 +++++++++++- 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 , Andrew Pollock , Nigel Kersten , Stig Sandbeck Mathisen 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 -- cgit v1.2.3