[127696] trunk/dports/sysutils/uptimed

ryandesign at macports.org ryandesign at macports.org
Sat Nov 1 02:22:30 PDT 2014


Revision: 127696
          https://trac.macports.org/changeset/127696
Author:   ryandesign at macports.org
Date:     2014-11-01 02:22:29 -0700 (Sat, 01 Nov 2014)
Log Message:
-----------
uptimed: update to 0.3.17

Modified Paths:
--------------
    trunk/dports/sysutils/uptimed/Portfile

Added Paths:
-----------
    trunk/dports/sysutils/uptimed/files/patch-Makefile.in.diff
    trunk/dports/sysutils/uptimed/files/patch-etc-uptimed.conf-dist.diff
    trunk/dports/sysutils/uptimed/files/patch-libuptimed-urec.h.diff
    trunk/dports/sysutils/uptimed/files/patch-src-uptimed.c.diff

Removed Paths:
-------------
    trunk/dports/sysutils/uptimed/files/patch-Makefile.in

Modified: trunk/dports/sysutils/uptimed/Portfile
===================================================================
--- trunk/dports/sysutils/uptimed/Portfile	2014-11-01 09:11:20 UTC (rev 127695)
+++ trunk/dports/sysutils/uptimed/Portfile	2014-11-01 09:22:29 UTC (rev 127696)
@@ -3,8 +3,7 @@
 PortSystem 1.0
 
 name		uptimed
-version		0.3.12
-revision	2
+version		0.3.17
 categories	sysutils
 license		GPL-2
 platforms	darwin
@@ -15,16 +14,20 @@
 
 homepage	http://podgorny.cz/moin/Uptimed
 master_sites	http://podgorny.cz/uptimed/releases/
-checksums	sha1 753ab59bb99d7b88a35174ce83081ad0bb224e56
 use_bzip2	yes
-patchfiles	patch-Makefile.in
+checksums	rmd160  0dece72bafb2f3434ea19c0aa83e91b473bc798d \
+		sha256  524ce8984c0d0a780a32025ba3ffb980e5eec3d78e65cf68c91edec7fe833a06
 
