<pre style='margin:0'>
Ryan Schmidt (ryandesign) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/72cdefc94c4e1ee3280e70f8ccfef5ba4f19f650">https://github.com/macports/macports-ports/commit/72cdefc94c4e1ee3280e70f8ccfef5ba4f19f650</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 72cdefc94c4 uptimed: Update to 0.4.3
</span>72cdefc94c4 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 72cdefc94c4e1ee3280e70f8ccfef5ba4f19f650
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Fri Jul 30 12:10:49 2021 -0500
<span style='display:block; white-space:pre;color:#404040;'> uptimed: Update to 0.4.3
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/63323
</span>---
sysutils/uptimed/Portfile | 37 ++++++++++++++--------
sysutils/uptimed/files/patch-Makefile.am.diff | 11 +++++++
sysutils/uptimed/files/patch-Makefile.in.diff | 11 -------
.../uptimed/files/patch-libuptimed-urec.h.diff | 24 ++++++++++----
sysutils/uptimed/files/patch-src-uptimed.c.diff | 6 ++--
5 files changed, 55 insertions(+), 34 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/uptimed/Portfile b/sysutils/uptimed/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 8db255ab9b0..7bee71378b6 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/sysutils/uptimed/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/uptimed/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,7 +1,12 @@
</span> PortSystem 1.0
<span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup github 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup rpodgorny uptimed 0.4.3 v
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 98ac756015f49ac8ef1ea9801412efab8deba7e0 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 11add61c39cb2a50f604266104c5ceb291ab830939ed7c84659c309be1e1e715 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 55396
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-name uptimed
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-version 0.3.17
</span> categories sysutils
license GPL-2
platforms darwin
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -10,26 +15,32 @@ description uptime record daemon
</span> long_description uptimed is an uptime record daemon keeping track of \
the highest uptimes a computer system ever had.
<span style='display:block; white-space:pre;background:#ffe0e0;'>-homepage http://podgorny.cz/moin/Uptimed
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-master_sites http://podgorny.cz/uptimed/releases/
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-use_bzip2 yes
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 0dece72bafb2f3434ea19c0aa83e91b473bc798d \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 524ce8984c0d0a780a32025ba3ffb980e5eec3d78e65cf68c91edec7fe833a06
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.tarball_from archive
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# No configure script in tarball.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+use_autoreconf yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+autoreconf.cmd ./autogen.sh
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+autoreconf.args
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_build-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:autoconf \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:automake \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:libtool
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles patch-Makefile.in.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-Makefile.am.diff \
</span> patch-etc-uptimed.conf-dist.diff \
patch-libuptimed-urec.h.diff \
patch-src-uptimed.c.diff
post-patch {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace "s|@PREFIX@|${prefix}|g" \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${worksrcpath}/etc/uptimed.conf-dist \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${worksrcpath}/libuptimed/urec.h \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${worksrcpath}/src/uptimed.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -W ${worksrcpath} "s|@PREFIX@|${prefix}|g" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ etc/uptimed.conf-dist \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ libuptimed/urec.h \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ src/uptimed.c
</span> }
post-destroot {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- xinstall -m 755 -d ${destroot}${prefix}/var/spool/uptimed
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d ${destroot}${prefix}/var/spool/uptimed
</span> touch ${destroot}${prefix}/var/spool/uptimed/bootid
}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/uptimed/files/patch-Makefile.am.diff b/sysutils/uptimed/files/patch-Makefile.am.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..85fc445e69b
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/uptimed/files/patch-Makefile.am.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- Makefile.am.orig 2020-08-31 03:17:55.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ Makefile.am 2021-07-30 11:58:16.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -12,7 +12,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AM_CFLAGS = @CFLAGS@ -DFILE_CONFIG=\"$(sysconfdir)/uptimed.conf\"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ install-data-local:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- $(INSTALL) -d $(DESTDIR)/var/spool/uptimed
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(INSTALL) -d $(DESTDIR)$(prefix)/var/spool/uptimed
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ srpm: dist
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ @(rpmbuild -ts uptimed-$(PACKAGE_VERSION).tar.gz)
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/uptimed/files/patch-Makefile.in.diff b/sysutils/uptimed/files/patch-Makefile.in.diff
</span>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 8531ce010e2..00000000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/sysutils/uptimed/files/patch-Makefile.in.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,11 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- Makefile.in.orig 2012-05-21 16:30:59.000000000 -0500
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ Makefile.in 2014-11-01 04:13:20.000000000 -0500
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -763,7 +763,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- install-data-local:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- $(INSTALL) -d $(DESTDIR)/var/spool/uptimed
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ $(INSTALL) -d $(DESTDIR)$(prefix)/var/spool/uptimed
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- srpm: dist
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- @(rpmbuild -ts uptimed-$(PACKAGE_VERSION).tar.gz)
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/uptimed/files/patch-libuptimed-urec.h.diff b/sysutils/uptimed/files/patch-libuptimed-urec.h.diff
</span><span style='display:block; white-space:pre;color:#808080;'>index a82474415a2..eb23e277af2 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/sysutils/uptimed/files/patch-libuptimed-urec.h.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/uptimed/files/patch-libuptimed-urec.h.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,13 +1,23 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- libuptimed/urec.h.orig 2012-05-21 16:30:59.000000000 -0500
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ libuptimed/urec.h 2014-11-01 04:17:31.000000000 -0500
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -54,8 +54,8 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include "misc.h"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- libuptimed/urec.h 2020-08-31 03:17:55.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ libuptimed/urec.h 2021-07-30 12:06:57.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -58,8 +58,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define FILE_BOOTID "/data/uptimed/bootid"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define FILE_RECORDS "/data/uptimed/records"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span> -#define FILE_BOOTID "/var/spool/uptimed/bootid"
-#define FILE_RECORDS "/var/spool/uptimed/records"
+#define FILE_BOOTID "@PREFIX@/var/spool/uptimed/bootid"
+#define FILE_RECORDS "@PREFIX@/var/spool/uptimed/records"
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span>
typedef struct urec {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- time_t utime; /* uptime */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -81,9 +81,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ void calculate_downtime(void);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ void read_records(time_t);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ void save_records(int, time_t);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifndef PLATFORM_BSD
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int createbootid(void);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int compare_urecs(Urec *, Urec *, int);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Urec *sort_urec(Urec *, int);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ time_t readbootid(void);
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/uptimed/files/patch-src-uptimed.c.diff b/sysutils/uptimed/files/patch-src-uptimed.c.diff
</span><span style='display:block; white-space:pre;color:#808080;'>index 4a90adaca1d..b23f94cff44 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/sysutils/uptimed/files/patch-src-uptimed.c.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/uptimed/files/patch-src-uptimed.c.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,6 +1,6 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- src/uptimed.c.orig 2012-05-21 16:30:59.000000000 -0500
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ src/uptimed.c 2014-11-01 04:16:39.000000000 -0500
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -53,7 +53,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/uptimed.c.orig 2020-08-31 03:17:55.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/uptimed.c 2021-07-30 11:59:37.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -58,7 +58,7 @@
</span>
if(!pidfile[0])
{
</pre><pre style='margin:0'>
</pre>