diff --git a/sysutils/runwhen/Makefile b/sysutils/runwhen/Makefile index 867e61a93cca..e2be83c1ab6a 100644 --- a/sysutils/runwhen/Makefile +++ b/sysutils/runwhen/Makefile @@ -1,41 +1,41 @@ PORTNAME= runwhen DISTVERSION= 2021.04.30 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= sysutils MASTER_SITES= http://code.dogmap.org/runwhen/releases/ MAINTAINER= crest@rlwinm.de COMMENT= Tools for running commands at particular times WWW= http://code.dogmap.org/runwhen/ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/package/LICENSE -BUILD_DEPENDS= skalibs>=2.14.3.0:devel/skalibs +BUILD_DEPENDS= skalibs>=2.14.5.1:devel/skalibs LIB_DEPENDS= libskarnet.so:devel/skalibs USES= localbase tar:bzip2 WRKSRC= ${WRKDIR}/admin/${DISTNAME} PLIST_FILES= bin/rw-add bin/rw-match bin/rw-max bin/rw-min \ bin/rw-sleep bin/rw-sub bin/rw-touch post-patch: @${REINPLACE_CMD} -e 's!gcc -O2!${CC} ${CFLAGS}!' \ ${WRKSRC}/conf-compile/defaults/host_compile.sh @${REINPLACE_CMD} 's!gcc!${CC} ${LDFLAGS} ${LIBS}!' \ ${WRKSRC}/conf-compile/defaults/host_link.sh do-configure: ${ECHO_CMD} ${PREFIX} > ${WRKSRC}/conf-compile/defaults/package_home ${ECHO_CMD} ${LOCALBASE} > ${WRKSRC}/conf-compile/defaults/depend_skalibs ${ECHO_CMD} ${LOCALBASE}/lib/skalibs/sysdeps > ${WRKSRC}/conf-compile/defaults/depend_skalibs_sysdeps do-build: cd ${WRKSRC} && package/compile do-install: ${INSTALL_PROGRAM} ${WRKSRC}/command/* ${STAGEDIR}${PREFIX}/bin .include diff --git a/sysutils/runwhen/files/patch-src_rw-sleep.c b/sysutils/runwhen/files/patch-src_rw-sleep.c index 10b322212a9a..864815951260 100644 --- a/sysutils/runwhen/files/patch-src_rw-sleep.c +++ b/sysutils/runwhen/files/patch-src_rw-sleep.c @@ -1,11 +1,19 @@ ---- src/rw-sleep.c.orig 2022-08-10 16:08:24 UTC +--- src/rw-sleep.c.orig 2021-04-23 23:23:16 UTC +++ src/rw-sleep.c -@@ -36,7 +36,7 @@ int main(int argc, char** argv) { +@@ -5,6 +5,7 @@ + #include + #include + ++#include + #include + #include "prjlibs-include/constants.h" + #include "prjlibs-include/diewarn.h" +@@ -36,7 +37,7 @@ int main(int argc, char** argv) { timer.it_value.tv_sec=0; timer.it_value.tv_usec=0; } else { - tain_t now, wake_time; + tain now, wake_time; tain_now(&now); rw_scan(&wake_time, argv[1]); if (tain_less(&wake_time, &now)) flag_sleep=0; diff --git a/sysutils/runwhen/files/patch-src_rw-touch.c b/sysutils/runwhen/files/patch-src_rw-touch.c index 862ee85ab6cf..22e0a26a05da 100644 --- a/sysutils/runwhen/files/patch-src_rw-touch.c +++ b/sysutils/runwhen/files/patch-src_rw-touch.c @@ -1,11 +1,19 @@ ---- src/rw-touch.c.orig 2022-08-10 16:08:24 UTC +--- src/rw-touch.c.orig 2021-04-23 23:22:53 UTC +++ src/rw-touch.c -@@ -10,7 +10,7 @@ +@@ -2,6 +2,7 @@ + #include + #include + ++#include + #include + #include "prjlibs-include/constants.h" + #include "prjlibs-include/diewarn.h" +@@ -10,7 +11,7 @@ int main(int argc, char** argv) { char const* PROG="rw-touch"; int main(int argc, char** argv) { - tain_t t; + tain t; struct timeval tv[2]; if (argc<3) DIE_USAGE(" stamp filename [program...]"); rw_scan(&t, argv[1]); diff --git a/sysutils/runwhen/files/patch-src_rw__pass.c b/sysutils/runwhen/files/patch-src_rw__pass.c index a8acb9692c66..ae6318f680ad 100644 --- a/sysutils/runwhen/files/patch-src_rw__pass.c +++ b/sysutils/runwhen/files/patch-src_rw__pass.c @@ -1,11 +1,19 @@ ---- src/rw_pass.c.orig 2022-08-10 16:08:24 UTC +--- src/rw_pass.c.orig 2021-04-23 23:20:53 UTC +++ src/rw_pass.c -@@ -9,7 +9,7 @@ +@@ -2,6 +2,7 @@ + #include + #include + ++#include + #include + #include "prjlibs-include/constants.h" + #include "prjlibs-include/diewarn.h" +@@ -9,7 +10,7 @@ extern char const* PROG; extern char const* PROG; -void rw_pass(tain_t const* t, char** argv) { +void rw_pass(tain const* t, char** argv) { char buf[2*TAIN_PACK+1]; buf[tain_fmt(buf, t)]='\0';