-configure.args	--mandir=${prefix}/share/man
-post-configure	{
-	reinplace "s|/var/spool/uptimed|${prefix}/var/spool/uptimed|g" \
-		${worksrcpath}/libuptimed/urec.h
-	reinplace "s|/var/run/uptimed|${prefix}/var/run/uptimed|g" \
-		${worksrcpath}/etc/uptimed.conf-dist
+patchfiles	patch-Makefile.in.diff \
+		patch-etc-uptimed.conf-dist.diff \
+		patch-libuptimed-urec.h.diff \
+		patch-src-uptimed.c.diff
+
+post-patch {
+	reinplace "s|@PREFIX@|${prefix}|g" \
+		${worksrcpath}/etc/uptimed.conf-dist \
+		${worksrcpath}/libuptimed/urec.h \
+		${worksrcpath}/src/uptimed.c
 }
 
 post-destroot	{

Deleted: trunk/dports/sysutils/uptimed/files/patch-Makefile.in
===================================================================
--- trunk/dports/sysutils/uptimed/files/patch-Makefile.in	2014-11-01 09:11:20 UTC (rev 127695)
+++ trunk/dports/sysutils/uptimed/files/patch-Makefile.in	2014-11-01 09:22:29 UTC (rev 127696)
@@ -1,11 +0,0 @@
---- Makefile.in	2007-11-10 13:13:22.000000000 +0100
-+++ Makefile.in	2007-11-10 13:14:41.000000000 +0100
-@@ -429,7 +429,7 @@
- 
- 
- install-data-local:
--	$(INSTALL) -d /var/spool/uptimed
-+	$(INSTALL) -d $(DESTDIR)$(prefix)/var/spool/uptimed
- # Tell versions [3.59,3.63) of GNU make to not export all variables.
- # Otherwise a system limit (for SysV at least) may be exceeded.
- .NOEXPORT:

Copied: trunk/dports/sysutils/uptimed/files/patch-Makefile.in.diff (from rev 127695, trunk/dports/sysutils/uptimed/files/patch-Makefile.in)
===================================================================
--- trunk/dports/sysutils/uptimed/files/patch-Makefile.in.diff	                        (rev 0)
+++ trunk/dports/sysutils/uptimed/files/patch-Makefile.in.diff	2014-11-01 09:22:29 UTC (rev 127696)
@@ -0,0 +1,11 @@
+--- Makefile.in.orig	2012-05-21 16:30:59.000000000 -0500
++++ Makefile.in	2014-11-01 04:13:20.000000000 -0500
+@@ -763,7 +763,7 @@
+ 
+ 
+ install-data-local:
+-	$(INSTALL) -d $(DESTDIR)/var/spool/uptimed
++	$(INSTALL) -d $(DESTDIR)$(prefix)/var/spool/uptimed
+ 
+ srpm: dist
+ 	@(rpmbuild -ts uptimed-$(PACKAGE_VERSION).tar.gz)

Added: trunk/dports/sysutils/uptimed/files/patch-etc-uptimed.conf-dist.diff
===================================================================
--- trunk/dports/sysutils/uptimed/files/patch-etc-uptimed.conf-dist.diff	                        (rev 0)
+++ trunk/dports/sysutils/uptimed/files/patch-etc-uptimed.conf-dist.diff	2014-11-01 09:22:29 UTC (rev 127696)
@@ -0,0 +1,11 @@
+--- etc/uptimed.conf-dist.orig	2012-05-21 16:30:59.000000000 -0500
++++ etc/uptimed.conf-dist	2014-11-01 04:17:03.000000000 -0500
+@@ -28,7 +28,7 @@
+ SENDMAIL=/usr/lib/sendmail -t
+ 
+ # Where to note our PID
+-PIDFILE=/var/run/uptimed
++PIDFILE=@PREFIX@/var/run/uptimed
+ 
+ # Milestones are configurable now.
+ # Syntax is pretty easy: MILESTONE=time:description

Added: trunk/dports/sysutils/uptimed/files/patch-libuptimed-urec.h.diff
===================================================================
--- trunk/dports/sysutils/uptimed/files/patch-libuptimed-urec.h.diff	                        (rev 0)
+++ trunk/dports/sysutils/uptimed/files/patch-libuptimed-urec.h.diff	2014-11-01 09:22:29 UTC (rev 127696)
@@ -0,0 +1,13 @@
+--- libuptimed/urec.h.orig	2012-05-21 16:30:59.000000000 -0500
++++ libuptimed/urec.h	2014-11-01 04:17:31.000000000 -0500
+@@ -54,8 +54,8 @@
+ 
+ #include "misc.h"
+ 
+-#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"
+ 
+ typedef struct urec {
+ 	time_t utime; /* uptime */

Added: trunk/dports/sysutils/uptimed/files/patch-src-uptimed.c.diff
===================================================================
--- trunk/dports/sysutils/uptimed/files/patch-src-uptimed.c.diff	                        (rev 0)
+++ trunk/dports/sysutils/uptimed/files/patch-src-uptimed.c.diff	2014-11-01 09:22:29 UTC (rev 127696)
@@ -0,0 +1,11 @@
+--- src/uptimed.c.orig	2012-05-21 16:30:59.000000000 -0500
++++ src/uptimed.c	2014-11-01 04:16:39.000000000 -0500
+@@ -53,7 +53,7 @@
+  
+  	if(!pidfile[0])
+  	{
+- 		strncpy(pidfile, "/var/run/uptimed", EMAIL);
++ 		strncpy(pidfile, "@PREFIX@/var/run/uptimed", EMAIL);
+  		pidfile[EMAIL] = '\0';
+  	}
+  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141101/4bd4a6e0/attachment.html>


More information about the macports-changes mailing list