From c65c6532ac08fc0c3ee9b06fe89e05017ba10631 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Tue, 21 Nov 2023 16:47:50 +0100 Subject: [PATCH] Framework: ignore missing src for meta packages --- Mk/plugins.mk | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Mk/plugins.mk b/Mk/plugins.mk index 5fa657dad..ff75a2d42 100644 --- a/Mk/plugins.mk +++ b/Mk/plugins.mk @@ -204,7 +204,7 @@ scripts-post: install: check @mkdir -p ${DESTDIR}${LOCALBASE}/opnsense/version - @(cd ${.CURDIR}/src; find * -type f) | while read FILE; do \ + @(cd ${.CURDIR}/src 2> /dev/null && find * -type f) | while read FILE; do \ tar -C ${.CURDIR}/src -cpf - $${FILE} | \ tar -C ${DESTDIR}${LOCALBASE} -xpf -; \ if [ "$${FILE%%.in}" != "$${FILE}" ]; then \ @@ -215,7 +215,7 @@ install: check @cat ${TEMPLATESDIR}/version | sed ${SED_REPLACE} > "${DESTDIR}${LOCALBASE}/opnsense/version/${PLUGIN_NAME}" plist: check - @(cd ${.CURDIR}/src; find * -type f) | while read FILE; do \ + @(cd ${.CURDIR}/src 2> /dev/null && find * -type f) | while read FILE; do \ if [ -f "$${FILE}.in" ]; then continue; fi; \ FILE="$${FILE%%.in}"; \ echo ${LOCALBASE}/$${FILE}; \ @@ -235,16 +235,16 @@ metadata: check @${MAKE} DESTDIR=${DESTDIR} plist > ${DESTDIR}/plist collect: check - @(cd ${.CURDIR}/src; find * -type f) | while read FILE; do \ + @(cd ${.CURDIR}/src 2> /dev/null && find * -type f) | while read FILE; do \ tar -C ${DESTDIR}${LOCALBASE} -cpf - $${FILE} | \ tar -C ${.CURDIR}/src -xpf -; \ done remove: check - @(cd ${.CURDIR}/src; find * -type f) | while read FILE; do \ + @(cd ${.CURDIR}/src 2> /dev/null && find * -type f) | while read FILE; do \ rm -f ${DESTDIR}${LOCALBASE}/$${FILE}; \ done - @(cd ${.CURDIR}/src; find * -type d -depth) | while read DIR; do \ + @(cd ${.CURDIR}/src 2> /dev/null && find * -type d -depth) | while read DIR; do \ if [ -d ${DESTDIR}${LOCALBASE}/$${DIR} ]; then \ rmdir ${DESTDIR}${LOCALBASE}/$${DIR} 2> /dev/null || true; \ fi; \