2019-02-18 07:56:39 -06:00
|
|
|
INSTALLDIR = ${pkgdir}/usr/local/bin
|
|
|
|
INSTALLLIST = ./maat-builder
|
|
|
|
OWNER=root
|
|
|
|
PERMS=0755
|
|
|
|
|
|
|
|
|
|
|
|
compile: /bin/bash
|
|
|
|
@echo Nothing to compile.
|
|
|
|
|
|
|
|
install: ${INSTALLLIST}
|
|
|
|
mkdir -p ${INSTALLDIR}
|
2019-03-24 21:54:52 -05:00
|
|
|
mkdir -p /srv/maat/src
|
|
|
|
mkdir -p /srv/maat/pkg
|
|
|
|
mkdir -p /srv/maat/web
|
2019-02-18 07:56:39 -06:00
|
|
|
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:
|
2019-03-24 21:54:52 -05:00
|
|
|
./maat-builder -T
|
2019-02-18 07:56:39 -06:00
|
|
|
|
|
|
|
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
|