maildomain to support /etc/mailname
authorH.Merijn Brand <h.m.brand@xs4all.nl>
Wed, 8 May 2013 14:12:56 +0000 (16:12 +0200)
committerRicardo Signes <rjbs@cpan.org>
Thu, 9 May 2013 15:20:41 +0000 (11:20 -0400)
Now backported to upstream dist/meta

Configure

index 31700cc..7e538d9 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -8868,7 +8868,13 @@ EOM
 cont=x
 while test "$cont"; do
        case "$MAILDOMAIN" in
-       '') maildomain="$myhostname$mydomain";;
+       '')
+               if $test -s /etc/mailname; then
+                       maildomain=`$cat /etc/mailname`
+               else
+                       maildomain="$myhostname$mydomain"
+               fi
+               ;;
        *)  maildomain="$MAILDOMAIN";;
        esac
        case "$cf_email" in