From 7b4a78f06e32ef7ac38d36f44a6b872a19b2c385 Mon Sep 17 00:00:00 2001 From: Markus Sander Date: Mon, 26 Feb 2024 13:29:23 +0100 Subject: [PATCH 1/3] add building prerequisites for FreeBSD --- README.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0a6add9..666872b 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ This plugin uses the bulk-get mode of SNMPv2 by default - pass it the option -m In order to compile this plugin you need the `NET SNMP Development` package (`libsnmp-dev` for Debian) as well as `autoconf` and the standard compilation tools. -Example for Debian: +#### Example for Debian: ``` apt-get update @@ -41,6 +41,26 @@ make make install ``` +#### Prerequisites for FreeBSD + +``` +$ sudo pkg install automake gcc +``` + +Your need the FreeBSD *source* package. If `/usr/src` is empty, you can get it with (substitute <ARCH> and <FREEBSD-VERSION> to values matching your system): +``` +$ wget https://download.freebsd.org/releases///src.txz +$ sudo tar -C / -xf src.txz +``` + +To build: +``` +$ autoreconf +$ ./configure --prefix=/usr/local #works, but you should have your own plugins-dir! +$ make +$ sudo make install #optional +``` + ### Usage From 3045e20a7ebac45c136c2d90f52a07f2434154c0 Mon Sep 17 00:00:00 2001 From: Markus Sander Date: Mon, 26 Feb 2024 15:17:37 +0100 Subject: [PATCH 2/3] FreeBSD: removed instruction to install SRC-Package Installation of 'net-snmp' is sufficient --- README.md | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/README.md b/README.md index 666872b..68fd70f 100644 --- a/README.md +++ b/README.md @@ -44,13 +44,7 @@ make install #### Prerequisites for FreeBSD ``` -$ sudo pkg install automake gcc -``` - -Your need the FreeBSD *source* package. If `/usr/src` is empty, you can get it with (substitute <ARCH> and <FREEBSD-VERSION> to values matching your system): -``` -$ wget https://download.freebsd.org/releases///src.txz -$ sudo tar -C / -xf src.txz +$ sudo pkg install automake gcc net-snmp ``` To build: From 57c89dad4fbe9107de22c6c39300bca6ed2ab7f9 Mon Sep 17 00:00:00 2001 From: Markus Sander Date: Mon, 26 Feb 2024 17:00:52 +0100 Subject: [PATCH 3/3] remove "$" for compat. reasons --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 68fd70f..fe02fd2 100644 --- a/README.md +++ b/README.md @@ -44,15 +44,15 @@ make install #### Prerequisites for FreeBSD ``` -$ sudo pkg install automake gcc net-snmp +sudo pkg install automake gcc net-snmp ``` To build: ``` -$ autoreconf -$ ./configure --prefix=/usr/local #works, but you should have your own plugins-dir! -$ make -$ sudo make install #optional +autoreconf +./configure --prefix=/usr/local ## works, but you should have your own plugins-dir +make +sudo make install ## optional ``` ### Usage