]> git.ozlabs.org Git - ppp.git/blobdiff - README.bsd
Note that the inbound and outbound qualifiers can be used with
[ppp.git] / README.bsd
index a45abb34ee14b7b887c2e8f8159d100d0a537495..c62619a1068dc1ffae336c4ea7cdce9884af6e18 100644 (file)
@@ -1,9 +1,8 @@
-Installation instructions for installing ppp-2.2.1 on FreeBSD and
-NetBSD systems.
+Installation instructions for installing ppp-2.4 on FreeBSD.
 
-This package supports NetBSD-1.1, NetBSD-1.0, FreeBSD-2.0, and
-FreeBSD-1.1.5.1.  It should work on later systems.  Modloading is not
-yet supported.
+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
@@ -13,14 +12,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.1 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.1 directory, issue the command:
+automated.  In the ppp-2.3 directory, issue the command:
 
        make kernel
 
@@ -39,61 +38,50 @@ You need to update several files in the /sys/net directory, and patch
 some other files under /sys.  The details depend on which operating
 system you're running.
 
-NetBSD-1.1.
-===========
-
-Copy the following files to /sys/net:
-
-       net/ppp-comp.h
-       netbsd-1.1/if_ppp.c
-       netbsd-1.1/ppp_tty.c
 
-
-NetBSD-1.0.
-===========
+NetBSD.
+=======
 
 Copy the following files to /sys/net:
 
        net/if_ppp.h
        net/ppp-comp.h
        net/ppp_defs.h
-       netbsd-1.0/bsd-comp.c
-       netbsd-1.0/if_ppp.c
-       netbsd-1.0/if_pppvar.h
-       netbsd-1.0/netisr.h
-       netbsd-1.0/ppp_tty.c
-       netbsd-1.0/slcompress.c
-       netbsd-1.0/slcompress.h
-
-You then need to patch /sys/conf/files and /sys/conf/files.newconf
-using the commands:
+       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
 
-       patch -p -N -d /sys/conf <netbsd-1.0/files.patch
-       patch -p -N -d /sys/conf <netbsd-1.0/files.newconf.patch
+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):
 
-The next step is to patch the file containing the code which
-dispatches software interrupts.  Unfortunately, this code is in the
-architecture-dependent files, so the file to patch depends on which
-NetBSD port you are using:
+       file net/if_ppp.c               ppp             needs-count
+       file net/ppp_tty.c              ppp
+       file net/bsd-comp.c             ppp
+       file net/ppp-deflate.c          ppp
+       file net/zlib.c                 ppp
 
-Port   File to patch                      Patch file is netbsd-1.0/arch/
-----   -------------                      ------------------------------
-amiga  /sys/arch/amiga/amiga/machdep.c    amiga/machdep.c.patch
-hp300  /sys/arch/hp300/hp300/machdep.c    hp300/machdep.c.patch
-i386   /sys/arch/i386/isa/icu.s           i386/icu.s.patch
-mac68k /sys/arch/mac68k/mac68k/machdep.c  mac68k/machdep.c.patch
-pc532  /sys/arch/pc532/pc532/locore.s     pc532/locore.s.patch
-pmax   /sys/arch/pmax/pmax/trap.c         pmax/trap.c.patch
-sparc  /sys/arch/sparc/sparc/intr.c       sparc/intr.c.patch
-sun3   /sys/arch/sun3/sun3/isr.c          sun3/isr.c.patch
+or this (old-style):
 
-To do the patch, you would use a command something like this:
+       net/if_ppp.c            optional ppp device-driver
+       net/ppp_tty.c           optional ppp
+       net/bsd-comp.c          optional ppp
+       net/ppp-deflate.c       optional ppp
+       net/zlib.c              optional ppp
 
-       patch -p -d /sys/arch/i386/isa <netbsd-1.0/arch/i386/icu.s.patch
+If you use config.old or config.new, you will need to edit
+/sys/conf/files.oldconf or /sys/conf/files.newconf respectively.
 
 
-FreeBSD-2.0.
-============
+FreeBSD.
+========
 
 Copy the following files to /sys/net:
 
@@ -103,42 +91,22 @@ Copy the following files to /sys/net:
        freebsd-2.0/bsd-comp.c
        freebsd-2.0/if_ppp.c
        freebsd-2.0/if_pppvar.h
+       freebsd-2.0/ppp-deflate.c
        freebsd-2.0/ppp_tty.c
        freebsd-2.0/pppcompress.c
        freebsd-2.0/pppcompress.h
+       common/zlib.c
+       common/zlib.h
 
-You then need to patch /sys/conf/files using the command:
-
-       patch -p -N -d /sys/conf <freebsd-2.0/files.patch
-
-
-FreeBSD-1.1.5.1.
-================
-
-Copy the following files to /sys/net:
-
-       net/if_ppp.h
-       net/ppp-comp.h
-       net/ppp_defs.h
-       freebsd-old/bsd-comp.c
-       freebsd-old/if_ppp.c
-       freebsd-old/if_pppvar.h
-       freebsd-old/ppp_tty.c
-       freebsd-old/slcompress.c
-       freebsd-old/slcompress.h
-
-You then need to patch /sys/conf/files using the command:
-
-       patch -p -N -d /sys/conf <freebsd-old/files.patch
-
-Then patch /sys/net/netisr.h with the command:
-
-       patch -p -N -d /sys/net <freebsd-old/netisr.h.patch
-
-The next step is to patch the file containing the code which
-dispatches software interrupts with the following command:
+You then 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.  These
+entries should look like this:
 
-       patch -p -N -d /sys/i386/isa <freebsd-old/icu.s.patch
+       net/if_ppp.c            optional ppp device-driver
+       net/ppp_tty.c           optional ppp
+       net/bsd-comp.c          optional ppp
+       net/ppp-deflate.c       optional ppp
+       net/zlib.c              optional ppp
 
 
 Configuring and making the new kernel.
@@ -153,11 +121,11 @@ If it doesn't, add one.  The `2' is the number of ppp interfaces to
 configure, that is, the maximum number of simultaneous ppp connections
 you will be able to have; change it as required.
 
-Next, run config or config.new in the directory containing the
-configuration file, giving the configuration file name as an argument.
-Then cd to the compilation directory and make the kernel.  For the
-i386 port of NetBSD, with a configuration file called CONF, this
-involves the following commands:
+Next, run config (or config.old or config.new) in the directory
+containing the configuration file, giving the configuration file name
+as an argument.  Then cd to the compilation directory and make the
+kernel.  For the i386 port of NetBSD, with a configuration file called
+CONF, this involves the following commands:
 
        cd /sys/arch/i386/conf
        /usr/sbin/config CONF