source: trunk/dports/www/mod_security/Portfile

Last change on this file was 128952, checked in by ionic@…, 3 years ago

mod_security: fix distfile fetching.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.7 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 128952 2014-12-01 03:03:37Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                mod_security
7version             1.9.5
8categories          www security
9maintainers         nomaintainer
10description         intrusion detection and prevention engine for web applications
11long_description    ModSecurity is an open source intrusion detection and \
12                    prevention engine for web applications. It operates \
13                    embedded into the web server, acting as a powerful \
14                    umbrella - shielding applications from attacks. \
15                    It supports both branches of the Apache web server.
16homepage            http://www.modsecurity.org/
17license             GPL-2
18platforms           darwin
19# http://sourceforge.net/projects/mod-security/files/modsecurity-apache/1.9.5/
20#master_sites       sourceforge:macports
21#master_sites       sourceforge:mod-security/files/modsecurity-apache/${version}/        # NOK
22#master_sites       sourceforge:projects/mod-security/files/modsecurity-apache/${version}/    # NOK
23#master_sites       sourceforge:project/mod-security/files/modsecurity-apache/${version}/    # NOK
24#master_sites       sourceforge:modsecurity-apache/${version}/                # NOK
25master_sites        sourceforge:project/mod-security/modsecurity-apache/${version}
26distname            modsecurity-apache_${version}
27
28checksums           rmd160  f36f29f75bb30ca80ebaf5a96aa951e9de475d03 \
29                    sha256  927fafbce4fc11d32fe808a46c62da335a8703a6d18c22aadb7dd9692cf752a5
30
31use_configure       no
32
33#variant apache1 {
34    # See #41436 et al.
35    depends_lib port:apache
36    build.cmd   ${prefix}/sbin/apxs
37    set apachedir   apache
38    set apachever   apache1
39#}
40
41#variant apache2    {
42#   depends_lib port:apache2
43#   build.cmd   ${prefix}/apache2/bin/apxs
44#   set apachedir   apache2
45#   set apachever   apache2
46#}
47
48build.args      -c -o ${name}.so ${apachever}/${name}.c
49build.target
50
51destroot {
52    xinstall -d -m 755 ${destroot}${prefix}/libexec/${apachedir} \
53        ${destroot}${prefix}/share/doc/${name}
54    xinstall -m 755 ${worksrcpath}/${name}.so \
55        ${destroot}${prefix}/libexec/${apachedir}/
56    xinstall -m 644 -W ${worksrcpath} CHANGES INSTALL LICENSE README \
57        ${destroot}${prefix}/share/doc/${name}
58}
59
60notes "mod_security ${version} has been released on 2009.01.22. You are strongly encouraged to use mod_security2 or other maintained alternatives."
61
62livecheck.type      regex
63livecheck.url       http://sourceforge.net/projects/mod-security/files/modsecurity-apache/
64livecheck.regex     "<a href=\"/projects/mod-security/files/modsecurity-apache/(1(?:\\.\\d+)*)/\""
Note: See TracBrowser for help on using the repository browser.