Skip to content

Commit

Permalink
Include how to build on rpi buster
Browse files Browse the repository at this point in the history
We could/should probably specify as buster in general, but since you're providing the binary in the repo, folks don't have to build from src for amd64 machines.
I'm fine either way, or you can reject as a whole.
  • Loading branch information
jungle-boogie authored Aug 25, 2020
1 parent 7f6b08a commit e22ded4
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions clients/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,26 @@ PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
*/4 * * * * /usr/local/bin/apiban/apiban-iptables-client >/dev/null 2>&1
```

# Building on Raspbian Buster #

Since the version of `go` that's in Buster is too old to build `apiban-iptables-client`, here's a simple workaround for `go`.

```
cd /usr/local/src
wget https://golang.org/dl/go1.14.7.linux-armv6l.tar.gz
tar -xzvf go1.14.7.linux-armv6l.tar.gz
ln -sfn /usr/local/src/go/bin/go /usr/bin/go
```

Then building of `apiban-iptables-client` is now possible.

```
cd /usr/local/src
git clone https://github.com/palner/apiban
cd apiban/clients/go/apiban-iptables
go build apiban-iptables-client.go
```

## How it works ##

The client pulls the API key and last known ID from the **config.json** file.
Expand Down

0 comments on commit e22ded4

Please sign in to comment.