mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
Also fix a compile warning, modernize checksums, add modeline, avoid HTTP redirects, and escape periods in regular expressions.
42 lines
1.5 KiB
Tcl
42 lines
1.5 KiB
Tcl
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
|
|
|
|
PortSystem 1.0
|
|
|
|
name upclient
|
|
revision 2
|
|
version 5.0b8
|
|
checksums rmd160 4778f4d43c2d7e9e3d99192e0e9f7b4083e24151 \
|
|
sha256 66785fd5fdacf6714b4d6d72bf84a334a43f58542ad47e813bf9e84800815a5b \
|
|
size 93298
|
|
|
|
categories net
|
|
maintainers nomaintainer
|
|
license GPL-2+
|
|
description uptime sharing utility.
|
|
long_description ${description}
|
|
set major [lindex [split ${version} .] 0]
|
|
homepage https://upclient.sourceforge.net
|
|
master_sites sourceforge:project/upclient/UpClient%20${major}%20beta/${version}%20Security%20Update/
|
|
worksrcdir ${worksrcdir}/src
|
|
use_configure no
|
|
build.target ${os.platform}
|
|
build.args prefix="${prefix}" MAKEFLAGS="" CC=${configure.cc}
|
|
destroot.destdir destdir="${destroot}"
|
|
destroot.args prefix="${prefix}" \
|
|
mandir="${prefix}/share/man"
|
|
patchfiles __APPLE_CC__.patch implicit.patch
|
|
post-patch {
|
|
reinplace -locale ISO8859-1 {s|uptimes\.wonko\.com|uptimes.hostingwired.com|g} ${worksrcpath}/Makefile
|
|
reinplace -locale ISO8859-1 {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)"
|