View | Details | Raw Unified | Return to bug 265759
Collapse All | Expand All

(-)b/sysutils/runwhen/Makefile (-3 / +3 lines)
Lines 1-15 Link Here
1
PORTNAME=	runwhen
1
PORTNAME=	runwhen
2
PORTVERSION=	2021.04.30
2
PORTVERSION=	2021.04.30
3
PORTREVISION=   1
3
CATEGORIES=	sysutils
4
CATEGORIES=	sysutils
4
MASTER_SITES=	http://code.dogmap.org/runwhen/releases/
5
MASTER_SITES=	http://code.dogmap.org/runwhen/releases/
5
6
6
MAINTAINER=	ports@FreeBSD.org
7
MAINTAINER=	crest@rlwinm.de
7
COMMENT=	Tools for running commands at particular times
8
COMMENT=	Tools for running commands at particular times
8
9
9
LICENSE=	GPLv2
10
LICENSE=	GPLv2
10
11
11
BROKEN=		does not build: error: use of undeclared identifier 'localtmn_t'
12
BUILD_DEPENDS=  skalibs>=2.12.0.0:devel/skalibs
12
13
LIB_DEPENDS=	libskarnet.so:devel/skalibs
13
LIB_DEPENDS=	libskarnet.so:devel/skalibs
14
14
15
USES=		tar:bzip2
15
USES=		tar:bzip2
(-)b/sysutils/runwhen/files/patch-src_runwhen.h (+13 lines)
Added Link Here
1
--- src/runwhen.h.orig	2022-08-10 16:08:24 UTC
2
+++ src/runwhen.h
3
@@ -8,8 +8,8 @@
4
   } while (0)
5
 
6
 #include <skalibs/tai.h>
7
-void rw_scan(tain_t*, char const*);
8
-void rw_pass(tain_t const*, char**) gccattr_noreturn;
9
+void rw_scan(tain*, char const*);
10
+void rw_pass(tain const*, char**) gccattr_noreturn;
11
 
12
 #define WARNTEXT0_clock_gettime "get current time"
13
 
(-)b/sysutils/runwhen/files/patch-src_rw-add.c (+11 lines)
Added Link Here
1
--- src/rw-add.c.orig	2022-08-10 16:08:24 UTC
2
+++ src/rw-add.c
3
@@ -7,7 +7,7 @@
4
 char const* PROG="rw-add";
5
 
