1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00

freebsd stuff

This commit is contained in:
Jeff Becker 2018-10-28 10:28:13 -04:00
parent 1645000a5e
commit d1d323a9b8
No known key found for this signature in database
GPG key ID: F357B3B42F6F9B05
2 changed files with 25 additions and 3 deletions

View file

@ -10,6 +10,8 @@ PREFIX ?= /usr/local
CC ?= cc
CXX ?= c++
SETCAP ?= which setcap && setcap cap_net_admin=+eip
SHADOW_ROOT ?= $(HOME)/.shadow
SHADOW_BIN=$(SHADOW_ROOT)/bin/shadow
SHADOW_CONFIG=$(REPO)/shadow.config.xml
@ -142,7 +144,7 @@ install:
rm -f $(PREFIX)/bin/lokinet
cp $(EXE) $(PREFIX)/bin/lokinet
chmod 755 $(PREFIX)/bin/lokinet
setcap cap_net_admin=+eip $(PREFIX)/bin/lokinet
$(SETCAP) $(PREFIX)/bin/lokinet
rm -f $(PREFIX)/bin/lokinet-bootstrap
cp $(REPO)/lokinet-bootstrap $(PREFIX)/bin/lokinet-bootstrap
chmod 755 $(PREFIX)/bin/lokinet-bootstrap

View file

@ -17,14 +17,34 @@ Build requirements:
* C++ 17 capable C++ compiler
* rapidjson (if enabling jsonrpc server)
To build:
### Linux
build:
$ sudo apt install build-essential cmake git libcap-dev wget rapidjson-dev
$ git clone https://github.com/loki-project/loki-network
$ cd loki-network
$ make -j8 JSONRPC=ON
$ make -j8
install:
$ sudo make install
### FreeBSD
build:
$ pkg install wget cmake git
$ git clone https://github.com/loki-project/loki-network
$ cd loki-network
$ gmake -j8
install (root):
# gmake install
## Running
**DO NOT RUN AS ROOT**, run as normal user.