svn commit: r502760 - in head/deskutils/goesimage: . files
Yuri Victorovich
yuri at FreeBSD.org
Mon May 27 01:48:56 UTC 2019
Author: yuri
Date: Mon May 27 01:48:54 2019
New Revision: 502760
URL: https://svnweb.freebsd.org/changeset/ports/502760
Log:
deskutils/goesimage: Add goesimage-run-now executable
Modified:
head/deskutils/goesimage/Makefile
head/deskutils/goesimage/files/crontab.in
head/deskutils/goesimage/pkg-plist
Modified: head/deskutils/goesimage/Makefile
==============================================================================
--- head/deskutils/goesimage/Makefile Mon May 27 01:45:33 2019 (r502759)
+++ head/deskutils/goesimage/Makefile Mon May 27 01:48:54 2019 (r502760)
@@ -3,6 +3,7 @@
PORTNAME= goesimage
DISTVERSION= 0.1.1-1
DISTVERSIONSUFFIX= -g0021b16
+PORTREVISION= 1
CATEGORIES= deskutils
MAINTAINER= yuri at FreeBSD.org
@@ -24,9 +25,11 @@ GH_ACCOUNT= pigmonkey
NO_BUILD= yes
NO_ARCH= yes
-SUB_LIST= PORTNAME=${PORTNAME}
+SUB_LIST= PORTNAME=${PORTNAME} RUN_ARGS="${RUN_ARGS}"
SUB_FILES= crontab
+RUN_ARGS= -w -e
+
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/libexec/
${MKDIR} ${STAGEDIR}${DATADIR}
@@ -39,6 +42,10 @@ do-install:
echo ""; \
echo "crontab -l | ${GREP} -v '${PREFIX}/libexec/${PORTNAME}' | crontab -"; \
) > ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-disable
- @cd ${STAGEDIR}${PREFIX}/bin && ${CHMOD} +x ${PORTNAME}-enable ${PORTNAME}-disable
+ @(echo "#!/bin/sh"; \
+ echo ""; \
+ echo "${PREFIX}/libexec/${PORTNAME} ${RUN_ARGS}"; \
+ ) > ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-run-now
+ @cd ${STAGEDIR}${PREFIX}/bin && ${CHMOD} +x ${PORTNAME}-enable ${PORTNAME}-disable ${PORTNAME}-run-now
.include <bsd.port.mk>
Modified: head/deskutils/goesimage/files/crontab.in
==============================================================================
--- head/deskutils/goesimage/files/crontab.in Mon May 27 01:45:33 2019 (r502759)
+++ head/deskutils/goesimage/files/crontab.in Mon May 27 01:48:54 2019 (r502760)
@@ -1 +1 @@
-01,16,31,46 * * * * env DISPLAY=:0 %%PREFIX%%/libexec/%%PORTNAME%% -w -e
+01,16,31,46 * * * * env DISPLAY=:0 %%PREFIX%%/libexec/%%PORTNAME%% %%RUN_ARGS%%
Modified: head/deskutils/goesimage/pkg-plist
==============================================================================
--- head/deskutils/goesimage/pkg-plist Mon May 27 01:45:33 2019 (r502759)
+++ head/deskutils/goesimage/pkg-plist Mon May 27 01:48:54 2019 (r502760)
@@ -1,4 +1,5 @@
bin/goesimage-disable
bin/goesimage-enable
+bin/goesimage-run-now
libexec/goesimage
%%DATADIR%%/crontab
More information about the svn-ports-head
mailing list