source: trunk/dports/www/mod_cband/Portfile

Last change on this file was 110895, checked in by jmr@…, 4 years ago

mod_cband: license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# -*- 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
2# $Id: Portfile 110895 2013-09-09 18:48:19Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                mod_cband
7version             0.9.7.5
8categories          www
9license             GPL-2+ BSD-old Restrictive
10platforms           darwin
11maintainers         nomaintainer
12
13description         bandwidth limiting module for apache2
14
15long_description    mod_cband is an Apache 2 module that solves the problem \
16                    of limiting the bandwidth usage of users, virtual hosts \
17                    and destinations. When the configured transfer limit is \
18                    exceeded, mod_cband will redirect all further requests \
19                    to a location specified in the configuration file.
20
21homepage            http://sysdesign.pl/mod_cband/
22#master_sites        http://dembol.org/downloads/cband/
23distname            mod-cband-${version}
24extract.suffix      .tgz
25
26# md5 is needed for http master_site below
27checksums           md5     5c5d65dc9abe6cdc6931b6dd33be5018 \
28                    rmd160  19ea621a1f46878dd9178dd2186479ce2fb9a922 \
29                    sha256  6fd9024354153cc52538c81986afc18c1ff9395523bbe096f1810903fa7528ab
30
31foreach {type checksum} ${checksums} {
32    if {${type} == "md5"} {
33        master_sites http://pkgs.fedoraproject.org/repo/pkgs/${name}/${distfiles}/${checksum}
34    }
35}
36
37depends_lib         port:apache2
38
39# Doesn't end up building universal software.
40universal_variant   no
41
42patchfiles          patch-src-mod_cband.h.diff
43
44configure.args      --with-apxs=${prefix}/apache2/bin/apxs
45
46build.target        src/.libs/mod_cband.so
47
48destroot.violate_mtree yes
49destroot {
50    set moddir ${destroot}${prefix}/apache2/modules
51    set docdir ${destroot}${prefix}/share/doc/${name}
52    xinstall -m 755 -d ${moddir} ${docdir}/examples
53    xinstall -m 644 ${worksrcpath}/src/.libs/mod_cband.so ${moddir}
54    xinstall -m 644 -W ${worksrcpath} AUTHORS Changes LICENSE ${docdir}
55    xinstall -m 644 ${worksrcpath}/conf/vhosts.conf.example ${docdir}/examples
56}
Note: See TracBrowser for help on using the repository browser.