Ticket #52103: nginx-fancyindex.diff

File nginx-fancyindex.diff, 1.3 KB (added by ryandesign (Ryan Carsten Schmidt), 8 years ago)
  • Portfile

     
    151151    configure.args-append   --with-http_degradation_module
    152152}
    153153
     154variant fancyindex description {Enable fancyindex module (https://www.nginx.com/resources/wiki/modules/fancy_index/)} {
     155    global fancyindex_project
     156    set fancyindex_project  ngx-fancyindex
     157    set fancyindex_version  v0.4.1
     158    set fancyindex_distname ${fancyindex_project}-${fancyindex_version}
     159    set fancyindex_distfile ${fancyindex_distname}${extract.suffix}
     160    master_sites-append     https://github.com/aperezdc/${fancyindex_project}/tarball/${fancyindex_version}/:fancyindex_module
     161    distfiles-append        ${fancyindex_distfile}:fancyindex_module
     162    checksums-append        ${fancyindex_distfile} \
     163                            rmd160  4ce9c8e463d7b23ee5c2906a5b072f8de63dbd31 \
     164                            sha256  2889933e8a0c438fdd599f1648cf354b3c3ff2e83b9e8a1ca5d5d21f5d0c5b6f
     165    pre-configure {
     166        configure.args-append --with-http_addition_module --add-module=[glob ${workpath}/*-${fancyindex_project}-*]
     167    }
     168}
     169
    154170variant flv description {Add FLV (Flash Video) streaming support to server} {
    155171    configure.args-append   --with-http_flv_module
    156172}