From 6ca0272670fbb165e2069da53900581292ad278b Mon Sep 17 00:00:00 2001 From: wennmach Date: Thu, 6 Jan 2000 17:02:47 +0000 Subject: Make this Makefile work again. A block of garbage was imported by someone in version 1.6 and somebody else removed the wrong pieces in version 1.7. And if someone (or somebody else) wants to replace awk by ${AWK}, please test thoroughly before committing. Thomas Klausner (wiz@netbsd.org) pointed me to this broken Makefile. --- misc/jitterbug/Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'misc/jitterbug') diff --git a/misc/jitterbug/Makefile b/misc/jitterbug/Makefile index c2d6e18d81c..c42f8fa29a5 100644 --- a/misc/jitterbug/Makefile +++ b/misc/jitterbug/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.8 1999/12/20 05:31:05 sakamoto Exp $ +# $NetBSD: Makefile,v 1.9 2000/01/06 17:02:47 wennmach Exp $ DISTNAME= jitterbug-1.6.2 WRKSRC= ${WRKDIR}/${PKGNAME}/source @@ -42,8 +42,7 @@ JB_CONFIGDIR= ${JB_USER}/config JB_LOCALMAIL?= ${JB_PACKAGE}-bugs .if !defined(JB_FQHOSTNAME) -JB_HOSTNAME!= /bin/hostname -JB_FQHOSTNAME!= ${NSLOOKUP} ${JB_HOSTNAME} | ${AWK} '/^Name: / { print $$2; exit }' +JB_FQHOSTNAME!= (${HOSTCMD} `/bin/hostname` 2>/dev/null || echo totally.unknown.domain) | /usr/bin/awk '{ print $$1; exit }' .endif JB_EMAIL?= ${JB_LOCALMAIL}@${JB_FQHOSTNAME} -- cgit v1.2.3