[30452] trunk/dports/net/throttled/Portfile
source_changes at macosforge.org
source_changes at macosforge.org
Sun Oct 28 00:40:43 PDT 2007
Revision: 30452
http://trac.macosforge.org/projects/macports/changeset/30452
Author: markd at macports.org
Date: 2007-10-28 00:40:42 -0700 (Sun, 28 Oct 2007)
Log Message:
-----------
Update ot 0.4.6; use startupitem instead of darwinportsstartup.
Modified Paths:
--------------
trunk/dports/net/throttled/Portfile
Modified: trunk/dports/net/throttled/Portfile
===================================================================
--- trunk/dports/net/throttled/Portfile 2007-10-28 07:32:12 UTC (rev 30451)
+++ trunk/dports/net/throttled/Portfile 2007-10-28 07:40:42 UTC (rev 30452)
@@ -3,7 +3,7 @@
PortSystem 1.0
name throttled
-version 0.3.2
+version 0.4.6
categories net
maintainers nomaintainer
description network bandwidth throttle daemon
@@ -16,32 +16,30 @@
homepage http://www.intrarts.com/throttled.html
master_sites http://www.intrarts.com/Files/
extract.suffix .tgz
-patchfiles patch-throttled-startup.diff
-checksums md5 d3e48c06ed3c8a4bf0017a37c213f4cb
+checksums md5 8e87b3eafa07220bb29a923dc4172d55
-depends_run path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup
+startupitem.create yes
+startupitem.name throttled
+startupitem.executable ${prefix}/sbin/throttled
-post-extract {
- file copy ${filespath}/throttled.sh ${worksrcpath}
+post-patch {
+ reinplace "s|/usr/local|${prefix}|g" \
+ ${worksrcpath}/Makefile \
+ ${worksrcpath}/throttled-startup \
+ ${worksrcpath}/throttledStartup/throttledStartup
}
-configure {
- reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/throttled-startup \
- ${worksrcpath}/throttled.sh
-}
-
+use_configure no
build.target
build.dir ${worksrcpath}/src
destroot {
- xinstall -m 755 -d ${destroot}${prefix}/etc/rc.d \
- ${destroot}${prefix}/share/doc/${name}
+ xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
xinstall -m 755 -s ${worksrcpath}/src/throttled ${destroot}${prefix}/sbin
- xinstall -m 644 ${worksrcpath}/throttled.sh ${destroot}${prefix}/etc/rc.d/
+
xinstall -m 644 ${worksrcpath}/throttled-startup \
${destroot}${prefix}/etc/throttled.conf.sample
xinstall -m 644 -W ${worksrcpath} README.txt COPYING.txt \
${destroot}${prefix}/share/doc/${name}
}
-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071028/446da4e0/attachment.html
More information about the macports-changes
mailing list