]> Sergey Matveev's repositories - ndproxy.git/blob - INSTALL.TXT
Compatibility with FreeBSD 14
[ndproxy.git] / INSTALL.TXT
1
2 Installation instructions for FreeBSD 10.x, 11.x, 12.x and 13.x
3
4 ------------------------------------------------------------
5
6 Installing as a port:
7
8   1- using the port sources from the ports tree:
9     - cd /usr/ports/net/ndproxy
10     - make
11     - make install
12
13   2- using the port sources from the distribution tree:
14     - cd usr/ports/net/ndproxy
15     - make
16     - make install
17
18 ------------------------------------------------------------
19
20 Installing as a package:
21
22   - pkg install ndproxy
23
24 ------------------------------------------------------------
25
26 When not installing from a port or a package:
27
28   1- no debugging:
29     - run 'make clean && make' as user to compile the module and create ndproxy.ko
30     - run 'make install' as root to install the module
31     - run 'make maninstall' as root to install the man page
32
33   2- debug messages on console and debugging symbols:
34     - run 'make clean && make DEBUG_FLAGS=-DDEBUG_NDPROXY' as user to compile the module and create ndproxy.ko
35     - run 'make DEBUG_FLAGS=-DDEBUG_NDPROXY install' as root to install the module
36     - run 'make maninstall' as root to install the man page
37
38 Usage and configuration instructions:
39 - run 'man ndproxy'
40
41 Here is the output of the installation steps:
42 % make
43 Warning: Object directory not changed from original /space/fenyo/public_html/newweb/ndproxy/ndproxy/tmp
44 @ -> /usr/src/sys
45 machine -> /usr/src/sys/amd64/include
46 x86 -> /usr/src/sys/x86/include
47 cc -O2 -pipe  -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc   -I. -I@ -I@/contrib/altq -fno-common  -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -mno-aes -mno-avx -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float  -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999 -Qunused-arguments  -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions  -Wmissing-include-dirs -fdiagnostics-show-option  -Wno-error-tautological-compare -Wno-error-empty-body  -Wno-error-parentheses-equality -Wno-error-unused-function   -c ndproxy.c
48 cc -O2 -pipe  -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc   -I. -I@ -I@/contrib/altq -fno-common  -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -mno-aes -mno-avx -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float  -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999 -Qunused-arguments  -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions  -Wmissing-include-dirs -fdiagnostics-show-option  -Wno-error-tautological-compare -Wno-error-empty-body  -Wno-error-parentheses-equality -Wno-error-unused-function   -c ndparse.c
49 cc -O2 -pipe  -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc   -I. -I@ -I@/contrib/altq -fno-common  -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -mno-aes -mno-avx -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float  -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999 -Qunused-arguments  -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions  -Wmissing-include-dirs -fdiagnostics-show-option  -Wno-error-tautological-compare -Wno-error-empty-body  -Wno-error-parentheses-equality -Wno-error-unused-function   -c ndpacket.c
50 cc -O2 -pipe  -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc   -I. -I@ -I@/contrib/altq -fno-common  -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -mno-aes -mno-avx -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float  -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999 -Qunused-arguments  -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions  -Wmissing-include-dirs -fdiagnostics-show-option  -Wno-error-tautological-compare -Wno-error-empty-body  -Wno-error-parentheses-equality -Wno-error-unused-function   -c ndconf.c
51 ld  -d -warn-common -r -d -o ndproxy.ko ndproxy.o ndparse.o ndpacket.o ndconf.o
52 :> export_syms
53 awk -f /sys/conf/kmod_syms.awk ndproxy.ko  export_syms | xargs -J% objcopy % ndproxy.ko
54 objcopy --strip-debug ndproxy.ko
55 % su   
56 Password:
57 # make install
58 install -o root -g wheel -m 555   ndproxy.ko /boot/kernel
59 kldxref /boot/kernel
60 # make maninstall
61 install -o root -g wheel -m 444 ndproxy.8.gz  /usr/share/man/man8