From 6896b3c90de4725b0ddc8e62516b9f4afc32f8bf Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Wed, 21 Jun 2017 15:00:21 +0300 Subject: Add SMF service --- debian/rules | 9 +++++++++ debian/sudo-smf.xml | 26 ++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 debian/sudo-smf.xml diff --git a/debian/rules b/debian/rules index 3f29600..30c9206 100755 --- a/debian/rules +++ b/debian/rules @@ -148,6 +148,15 @@ ifeq ($(DEB_HOST_ARCH_OS),linux) debian/sudo-ldap/lib/systemd/system/sudo.service endif +ifeq ($(DEB_HOST_ARCH_OS),illumos) + # we don't need postinst scripts (and dh-smf), as this service is for boot time only + set -x; for p in sudo sudo-ldap; do \ + mkdir -p debian/$$p/lib/svc/manifest/system && \ + install -o root -g root -m 0644 debian/sudo-smf.xml \ + debian/$$p/lib/svc/manifest/system/sudo.xml ; \ + done +endif + binary-indep: build install binary-arch: build install diff --git a/debian/sudo-smf.xml b/debian/sudo-smf.xml new file mode 100644 index 0000000..df93dcd --- /dev/null +++ b/debian/sudo-smf.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3