summaryrefslogtreecommitdiff
path: root/mail/exmh
diff options
context:
space:
mode:
authorsketch <sketch@pkgsrc.org>2009-01-14 12:20:57 +0000
committersketch <sketch@pkgsrc.org>2009-01-14 12:20:57 +0000
commit16f14133b69de5a1e061a538cd67952e531bd776 (patch)
tree13b0a31dd106b21cf73981c7c772775ccad07583 /mail/exmh
parente3b90140c144befcdacb7c5886fb4612adf2e053 (diff)
downloadpkgsrc-16f14133b69de5a1e061a538cd67952e531bd776.tar.gz
Get rid of `hostname -s` in pkgsrc, on Solaris it sets the hostname to "-s".
Diffstat (limited to 'mail/exmh')
-rw-r--r--mail/exmh/files/build4
1 files changed, 2 insertions, 2 deletions
diff --git a/mail/exmh/files/build b/mail/exmh/files/build
index 992651a4b63..3d458ca2896 100644
--- a/mail/exmh/files/build
+++ b/mail/exmh/files/build
@@ -1,6 +1,6 @@
#! /bin/sh
#
-# $NetBSD: build,v 1.2 2006/10/20 08:15:15 dsainty Exp $
+# $NetBSD: build,v 1.3 2009/01/14 12:20:57 sketch Exp $
# FreeBSD Id: build,v 1.5 1997/08/21 08:09:56 peter Exp
#
@@ -29,7 +29,7 @@ fi
if [ -d ${PREFIX}/share/faces ]; then
FACES=${PREFIX}/share/faces #dir
- shortname="`hostname -s`"
+ shortname="`hostname | sed -e 's/\..*//'`"
domain="`hostname | sed -e s/^${shortname}// -e s/^.// | tr A-Z a-z`"
if [ "${domain}" != "" ]; then
DOMAIN="{${domain}}"