<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>42164</bug_id>
          
          <creation_ts>2004-02-19 11:09 0000</creation_ts>
          <short_desc>courier MTA pkg_config extracts domainname from hostname</short_desc>
          <delta_ts>2004-03-09 21:00:19 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Server</component>
          <version>1.4</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>sn.ml@keijukammari.fi</reporter>
          <assigned_to>iggy@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>sn.ml@keijukammari.fi</who>
            <bug_when>2004-02-19 11:09:15 0000</bug_when>
            <thetext>The default config made by ebuild ... config for courier extracts the configuration domain from hostname instead of using the real domainname.

Diff that first takes the domainname from the command domainname and if this returns &quot;(none)&quot; tries to extract the domainname from the hostname

======================================================= diff -uN
--- old/courier-0.44.2.ebuild   2004-02-09 03:32:44.000000000 +0200
+++ new/courier-0.44.2.ebuild   2004-02-19 20:58:04.742233944 +0200
@@ -307,9 +307,12 @@
        mailhost=`hostname`
        export mailhost
 
-       domainname=`echo ${mailhost} | sed -e &quot;s/[^\.]*\.\(.*\)/\1/&quot;`
+       domainname=`domainname`
        export domainname

+       if [ &quot;x$domainname&quot; = &quot;x(none)&quot; ] ; then
+               domainname=`echo ${mailhost} | sed -e &quot;s/[^\.]*\.\(.*\)/\1/&quot;`
+       fi
 
        if [ ${ROOT} = &quot;/&quot; ] ; then
                file=${ROOT}/etc/courier/locals
============================================================ END of diff</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>iggy@gentoo.org</who>
            <bug_when>2004-03-09 21:00:19 0000</bug_when>
            <thetext>this is in cvs, thanks for the fix</thetext>
          </long_desc>
      
    </bug>

</bugzilla>