diff options
author | agc <agc> | 1998-08-04 14:48:19 +0000 |
---|---|---|
committer | agc <agc> | 1998-08-04 14:48:19 +0000 |
commit | 05169081d569c1b53488c8c1e5c6cab9306552fd (patch) | |
tree | 80960ef771f660c62dd296046dc4de6845ff81c0 /net/nocol | |
parent | 1659b3fd17271d3ed942cfd5d681ab3e92f06ef7 (diff) | |
download | pkgsrc-05169081d569c1b53488c8c1e5c6cab9306552fd.tar.gz |
Move determination of the Fully Qualified Domain Name into the
post-patch: rule.
Diffstat (limited to 'net/nocol')
-rw-r--r-- | net/nocol/Makefile | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/net/nocol/Makefile b/net/nocol/Makefile index c11af9c8336..5a9649f4f4e 100644 --- a/net/nocol/Makefile +++ b/net/nocol/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1 1998/07/24 13:36:52 agc Exp $ +# $NetBSD: Makefile,v 1.2 1998/08/04 14:48:19 agc Exp $ # DISTNAME= nocol-4.2beta6 @@ -12,12 +12,11 @@ USE_PERL= yes INSTALL_TARGET= install root -.ifndef FQDN -FQDN!= /usr/sbin/host `/bin/hostname` | /usr/bin/awk '{ print $$1; exit }' -.endif - post-patch: - @${SED} -e 's|@prefix@|${PREFIX}|g' -e 's|@FQDN@|${FQDN}|g' ${FILESDIR}/answers > ${WRKSRC}/answers + @(hostname=`/bin/hostname`; \ + fqdn=`/usr/sbin/host $$hostname | /usr/bin/awk '{ print $$1; exit }'`; \ + ${SED} -e 's|@prefix@|${PREFIX}|g' -e "s|@FQDN@|$$fqdn|g" \ + ${FILESDIR}/answers > ${WRKSRC}/answers) do-configure: (cd ${WRKSRC}; ./Configure < answers) |