Adding initial files
This commit is contained in:
37
Makefile
Normal file
37
Makefile
Normal file
@@ -0,0 +1,37 @@
|
||||
INSTALLDIR = ${pkgdir}/usr/local/bin
|
||||
INSTALLLIST = ./maat-builder
|
||||
OWNER=root
|
||||
PERMS=0755
|
||||
|
||||
|
||||
compile: /bin/bash
|
||||
@echo Nothing to compile.
|
||||
|
||||
install: ${INSTALLLIST}
|
||||
mkdir -p ${INSTALLDIR}
|
||||
for i in ${INSTALLLIST}; do install -m ${PERMS} -o ${OWNER} $$i ${INSTALLDIR}; done
|
||||
|
||||
clean:
|
||||
cat .gitignore | xargs rm -Rf
|
||||
|
||||
uninstall:
|
||||
for i in ${INSTALLLIST}; do rm -Rf ${INSTALLDIR}/$$i; done
|
||||
|
||||
test:
|
||||
for i in ${LIST}; do $$i -h; done
|
||||
|
||||
test-run:
|
||||
bash ./maat -v -d ./repo -b ./build -w ./web -c /dev/null
|
||||
|
||||
diff:
|
||||
for i in ${list}; do if [ -f ${INSTALLDIR}/$$i ]; then diff "$$i" "${INSTALLDIR}/$$i"; fi done
|
||||
|
||||
reverse:
|
||||
for i in ${list}; do if [ -f ${INSTALLDIR}/$$i ]; then cp "${INSTALLDIR}/$$i" "$$i"; fi done
|
||||
|
||||
checkperm:
|
||||
for i in ${list}; do chown ${OWNER}: "${INSTALLDIR}/$$i"; chmod ${PERMS} "${INSTALLDIR}/$$i"; done
|
||||
chmod 0644 ${SUPPORTDIR}/maat.html
|
||||
chown ${OWNER}: ${SUPPORTDIR}/maat.html
|
||||
chmod 0644 ${pkgdir}/etc/lighttpd/conf.d/maat.conf
|
||||
chown http: ${pkgdir}/etc/lighttpd/conf.d/maat.conf
|
Reference in New Issue
Block a user