]> Sergey Matveev's repositories - ndproxy.git/blobdiff - INSTALL.TXT
Latest ndproxy version
[ndproxy.git] / INSTALL.TXT
diff --git a/INSTALL.TXT b/INSTALL.TXT
new file mode 100644 (file)
index 0000000..f2542e8
--- /dev/null
@@ -0,0 +1,61 @@
+
+Installation instructions for FreeBSD 10.x, 11.x, 12.x and 13.x
+
+------------------------------------------------------------
+
+Installing as a port:
+
+  1- using the port sources from the ports tree:
+    - cd /usr/ports/net/ndproxy
+    - make
+    - make install
+
+  2- using the port sources from the distribution tree:
+    - cd usr/ports/net/ndproxy
+    - make
+    - make install
+
+------------------------------------------------------------
+
+Installing as a package:
+
+  - pkg install ndproxy
+
+------------------------------------------------------------
+
+When not installing from a port or a package:
+
+  1- no debugging:
+    - run 'make clean && make' as user to compile the module and create ndproxy.ko
+    - run 'make install' as root to install the module
+    - run 'make maninstall' as root to install the man page
+
+  2- debug messages on console and debugging symbols:
+    - run 'make clean && make DEBUG_FLAGS=-DDEBUG_NDPROXY' as user to compile the module and create ndproxy.ko
+    - run 'make DEBUG_FLAGS=-DDEBUG_NDPROXY install' as root to install the module
+    - run 'make maninstall' as root to install the man page
+
+Usage and configuration instructions:
+- run 'man ndproxy'
+
+Here is the output of the installation steps:
+% make
+Warning: Object directory not changed from original /space/fenyo/public_html/newweb/ndproxy/ndproxy/tmp
+@ -> /usr/src/sys
+machine -> /usr/src/sys/amd64/include
+x86 -> /usr/src/sys/x86/include
+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
+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
+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
+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
+ld  -d -warn-common -r -d -o ndproxy.ko ndproxy.o ndparse.o ndpacket.o ndconf.o
+:> export_syms
+awk -f /sys/conf/kmod_syms.awk ndproxy.ko  export_syms | xargs -J% objcopy % ndproxy.ko
+objcopy --strip-debug ndproxy.ko
+% su   
+Password:
+# make install
+install -o root -g wheel -m 555   ndproxy.ko /boot/kernel
+kldxref /boot/kernel
+# make maninstall
+install -o root -g wheel -m 444 ndproxy.8.gz  /usr/share/man/man8