source: trunk/dports/net/upclient/Portfile

Last change on this file was 71961, checked in by jmr@…, 7 years ago

upclient: fix build on recent OS versions (#26661), add license, use configure.cc

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.1 KB
Line 
1# $Id: Portfile 71961 2010-09-28 13:36:51Z ryandesign@macports.org $
2
3PortSystem      1.0
4
5name            upclient
6revision        2
7version         5.0b8
8categories      net
9maintainers     nomaintainer
10platforms       darwin
11license         GPL-2+
12description     uptime sharing utility.
13long_description ${description}
14homepage        http://upclient.sourceforge.net/
15master_sites    sourceforge
16checksums       md5 5d2ac85193fdb898dd16a694b05ac4d0 \
17                sha1 cffc7e232aa9eb487ec0206df2963a2f2c528a6d
18worksrcdir      ${worksrcdir}/src
19use_configure   no   
20build.target    ${os.platform}
21build.args      prefix="${prefix}" MAKEFLAGS="" CC=${configure.cc}
22destroot.destdir destdir="${destroot}"
23destroot.args   prefix="${prefix}" \
24                mandir="${prefix}/share/man"
25post-patch {
26    reinplace "s|uptimes.wonko.com|uptimes.hostingwired.com|g" ${worksrcpath}/Makefile
27    reinplace {s|CC=[a-z]*[:space:]| |g} ${worksrcpath}/Makefile
28}
29
30platform darwin {
31    if {${os.major} >= 9} {
32        patchfiles-append no-kvm.patch
33    }
34}
35
36startupitem.create      yes
37startupitem.start       ${prefix}/sbin/upclient
38startupitem.stop        "/bin/kill \$(cat ${prefix}/var/run/upclient.pid)"
Note: See TracBrowser for help on using the repository browser.