diff options
author | agc <agc@pkgsrc.org> | 1998-08-04 14:48:19 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 1998-08-04 14:48:19 +0000 |
commit | f8e67602ad18132810a16df8e0d1274d66aa5a63 (patch) | |
tree | 80960ef771f660c62dd296046dc4de6845ff81c0 /net | |
parent | e1d253bf2a40530ff4c549ee1c84df81908bbb54 (diff) | |
download | pkgsrc-f8e67602ad18132810a16df8e0d1274d66aa5a63.tar.gz |
Move determination of the Fully Qualified Domain Name into the
post-patch: rule.
Diffstat (limited to 'net')
-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) |