feat: initial upload

Initial public release
This commit is contained in:
Chris Blake 2024-05-19 14:04:59 -05:00
commit 85a5bd66e0
30 changed files with 943 additions and 0 deletions

26
Makefile Normal file
View file

@ -0,0 +1,26 @@
.DEFAULT_GOAL := build
CONTAINER_NAME = unvr-nas:builder
setup:
sudo modprobe loop; \
sudo modprobe binfmt_misc
build: setup
@set -e; \
for file in `ls ./scripts/[0-99]*.sh`; \
do \
bash $${file}; \
done \
clean: mountclean
sudo rm -rf $(CURDIR)/BuildEnv; \
docker ps -a | awk '{ print $$1,$$2 }' | grep $(CONTAINER_NAME) | awk '{print $$1 }' | xargs -I {} docker rm {};
distclean: clean
docker rmi $(CONTAINER_NAME) -f; \
rm -rf $(CURDIR)/downloads $(CURDIR)/output
mountclean:
sudo umount $(CURDIR)/BuildEnv/rootfs/boot; \
sudo umount $(CURDIR)/BuildEnv/rootfs; \
sudo losetup -D