6
 int main(int argc, char** argv) {
7
-  tain_t t, t0, t1;
8
+  tain t, t0, t1;
9
   RW_ARG_CHECK(2, " stamp1 stamp2");
10
   rw_scan(&t0, argv[1]);
11
   rw_scan(&t1, argv[2]);
(-)b/sysutils/runwhen/files/patch-src_rw-match.c (+20 lines)
Added Link Here
1
--- src/rw-match.c.orig	2022-08-10 16:08:24 UTC
2
+++ src/rw-match.c
3
@@ -124,7 +124,7 @@ int main(int argc, char** argv) {
4
   }
5
 
6
   {
7
-    tain_t stamp;
8
+    tain stamp;
9
     struct tm* ptm;
10
     struct timeval tv;
11
     time_t t;
12
@@ -187,7 +187,7 @@ int main(int argc, char** argv) {
13
   }
14
 
15
   {
16
-    tain_t stamp;
17
+    tain stamp;
18
     struct timeval tv;
19
     time_t t;
20
     if (units==units_weekday) {
(-)b/sysutils/runwhen/files/patch-src_rw-max.c (+11 lines)
Added Link Here
1
--- src/rw-max.c.orig	2022-08-10 16:08:24 UTC
2
+++ src/rw-max.c
3
@@ -7,7 +7,7 @@
4
 char const* PROG="rw-max";
5
 
6
 int main(int argc, char** argv) {
7
-  tain_t t0, t1;
8
+  tain t0, t1;
9
   RW_ARG_CHECK(2, " stamp1 stamp2");
10
   rw_scan(&t0, argv[1]);
11
   rw_scan(&t1, argv[2]);
(-)b/sysutils/runwhen/files/patch-src_rw-min.c (+11 lines)
Added Link Here
1
--- src/rw-min.c.orig	2022-08-10 16:08:24 UTC
2
+++ src/rw-min.c
3
@@ -7,7 +7,7 @@
4
 char const* PROG="rw-min";
5
 
6
 int main(int argc, char** argv) {
7
-  tain_t t0, t1;
8
+  tain t0, t1;
9
   RW_ARG_CHECK(2, " stamp1 stamp2");
10
   rw_scan(&t0, argv[1]);
11
   rw_scan(&t1, argv[2]);
(-)b/sysutils/runwhen/files/patch-src_rw-sleep.c (+11 lines)
Added Link Here
1
--- src/rw-sleep.c.orig	2022-08-10 16:08:24 UTC
2
+++ src/rw-sleep.c
3
@@ -36,7 +36,7 @@ int main(int argc, char** argv) {
4
     timer.it_value.tv_sec=0;
5
     timer.it_value.tv_usec=0;
6
   } else {
7
-    tain_t now, wake_time;
8
+    tain now, wake_time;
9
     tain_now(&now);
10
     rw_scan(&wake_time, argv[1]);
11
     if (tain_less(&wake_time, &now)) flag_sleep=0;
(-)b/sysutils/runwhen/files/patch-src_rw-sub.c (+11 lines)
Added Link Here
1
--- src/rw-sub.c.orig	2022-08-10 16:08:24 UTC
2
+++ src/rw-sub.c
3
@@ -7,7 +7,7 @@
4
 char const* PROG="rw-sub";
5
 
6
 int main(int argc, char** argv) {
7
-  tain_t t, t0, t1;
8
+  tain t, t0, t1;
9
   RW_ARG_CHECK(2, " stamp1 stamp2");
10
   rw_scan(&t0, argv[1]);
11
   rw_scan(&t1, argv[2]);
(-)b/sysutils/runwhen/files/patch-src_rw-touch.c (+11 lines)
Added Link Here
1
--- src/rw-touch.c.orig	2022-08-10 16:08:24 UTC
2
+++ src/rw-touch.c
3
@@ -10,7 +10,7 @@
4
 char const* PROG="rw-touch";
5
 
6
 int main(int argc, char** argv) {
7
-  tain_t t;
8
+  tain t;
9
   struct timeval tv[2];
10
   if (argc<3) DIE_USAGE(" stamp filename [program...]");
11
   rw_scan(&t, argv[1]);
(-)b/sysutils/runwhen/files/patch-src_rw__pass.c (+11 lines)
Added Link Here
1
--- src/rw_pass.c.orig	2022-08-10 16:08:24 UTC
2
+++ src/rw_pass.c
3
@@ -9,7 +9,7 @@
4
 
5
 extern char const* PROG;
6
 
7
-void rw_pass(tain_t const* t, char** argv) {
8
+void rw_pass(tain const* t, char** argv) {
9
   char buf[2*TAIN_PACK+1];
10
 
11
   buf[tain_fmt(buf, t)]='\0';
(-)b/sysutils/runwhen/files/patch-src_rw__scan.c (+20 lines)
Added Link Here
1
--- src/rw_scan.c.orig	2022-08-10 16:08:50 UTC
2
+++ src/rw_scan.c
3
@@ -9,7 +9,7 @@
4
 
5
 extern char const* PROG;
6
 
7
-void rw_scan(tain_t* stamp, char const* text) {
8
+void rw_scan(tain* stamp, char const* text) {
9
   unsigned int i, scale;
10
   uint64 u;
11
   char const* x;
12
@@ -53,7 +53,7 @@ void rw_scan(tain_t* stamp, char const* text) {
13
       tai_unix(tain_secp(stamp), u);
14
       break;
15
     case 'i': {
16
-      localtmn_t loc;
17
+      localtmn loc;
18
       short dummy;
19
       ++text;
20
       i=localtmn_scan(text, &loc);

Return to bug 265759