Commit 174028db authored by Franco Fichtner's avatar Franco Fichtner

make: prevent package build in live mount mode

The two are mutually exclusive.
parent 77d83631
......@@ -13,19 +13,21 @@ PKGDIR= ${WRKDIR}/pkg
mount: force
@if [ ! -f ${WRKDIR}/.mount_done ]; then \
echo "Enabling core.git live mount..."; \
echo -n "Enabling core.git live mount..."; \
${.CURDIR}/scripts/version.sh > \
${.CURDIR}/src/opnsense/version/opnsense; \
mount_unionfs ${.CURDIR}/src /usr/local; \
touch ${WRKDIR}/.mount_done; \
echo "done"; \
service configd restart; \
fi
umount: force
@if [ -f ${WRKDIR}/.mount_done ]; then \
echo "Disabling core.git live mount..."; \
echo -n "Disabling core.git live mount..."; \
umount -f "<above>:${.CURDIR}/src"; \
rm ${WRKDIR}/.mount_done; \
echo "done"; \
service configd restart; \
fi
......@@ -178,6 +180,9 @@ plist: force
@${MAKE} -C ${.CURDIR}/src plist
package: force
@if [ -f ${WRKDIR}/.mount_done ]; then \
echo "Cannot continue with live mount"; exit 1; \
fi
@${PKG} info gettext-tools > /dev/null
@${PKG} info git > /dev/null
@rm -rf ${WRKSRC} ${PKGDIR}
......
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