[71961] trunk/dports/net/upclient
jmr at macports.org
jmr at macports.org
Tue Sep 28 06:36:53 PDT 2010
Revision: 71961
http://trac.macports.org/changeset/71961
Author: jmr at macports.org
Date: 2010-09-28 06:36:51 -0700 (Tue, 28 Sep 2010)
Log Message:
-----------
upclient: fix build on recent OS versions (#26661), add license, use configure.cc
Modified Paths:
--------------
trunk/dports/net/upclient/Portfile
Added Paths:
-----------
trunk/dports/net/upclient/files/
trunk/dports/net/upclient/files/no-kvm.patch
Modified: trunk/dports/net/upclient/Portfile
===================================================================
--- trunk/dports/net/upclient/Portfile 2010-09-28 12:58:35 UTC (rev 71960)
+++ trunk/dports/net/upclient/Portfile 2010-09-28 13:36:51 UTC (rev 71961)
@@ -8,6 +8,7 @@
categories net
maintainers nomaintainer
platforms darwin
+license GPL-2+
description uptime sharing utility.
long_description ${description}
homepage http://upclient.sourceforge.net/
@@ -17,14 +18,21 @@
worksrcdir ${worksrcdir}/src
use_configure no
build.target ${os.platform}
-build.args prefix="${prefix}"
+build.args prefix="${prefix}" MAKEFLAGS="" CC=${configure.cc}
destroot.destdir destdir="${destroot}"
destroot.args prefix="${prefix}" \
mandir="${prefix}/share/man"
-post-extract {
+post-patch {
reinplace "s|uptimes.wonko.com|uptimes.hostingwired.com|g" ${worksrcpath}/Makefile
+ reinplace {s|CC=[a-z]*[:space:]| |g} ${worksrcpath}/Makefile
}
+platform darwin {
+ if {${os.major} >= 9} {
+ patchfiles-append no-kvm.patch
+ }
+}
+
startupitem.create yes
startupitem.start ${prefix}/sbin/upclient
startupitem.stop "/bin/kill \$(cat ${prefix}/var/run/upclient.pid)"
Added: trunk/dports/net/upclient/files/no-kvm.patch
===================================================================
--- trunk/dports/net/upclient/files/no-kvm.patch (rev 0)
+++ trunk/dports/net/upclient/files/no-kvm.patch 2010-09-28 13:36:51 UTC (rev 71961)
@@ -0,0 +1,21 @@
+--- stats-bsd.c.orig 2003-05-27 17:03:43.000000000 +1000
++++ stats-bsd.c 2010-09-28 23:24:05.000000000 +1000
+@@ -48,7 +48,6 @@
+ #include <err.h> /* FreeBSD */
+ #include <errno.h>
+ #include <fcntl.h>
+-#include <kvm.h>
+ #include <limits.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+--- Makefile.orig 2003-05-27 17:13:02.000000000 +1000
++++ Makefile 2010-09-28 23:32:33.000000000 +1000
+@@ -207,7 +207,7 @@
+
+ darwin:
+ $(MAKE) $(MAKEFLAGS) CC=cc \
+- LDFLAGS='$(LDFLAGS) -lkvm -prebind' \
++ LDFLAGS='$(LDFLAGS) -prebind' \
+ CFLAGS='$(CFLAGS) -prebind' \
+ PLATFORMFLAG='-DPLATFORM_BSD' \
+ all
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100928/32dceffc/attachment.html>
More information about the macports-changes
mailing list