1. Build tools.
cd src ; build.sh [options] tools
I recommend passing -m MACHINE, -T TOOLDIR, -O OBJDIR (or -M OBJDIR),
-D DESTDIR, and -R RELEASEDIR, as options to build.sh, because the
defaults are difficult to understand.
2. Create obj directories through out the src tree.
cd src ; ${TOOLDIR}/bin/nbmake-${MACHINE} obj
3. Install include files into ${DESTDIR}/include.
cd src ; ${TOOLDIR}/bin/nbmake-${MACHINE} includes
4. Build and install necessary libraries into ${DESTDIR}.
At least libc will be needed, and perhaps others too.
cd src/lib/libc ; ${TOOLDIR}/bin/nbmake-${MACHINE} build_install
5. Now you can build npfctl.
cd src/usr.sbin/npf/npfctl ; ${TOOLDIR}/bin/nbmake-${MACHINE} dependall
The above instructions should allow you to build a new version of
npfctl on an old version of NetBSD, but you probably won't be able to
run it, because it may depend on new features in libc; and you
probably won't be able to install a new version of libc with an old
kernel, because it may depend on new kernel interfaces.
I got the source from the CVS using below command ,
export CVSROOT="anoncvs%anoncvs.NetBSD.org@localhost:/cvsroot"
cd /usr
cvs checkout -A -P src
Am I using the correct command which can checkout the current
development version of the source?
That looks like the correct command.
However, the fact that "grep -R BPF_COP" didn't find the expected line
in src/sys/net/bpf.h suggests that it didn't work.
the development version is 7.99.1?
Yes.
--apb (Alan Barrett)