diff options
author | crees <crees@FreeBSD.org> | 2015-12-31 18:04:31 +0000 |
---|---|---|
committer | crees <crees@FreeBSD.org> | 2015-12-31 18:04:31 +0000 |
commit | 4a518c7cdb034e2bad6ffb6057e292ae8d057d2a (patch) | |
tree | c0ec6fcfb58aea065f86c92c189d1ef38b388aae | |
parent | 0d1a165060f9d4569ad1ee64ec1b3e503924c51e (diff) | |
download | FreeBSD-ports-4a518c7cdb034e2bad6ffb6057e292ae8d057d2a.zip FreeBSD-ports-4a518c7cdb034e2bad6ffb6057e292ae8d057d2a.tar.gz |
Fix bashism
PR: ports/164901
Submitted by: Martin Waschbuesch
-rw-r--r-- | mail/automx/Makefile | 2 | ||||
-rw-r--r-- | mail/automx/files/patch-src-automx-test | 16 |
2 files changed, 10 insertions, 8 deletions
diff --git a/mail/automx/Makefile b/mail/automx/Makefile index 0aee8be..c2abc5f 100644 --- a/mail/automx/Makefile +++ b/mail/automx/Makefile @@ -3,7 +3,7 @@ PORTNAME= automx PORTVERSION= 0.10.2 DISTVERSIONPREFIX= v -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= mail MAINTAINER= crees@FreeBSD.org diff --git a/mail/automx/files/patch-src-automx-test b/mail/automx/files/patch-src-automx-test index 2cf837b..0862b19 100644 --- a/mail/automx/files/patch-src-automx-test +++ b/mail/automx/files/patch-src-automx-test @@ -1,5 +1,5 @@ ---- src/automx-test.orig 2014-01-03 08:38:38.000000000 +0000 -+++ src/automx-test 2014-04-14 22:20:41.000000000 +0100 +--- src/automx-test.orig 2014-04-26 16:16:55 UTC ++++ src/automx-test @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh @@ -31,7 +31,7 @@ PROFILE="$1" else echo "Provide the mail address for which configuration settings should be retrieved." -@@ -44,7 +46,7 @@ +@@ -44,7 +46,7 @@ MBCRESPONSE="$(mktemp /tmp/${PROGRAM_NAM # Test Mozilla schema AUTOCONF="autoconfig.$DOMAIN" @@ -40,7 +40,7 @@ CON="http://$AUTOCONF/mail/config-v1.1.xml?emailaddress=$PROFILE" echo echo "Testing Autoconfig ..." -@@ -60,13 +62,13 @@ +@@ -60,13 +62,13 @@ fi # Test Microsoft schema AUTODISC="autodiscover.$DOMAIN" @@ -48,7 +48,8 @@ +if [ -z "$(dig +short $AUTODISC)" ]; then # default domain does not exist, try to discover non-default AUTODISC="$(dig +short -t srv _autodiscover._tcp.$DOMAIN)" - AUTODISC="${AUTODISC//* /}" +- AUTODISC="${AUTODISC//* /}" ++ AUTODISC="${AUTODISC##* }" AUTODISC="${AUTODISC%.*}" fi -if [[ $AUTODISC ]]; then @@ -56,7 +57,7 @@ # Test Microsoft Outlook schema CON="https://$AUTODISC/autodiscover/autodiscover.xml" cat <<-REQ >$OLREQUEST -@@ -111,13 +113,13 @@ +@@ -111,13 +113,13 @@ fi # Test mobileconfig schema AUTODISC="autodiscover.$DOMAIN" @@ -64,7 +65,8 @@ +if [ -z "$(dig +short $AUTODISC)" ]; then # default domain does not exist, try to discover non-default AUTODISC="$(dig +short -t srv _autodiscover._tcp.$DOMAIN)" - AUTODISC="${AUTODISC//* /}" +- AUTODISC="${AUTODISC//* /}" ++ AUTODISC="${AUTODISC##* }" AUTODISC="${AUTODISC%.*}" fi -if [[ $AUTODISC ]]; then |