ubnt-box/Makefile
Vincent Batts 4090a65622
initial commit
but the unifi deb still has to be manually dpkg -i after first run

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2017-08-22 16:16:05 -04:00

12 lines
365 B
Makefile

UBNT_VERSION := 5.5.20
ROOT_SIZE := 2147483648
FETCHED_DIR := ./mkosi.cache/fetched
PASSWORD := ubnt
build: $(FETCHED_DIR)/unifi_sysvinit_all.deb
sudo mkosi --force --password $(PASSWORD) --extra-tree $(FETCHED_DIR)/ --root-size $(ROOT_SIZE)
$(FETCHED_DIR)/unifi_sysvinit_all.deb:
curl -s -o $@ http://dl.ubnt.com/unifi/$(UBNT_VERSION)/unifi_sysvinit_all.deb