=> Bootstrap dependency digest>=20010302: found digest-20111104
=> Bootstrap dependency fetch-[0-9]*: found fetch-1.7
WARNING: [license.mk] Every package should define a LICENSE.
=> Checksum SHA1 OK for repackaged-nasd-1.3.tar.gz
=> Checksum RMD160 OK for repackaged-nasd-1.3.tar.gz
===> Installing dependencies for nasd-1.3nb1
=> Build dependency imake-[0-9]*: found imake-1.0.3nb1
=> Build dependency imake-[0-9]*: found imake-1.0.3nb1
=> Build dependency makedepend-[0-9]*: found makedepend-1.0.3
=> Build dependency perl>=5.0: found perl-5.14.2nb5
=> Build dependency checkperms>=1.1: found checkperms-1.11
===> Overriding tools for nasd-1.3nb1
===> Extracting for nasd-1.3nb1
===> Patching for nasd-1.3nb1
/bin/mkdir -p /tmp/pkgsrc/net/nasd/work/nasd-1.3/include/nasd/netbsd
/bin/mkdir -p /tmp/pkgsrc/net/nasd/work/nasd-1.3/common/netbsd
=> Applying pkgsrc patches for nasd-1.3nb1
===> Creating toolchain wrappers for nasd-1.3nb1
===> Configuring for nasd-1.3nb1
=> Checking for portability problems in extracted files
cd /tmp/pkgsrc/net/nasd/work/nasd-1.3 && /usr/bin/env NASD_DESTDIR=/usr/pkg/nasd ./itomf -m /usr/pkg/bin/makedepend -x /usr/pkg/lib/X11/config
Legacy library stat.pl will be removed from the Perl core distribution in the next major release. Please install it from the CPAN distribution Perl4::CoreLibs. It is being used at (eval 1), line 57.
cat: /etc/redhat-release: No such file or directory
Use of uninitialized value $rh_ver in numeric lt (<) at (eval 1) line 373, <DATA> line 557.
Use of uninitialized value $rh_ver in concatenation (.) or string at (eval 1) line 375, <DATA> line 557.

Your Redhat  system is too old to compile NASD;nIf you think this is really RH5.x or newer, check /etc/redhat-release.
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/net/nasd
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/net/nasd