freyanet/Makefile
2024-08-23 15:51:21 +00:00

17 lines
415 B
Makefile

.PHONY: install alpine openwrt
install:
mkdir -p /usr/local/bin
mkdir -p /var/lib/inet2
cp ./bin/* /usr/local/bin
cp ./lib/* /var/lib/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