Commits

Marius Schamschula authored e95b3daee4c
mod_security2: mark apache22 variant as obsolete

See: https://trac.macports.org/ticket/58404
No tags

www/mod_security2/Portfile

Modified
25 25
26 26 worksrcdir ${distname}
27 27
28 28 depends_build port:pkgconfig
29 29
30 30 depends_lib port:apache2 \
31 31 port:libxml2 \
32 32 port:lua \
33 33 port:curl
34 34
35 -if {[variant_isset apache22]} {
36 - set apxs ${prefix}/apache22/bin/apxs
37 - set httpd_conf ${prefix}/apache22/conf/httpd.conf
38 - set mdir ${destroot}${prefix}/apache22/modules/
39 -} else {
40 - set apxs ${prefix}/bin/apxs
41 - set httpd_conf ${prefix}/etc/apache2/httpd.conf
42 - set mdir ${destroot}${prefix}/lib/apache2/modules/
43 -}
35 +set apxs ${prefix}/bin/apxs
36 +set httpd_conf ${prefix}/etc/apache2/httpd.conf
37 +set mdir ${destroot}${prefix}/lib/apache2/modules/
44 38
45 39 variant apache22 description "use apache22 instead of apache2" {
46 - depends_lib-replace port:apache2 port:apache22
47 - destroot.violate_mtree yes
40 + # remove after 2020-05-06
41 + ui_error "Please do not install this variant since Apache 2.2 is obsolete."
42 + return -code error
48 43 }
49 44
50 45 configure.args --with-apxs=${apxs} \
51 46 --with-pcre=${prefix}/bin/pcre-config \
52 47 --with-apr=${prefix}/bin/apr-1-config \
53 48 --with-apu=${prefix}/bin/apu-1-config \
54 49 --with-curl=${prefix}/bin/curl-config \
55 50 --with-libxml=${prefix} \
56 51 --with-lua=${prefix}
57 52

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut