[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Ipf patching on 2.7 - help!



I have been trying to apply 001_ipf.patch to a completely standard 2.7
and have run aground - very grateful for any help.  I have studied man
make and various other sources, but am still stumped.

I have followed the instructions to the letter:

[instructions]
"This patch affects both kernel and userland. Make sure you have both
kenel and userland sources before applying this patch.

Apply by doing:
 # cd /usr/src
 # patch -p0 < 001_ipf.patch

 now, build a kernel. Eg, for GENERIC:

 # cd sys/arch/i386/conf
 # config GENERIC
 # cd ../compile/GENERIC
 # make clean && make depend && make
 # cp /bsd /bsd.old
 # cp bsd /bsd

 Export headers to userland

 # cd /usr/src
 # make includes

 And now rebuild userland

 # cd /usr/src/sbin/ipf
 # make obj && make cleandir && make && make install
 # cd /usr/src/sbin/ipnat
 # make obj && make cleandir && make && make install
 # cd /usr/src/sbin/ipfstat
 # make obj && make cleandir && make && make install
 # cd /usr/src/usr.sbin/ipmon
 # make obj && make cleandir && make && make install
 # cd /usr/src/usr.sbin/ipftest
 # make obj && make cleandir && make && make install"
 [quote from instructions ends]

except at the lines cd /usr/src, make includes, where the system responded
'don't know how to make includes' I changed to /usr/src/sys and asked it to
make includes - this process exited without an error message, and seemed
to have done something useful, but did I do the wrong thing?

I then get to the line:
# cd /usr/src/sbin/ipf
 # make obj && make cleandir && make && make install

which exited with the remark:

bash-2.04# make install
install -c -s -o root -g bin  -m 555 ipf
usage: install [-bCcpSs] [-B suffix] [-f flags] [-g group] [-m mode] [-o
owner] file1 file2
       install [-bCcpSs] [-B suffix] [-f flags] [-g group] [-m mode] [-o
owner] file1 ... fileN directory
       install  -d   [-g group] [-m mode] [-o owner] directory ...
*** Error code 64

And told me to look at:

Line 131 of /usr/share/mk/bsd.prog.mk , which reads:

realinstall:
.if defined(PROG)
 ${INSTALL} ${INSTALL_COPY} ${INSTALL_STRIP} -o ${BINOWN} -g ${BINGRP} \
     -m ${BINMODE} ${PROG} ${DESTDIR}${BINDIR}
.endif

So it seems to have worked until the 'make install' part - but
I lack the experience to dig myself out of the hole - very grateful
if anyone can tell me how to get the make install re-started,
preferably in language a child could understand.
Thanks for reading this,
Fergus


Fergus Wilde
Chetham's Library
Long Millgate
Manchester
M3  1SB
UK

Tel: +44 (0)161 834 7961
Fax: +44 (0)161 839 5797