Skip to content
Permalink
Browse files

Bug: https://trac.macports.org/ticket/727

Submitted by:   opendarwin@mweissmann.de (Markus Weissmann)
Reviewed by:
Approved by:
Obtained from:

new port, throttled

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@3092 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Felix Kronlage
Felix Kronlage committed Jul 30, 2003
1 parent dc7fdec commit 867083aa7d9bafd9b3797e90881cf32c718ea347
Showing with 55 additions and 0 deletions.
  1. +55 −0 net/throttled/Portfile
@@ -0,0 +1,55 @@
# $Id: Portfile,v 1.1 2003/07/30 00:24:10 fkr Exp $

PortSystem 1.0
name throttled
version 0.2.9
categories net
maintainers mail@mweissmann.de
description network bandwidth throttle
long_description throttled is a bandwidth throttle for Mac OS X, \
FreeBSD, and Linux which allows you to put a cap on \
your upstream bandwidth and keep your download speeds \
high even when your server is sending out at full speed.

homepage http://www.intrarts.com/throttled.html
master_sites http://www.intrarts.com/Files/
distname ${name}${version}
patch_sites http://wwwcip.informatik.uni-erlangen.de/~simrweis/dports/throttled
patchfiles throttledStartup.diff
checksums ${distfiles} md5 ed05b43f4a4584ca5c821ab40e07cac2 \
${patchfiles} md5 d19214ef84d029a63200ed54ad7f7bd9

depends_run path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup

platforms darwin freebsd

pre-patch { system "cd ${workpath} && mv ${name}\\ ${version} ${name}${version}" }

configure { reinplace "s|/usr/local/sbin/|${prefix}/sbin/|g" \
${worksrcpath}/throttledStartup/throttledStartup \
${worksrcpath}/throttled-startup }

build.target
build.dir ${worksrcpath}/src

install.cmd true

post-install { system "install -m 755 ${worksrcpath}/src/throttled \
${destroot}${prefix}/sbin \
&& install -v -d ${destroot}${prefix}/etc/rc.d \
&& install -v -d ${destroot}${prefix}/share/doc/throttled \
&& install -m 755 ${worksrcpath}/throttledStartup/throttledStartup \
${destroot}${prefix}/etc/rc.d/throttled.sh \
&& install -m 755 ${worksrcpath}/throttled-startup \
${destroot}${prefix}/sbin \
&& install -m 644 ${worksrcpath}/README.txt \
${destroot}${prefix}/share/doc/throttled \
&& install -m 644 ${worksrcpath}/COPYING.txt \
${destroot}${prefix}/share/doc/throttled" }

variant darwin {
extract.post_args | gnutar x
}
variant freebsd {
extract.post_args | gtar x
}

0 comments on commit 867083a

Please sign in to comment.
You can’t perform that action at this time.