Richard Gooch | 8e3b892 | 2000-04-22 00:57:38 +0000 | [diff] [blame] | 1 | FOLLOW THESE STEPS: |
| 2 | =================== |
Rusty Russell | 3156335 | 2000-10-11 05:50:35 +0000 | [diff] [blame] | 3 | 0) If you want to try some fun extensions, try: |
| 4 | % make patch-o-matic KERNEL_DIR=<<where-your-kernel-is>> |
Richard Gooch | 8e3b892 | 2000-04-22 00:57:38 +0000 | [diff] [blame] | 5 | |
Rusty Russell | 8c245b5 | 2000-07-14 08:01:22 +0000 | [diff] [blame] | 6 | 1) If /usr/src/linux contains the kernel headers of a recent 2.4 |
| 7 | kernel: |
Richard Gooch | 8e3b892 | 2000-04-22 00:57:38 +0000 | [diff] [blame] | 8 | % make |
| 9 | |
Rusty Russell | 8c245b5 | 2000-07-14 08:01:22 +0000 | [diff] [blame] | 10 | Otherwise: |
| 11 | % make KERNEL_DIR=<<where-your-kernel-is>> |
Rusty Russell | 7fae6fa | 2000-05-31 06:32:02 +0000 | [diff] [blame] | 12 | |
Rusty Russell | 8c245b5 | 2000-07-14 08:01:22 +0000 | [diff] [blame] | 13 | 2) Finally, you need to to install the shared libraries, and the binary: |
Rusty Russell | 7fae6fa | 2000-05-31 06:32:02 +0000 | [diff] [blame] | 14 | # make install |
Rusty Russell | 8c245b5 | 2000-07-14 08:01:22 +0000 | [diff] [blame] | 15 | Or |
| 16 | # make install KERNEL_DIR=<<where-your-kernel-is>> |
Rusty Russell | 7fae6fa | 2000-05-31 06:32:02 +0000 | [diff] [blame] | 17 | |
Rusty Russell | 8c245b5 | 2000-07-14 08:01:22 +0000 | [diff] [blame] | 18 | That's it! |
| 19 | ================ |
| 20 | Problems you may encounter: |
| 21 | |
Rusty Russell | 3156335 | 2000-10-11 05:50:35 +0000 | [diff] [blame] | 22 | 1) This package requires a 2.4.0 test9 kernel, or above. |
Rusty Russell | 8c245b5 | 2000-07-14 08:01:22 +0000 | [diff] [blame] | 23 | |
| 24 | 2) If you get the kernel directory wrong, you may see a message like: |
| 25 | Please try `make KERNEL_DIR=path-to-correct-kernel' |
| 26 | |
| 27 | 3) If you want to specify alternate directories for installation |
| 28 | (instead of /usr/local/ bin lib man), do this: |
Richard Gooch | 8e3b892 | 2000-04-22 00:57:38 +0000 | [diff] [blame] | 29 | |
| 30 | % make BINDIR=/usr/bin LIBDIR=/usr/lib MANDIR=/usr/man |
Rusty Russell | 8c245b5 | 2000-07-14 08:01:22 +0000 | [diff] [blame] | 31 | # make BINDIR=/usr/bin LIBDIR=/usr/lib MANDIR=/usr/man install |
Richard Gooch | 8e3b892 | 2000-04-22 00:57:38 +0000 | [diff] [blame] | 32 | |
| 33 | NOTE: make sure you build with at least the correct LIBDIR= |
| 34 | specification, otherwise iptables(8) won't know where to find the |
| 35 | dynamic objects. |
James Morris | c82e9ac | 2000-11-24 14:34:02 +0000 | [diff] [blame] | 36 | |
| 37 | |
| 38 | DEVELOPERS: |
| 39 | =========== |
| 40 | |
| 41 | 0) If you wish to install iptables development libraries |
| 42 | and related components, type: |
| 43 | % make install-devel |
| 44 | |
| 45 | Development libraries currently installed by the above are: |
| 46 | libipq: Userspace packet queueing API |
| 47 | |
| 48 | |
| 49 | |