Commit 8903f162 authored by Franco Fichtner's avatar Franco Fichtner

pkg: add an explicit plist for qa purposes

When we build packages, we want to know if something is wrong.
For now, only use it in the upgrade path, not sure how to
to distinguish if a user or the build system is running the
package build.
parent dc2bd361
......@@ -224,6 +224,16 @@ plist: force
@${MAKE} -C ${.CURDIR}/contrib plist
@${MAKE} -C ${.CURDIR}/src plist
plist-fix: force
@${MAKE} DESTDIR=${DESTDIR} plist > ${.CURDIR}/plist
plist-check: force
@${MAKE} DESTDIR=${DESTDIR} plist > ${WRKDIR}/plist
@if ! diff -uq ${.CURDIR}/plist ${WRKDIR}/plist > /dev/null ; then \
echo ">>> Package file lists do not match. Please run 'make plist-fix'." >&2; \
diff -u ${.CURDIR}/plist ${WRKDIR}/plist; \
fi
metadata: force
@mkdir -p ${DESTDIR}
@${MAKE} DESTDIR=${DESTDIR} scripts
......@@ -250,7 +260,7 @@ upgrade-check: force
fi
@rm -rf ${PKGDIR}
upgrade: upgrade-check package
upgrade: plist-check upgrade-check package
@${PKG} delete -fy ${CORE_NAME}
@${PKG} add ${PKGDIR}/*.txz
@${LOCALBASE}/etc/rc.restart_webgui
......@@ -293,7 +303,7 @@ style: want-pear-PHP_CodeSniffer
@cat ${.CURDIR}/.style.out
@rm ${.CURDIR}/.style.out
stylefix: want-pear-PHP_CodeSniffer
style-fix: want-pear-PHP_CodeSniffer
phpcbf --standard=ruleset.xml ${.CURDIR}/src/opnsense/mvc || true
setup: force
......
......@@ -28,7 +28,7 @@ GIT!= which git || echo true
LOCALBASE?= /usr/local
PAGER?= less
all:
all-stub: all
@echo "Nothing to do."
force:
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment