mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-16 03:24:07 +00:00
cf118ccf87
Reported by: lwhsu
48 lines
1.5 KiB
Makefile
48 lines
1.5 KiB
Makefile
PORTNAME= goesimage
|
|
DISTVERSION= 0.1.3
|
|
CATEGORIES= deskutils
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
COMMENT= Wallpapers from NOAA Geostationary Operational Environment Satellite
|
|
|
|
LICENSE= UNLICENSE
|
|
LICENSE_FILE= ${WRKSRC}/UNLICENSE
|
|
|
|
RUN_DEPENDS= bash:shells/bash \
|
|
convert:graphics/ImageMagick6 \
|
|
curl:ftp/curl \
|
|
nitrogen:sysutils/nitrogen
|
|
|
|
USES= shebangfix
|
|
SHEBANG_FILES= goesimage
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= pigmonkey
|
|
|
|
NO_BUILD= yes
|
|
NO_ARCH= yes
|
|
|
|
SUB_LIST= PORTNAME=${PORTNAME}
|
|
SUB_FILES= crontab
|
|
|
|
RUN_ARGS= -w -e -o # -w: NOAA GOES West satellite, -e: NOAA GOES East satellite, -o: print output, don't set as a wallpaper (it is set by nitrogen)
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/libexec/
|
|
${MKDIR} ${STAGEDIR}${DATADIR}
|
|
${INSTALL_DATA} ${WRKDIR}/crontab ${STAGEDIR}${DATADIR}
|
|
@(echo "#!/bin/sh"; \
|
|
echo ""; \
|
|
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}/bin/${PORTNAME}' | crontab -"; \
|
|
) > ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-disable
|
|
@(echo "#!/bin/sh"; \
|
|
echo ""; \
|
|
echo "${PREFIX}/bin/nitrogen --set-zoom "$$"(${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>
|