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
commit09cc9fc404855811133730f63fbea759ca5e52fd (patch)
tree13b0a31dd106b21cf73981c7c772775ccad07583 /mail/exmh
parent09b1c46a3f22eb845dce4ef8bc51c22010b1a007 (diff)
downloadpkgsrc-09cc9fc404855811133730f63fbea759ca5e52fd.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}}"