diff options
author | crees <crees@FreeBSD.org> | 2016-01-01 02:04:31 +0800 |
---|---|---|
committer | crees <crees@FreeBSD.org> | 2016-01-01 02:04:31 +0800 |
commit | 0244fb077eb175bd590143ac51489bd38cae3461 (patch) | |
tree | c0ec6fcfb58aea065f86c92c189d1ef38b388aae /mail/automx | |
parent | 009b06a4dca2ef380830e0138f1f026012bab083 (diff) | |
download | freebsd-ports-gnome-0244fb077eb175bd590143ac51489bd38cae3461.tar.gz freebsd-ports-gnome-0244fb077eb175bd590143ac51489bd38cae3461.tar.zst freebsd-ports-gnome-0244fb077eb175bd590143ac51489bd38cae3461.zip |
Fix bashism
PR: ports/164901
Submitted by: Martin Waschbuesch
Diffstat (limited to 'mail/automx')
-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 0aee8be7e1d5..c2abc5f083e4 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 2cf837b92d75..0862b19f24ba 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 |