deskutils/goesimage: Fix bug in the user crontab manipulation procedure

This commit is contained in:
Yuri Victorovich 2019-06-03 01:49:04 +00:00
parent d80528d460
commit d4d86ac0f3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=503340

View File

@ -3,6 +3,7 @@
PORTNAME= goesimage
DISTVERSION= 0.1.1-4
DISTVERSIONSUFFIX= -gce8f849
PORTREVISION= 1
CATEGORIES= deskutils
MAINTAINER= yuri@FreeBSD.org
@ -35,11 +36,11 @@ do-install:
${INSTALL_DATA} ${WRKDIR}/crontab ${STAGEDIR}${DATADIR}
@(echo "#!/bin/sh"; \
echo ""; \
echo "crontab -l | ${GREP} -v '${PREFIX}/libexec/${PORTNAME}' | (cat ; cat ${DATADIR}/crontab) | crontab -"; \
echo "crontab -l | ${GREP} -v '${PREFIX}/bin/${PORTNAME}' | (cat ; cat ${DATADIR}/crontab) | crontab -"; \
) > ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-enable
@(echo "#!/bin/sh"; \
echo ""; \
echo "crontab -l | ${GREP} -v '${PREFIX}/libexec/${PORTNAME}' | crontab -"; \
echo "crontab -l | ${GREP} -v '${PREFIX}/bin/${PORTNAME}' | crontab -"; \
) > ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-disable
@(echo "#!/bin/sh"; \
echo ""; \