mirror of
https://github.com/oxen-io/lokinet
synced 2023-12-14 06:53:00 +01:00
freebsd stuff
This commit is contained in:
parent
1645000a5e
commit
d1d323a9b8
4
Makefile
4
Makefile
|
@ -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
|
||||
|
|
24
readme.md
24
readme.md
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue