freyanet/Makefile

19 lines
448 B
Makefile

.PHONY: install alpine openwrt
PREFIX=/usr/local
install:
mkdir -p ${PREFIX}/bin
mkdir -p ${PREFIX}/share/inet2
cp ./bin/* ${PREFIX}/bin
cp ./share/* ${PREFIX}/share/inet2
alpine:
apk add --no-cache wireguard-tools bind-tools bird
cp ./deployments/openrc/inet2.initd /etc/init.d/inet2
rc-update add inet2
openwrt:
opkg install wireguard-tools bind-tools bird2
cp ./deployments/initd/inet2.initd /etc/init.d/inet2
service inet2 enable