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.
This commit is contained in:
Franco Fichtner 2016-09-24 14:09:18 +02:00
parent dc2bd36118
commit 8903f16227
3 changed files with 1155 additions and 3 deletions

View File

@ -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

View File

@ -28,7 +28,7 @@ GIT!= which git || echo true
LOCALBASE?= /usr/local
PAGER?= less
all:
all-stub: all
@echo "Nothing to do."
force:

1142
plist Normal file

File diff suppressed because it is too large Load Diff