source: trunk/dports/net/throttled/Portfile

Last change on this file was 103953, checked in by jmr@…, 5 years ago

throttled: license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1# $Id: Portfile 103953 2013-03-10 21:41:16Z ryandesign@macports.org $
2
3PortSystem      1.0
4
5name            throttled
6version         0.4.6
7categories      net
8license         GPL-2+
9maintainers     nomaintainer
10description     network bandwidth throttle daemon
11platforms       darwin freebsd
12long_description \
13    throttled is a bandwidth throttle daemon for Mac OS X, FreeBSD, and Linux \
14    which allows you to put a cap on your upstream bandwidth and keep your download \
15    speeds high even when your server is sending out at full speed.
16
17homepage        http://www.intrarts.com/throttled.html
18master_sites    http://www.intrarts.com/Files/
19extract.suffix  .tgz
20
21checksums       md5 8e87b3eafa07220bb29a923dc4172d55
22
23startupitem.create      yes
24startupitem.name        throttled
25startupitem.executable  ${prefix}/sbin/throttled
26
27patchfiles      patch-src_Makefile.diff
28
29post-patch {
30    reinplace "s|/usr/local|${prefix}|g" \
31        ${worksrcpath}/Makefile \
32        ${worksrcpath}/throttled-startup \
33        ${worksrcpath}/throttledStartup/throttledStartup 
34}
35
36use_configure no
37build.target
38build.dir       ${worksrcpath}/src
39
40destroot {
41    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
42    xinstall -m 755 -s ${worksrcpath}/src/throttled ${destroot}${prefix}/sbin
43
44    xinstall -m 644 ${worksrcpath}/throttled-startup \
45        ${destroot}${prefix}/etc/throttled.conf.sample
46    xinstall -m 644 -W ${worksrcpath} README.txt COPYING.txt \
47        ${destroot}${prefix}/share/doc/${name}
48}
Note: See TracBrowser for help on using the repository browser.