summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2014-01-03 16:54:55 +0400
committerIgor Pashev <pashev.igor@gmail.com>2014-01-03 16:54:55 +0400
commitbf5ebfa27c992df07faee11a520dbdc65efa4a9e (patch)
tree316cc78e70b3d3465a3d0b289a7c8802463e489b
parent656f8dc0f231c373e59d289580d9e2b53f37d652 (diff)
downloadexim4-bf5ebfa27c992df07faee11a520dbdc65efa4a9e.tar.gz
Made update-exim4defaults noop on Dyson
-rw-r--r--debian/changelog1
-rw-r--r--debian/exim4-config.postinst6
-rw-r--r--debian/update-exim4defaults7
3 files changed, 12 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog
index fbfda40..8cdca62 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,7 @@ exim4 (4.82-3+dyson1) UNRELEASED; urgency=low
* Added SMF service
* Build depends on dh-smf [illumos-any]
* Build depends on libkstat-dev [illumos-any]
+ * Made update-exim4defaults noop on Dyson
-- Igor Pashev <pashev.igor@gmail.com> Wed, 01 Jan 2014 14:32:47 +0400
diff --git a/debian/exim4-config.postinst b/debian/exim4-config.postinst
index beaabf5..6034437 100644
--- a/debian/exim4-config.postinst
+++ b/debian/exim4-config.postinst
@@ -249,8 +249,10 @@ case "$1" in
# done
#fi
- # generate defaultfile
- update-exim4defaults --init
+ if ! [ -x /usr/bin/smf_present ]; then
+ # generate defaultfile
+ update-exim4defaults --init
+ fi
# source $UE4CC - needed for not
# debconf-managed values in there.
diff --git a/debian/update-exim4defaults b/debian/update-exim4defaults
index 1725f53..a28a3d5 100644
--- a/debian/update-exim4defaults
+++ b/debian/update-exim4defaults
@@ -2,6 +2,13 @@
# update-exim4defaults(8): manage entries in /etc/default/exim4
# per script
+if [ -x /usr/bin/smf_present ]; then
+ echo "$0: this program does nothing on Dyson,"
+ echo "$0: to configure Exim4 use SMF service"
+ echo "$0: svc:/network/smtp:exim4"
+ exit 0
+fi
+
if [ -n "$EX4DEBUG" ]; then
echo "now debugging $0 $@"
set -x