X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=README.bsd;h=a909a4ff849cd48e655febfcfa7e8827d3120cdb;hp=1d8988fe8553e3a17a0646368ad5c90ab6a93116;hb=262600f5df1461ecbd29ef3a2579e477bb397769;hpb=bbe9c77aafc5d183eb3c29879563e4c9b95bc1b6 diff --git a/README.bsd b/README.bsd index 1d8988f..a909a4f 100644 --- a/README.bsd +++ b/README.bsd @@ -1,15 +1,9 @@ -Installation instructions for installing ppp-2.2 on FreeBSD and +Installation instructions for installing ppp-2.3 on FreeBSD and NetBSD systems. -This package supports NetBSD-1.0 and FreeBSD-2.0. It should work -on later systems (it works on NetBSD-current as of this writing). -Modloading is not yet supported. - -I have code which should work on earlier systems (386BSD, NetBSD-0.9, -FreeBSD-1.1.5.1, etc.), but it is not included in this package because -I have no way to test or support it. If you are committed to one of -these earlier versions and you are willing to try out some code -without needing major hand-holding, contact me (paulus@cs.anu.edu.au). +This package supports NetBSD-current, NetBSD-1.2, NetBSD-1.1, +FreeBSD-2.1, and FreeBSD-2.0. Modloading is not supported. I have +code which may work on earlier systems; contact me if you need it. To install PPP, you need to rebuild your kernel to include the latest version of the PPP driver, as well as compiling and installing the @@ -19,14 +13,14 @@ reboot with the new kernel (you'll have to reboot with the new kernel before you can run them, of course). The following commands should compile and install the user-level -applications (in the ppp-2.2 directory): +applications (in the ppp-2.3 directory): ./configure make make install (you need to be root for this) The process of updating the kernel source files is now largely -automated. In the ppp-2.2 directory, issue the command: +automated. In the ppp-2.3 directory, issue the command: make kernel @@ -35,56 +29,62 @@ of several files into /sys, patch other files, and finally give you instructions about modifying your kernel configuration file (if necessary), rebuilding the kernel and rebooting. -If you want to do the process by hand, read on... +If you want to do the process by hand, read the next section. Updating the kernel ppp code. ------------------------------ +***************************** You need to update several files in the /sys/net directory, and patch -some other files under /sys. +some other files under /sys. The details depend on which operating +system you're running. + + +NetBSD. +======= -For NetBSD-1.0, copy the following files to /sys/net: +Copy the following files to /sys/net: net/if_ppp.h net/ppp-comp.h net/ppp_defs.h - netbsd/bsd-comp.c - netbsd/if_ppp.c - netbsd/if_pppvar.h - netbsd/netisr.h - netbsd/ppp_tty.c - netbsd/slcompress.c - netbsd/slcompress.h + netbsd-1.1/bsd-comp.c + netbsd-1.1/if_ppp.c + netbsd-1.1/if_pppvar.h + netbsd-1.1/ppp-deflate.c + netbsd-1.1/ppp_tty.c + netbsd-1.1/slcompress.c + netbsd-1.1/slcompress.h + common/zlib.c + common/zlib.h -You then need to patch /sys/conf/files and /sys/conf/files.newconf -using the commands: +You may need to edit /sys/conf/files to make sure it contains entries +for if_ppp.c, ppp_tty.c, bsd-comp.c, ppp-deflate.c and zlib.c. +Depending on whether your port uses the old-style or new-style config +files, these entries will look like this (new-style): - patch -p -N -d /sys/conf