Skip to content

Commit

Permalink
add building prerequisites for FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdsam committed Feb 26, 2024
1 parent b9362bd commit 7b4a78f
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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/<ARCH>/<FREEBSD-VERSION>/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


Expand Down

0 comments on commit 7b4a78f

Please sign in to comment.