Changeset 92282


Ignore:
Timestamp:
Apr 23, 2012, 9:19:42 PM (8 years ago)
Author:
cal@…
Message:

nginx: Update redis module, reorder variants, always enable ipv6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/www/nginx/Portfile

    r92281 r92282  
    66name                nginx
    77version             1.0.15
     8revision            1
    89categories          www mail
    910platforms           darwin
     
    5455                    --http-proxy-temp-path=${nginx_rundir}/proxy_temp \
    5556                    --http-fastcgi-temp-path=${nginx_rundir}/fastcgi_temp \
    56                     --http-uwsgi-temp-path=${nginx_rundir}/uwsgi_temp
     57                    --http-uwsgi-temp-path=${nginx_rundir}/uwsgi_temp \
     58                    --with-ipv6
    5759
    58 default_variants    +ipv6
    5960universal_variant   no
    6061
     
    6970    file rename ${destroot}${prefix}/html ${destroot}${prefix}/share/nginx
    7071}
    71 pre-activate {
    72     # Try to cover for the fact that, in earlier revisions of this port, the
    73     # configuration file was installed live instead of an example, in which
    74     # case an upgrade will clobber any customisations that a user might have
    75     # made :(
    76     set nginx_conf_is_registered_to_nginx \
    77         [expr {[registry_file_registered ${nginx_conf}] == "${name}"}]
    78     set nginx_conf_differs \
    79         [catch {exec cmp ${nginx_conf} ${nginx_conf}.example}]
    80     if { ${nginx_conf_is_registered_to_nginx} && ${nginx_conf_differs} } {
    81         copy ${nginx_conf} ${nginx_conf}.altered
    82         ui_msg ""
    83         ui_msg "###############################################################"
    84         ui_msg "# It appears that you have altered ${nginx_conf}, and that"
    85         ui_msg "# upgrading or uninstalling your previous installation of"
    86         ui_msg "# ${name} will clobber your copy. It has been copied to"
    87         ui_msg "# ${nginx_conf}.altered for preservation when you upgrade or"
    88         ui_msg "# uninstall ${name}. This problem should not occur with future"
    89         ui_msg "# upgrades or installations of this port."
    90         ui_msg "###############################################################"
    91         ui_msg ""
    92     }
     72
     73startupitem.create      yes
     74startupitem.pidfile     auto ${nginx_pidfile}
     75startupitem.executable  ${prefix}/sbin/nginx
     76
     77variant addition description {Append text to pages} {
     78    configure.args-append   --with-http_addition_module
    9379}
    94 
    95 startupitem.create  yes
    96 startupitem.pidfile auto ${nginx_pidfile}
    97 startupitem.executable \
    98                     ${prefix}/sbin/nginx
    9980
    10081variant dav description {Add WebDAV support to server} {
    10182    configure.args-append   --with-http_dav_module
     83}
     84
     85variant degradation description {Allow to return 204 or 444 code for some locations on low memory condition} {
     86    configure.args-append   --with-http_degradation_module
    10287}
    10388
     
    10691}
    10792
     93variant geoip description {Enable Ngx http GeoIP module (http://wiki.nginx.org/HttpGeoIPModule)} {
     94    configure.args-append   --with-http_geoip_module
     95    depends_lib-append      port:libgeoip
     96}
     97
     98variant google_perftools description {Enable Google Performance Tools profiling for workers} {
     99    configure.args-append   --with-google_perftools_module
     100    depends_lib-append      port:google-perftools
     101}
     102
     103variant gzip_static description {Avoids compressing the same file each time it is requested} {
     104    configure.args-append   --with-http_gzip_static_module
     105}
     106
     107variant image_filter description {Transform images with libgd} {
     108    configure.args-append   --with-http_image_filter_module
     109    depends_lib-append      port:gd2
     110}
     111
    108112variant mail description {Add IMAP4/POP3 mail proxy support} {
    109113    configure.args-append   --with-mail
     114    if {[variant_isset ssl]} {
     115        configure.args-append   --with-mail_ssl_module
     116    }
    110117}
    111118
    112 variant ssl description {Add SSL (HTTPS) support to the server, and\
    113         also to the mail proxy if that is enabled} {
     119variant mp4 description {Enables mp4 streaming with seeking ability} {
     120    configure.args-append   --with-http_mp4_module
     121}
     122
     123variant perl5 description {Add perl support to the server directly within nginx and call perl via SSI} {
     124    depends_run-append      path:bin/perl:perl5
     125    configure.args-append   --with-http_perl_module \
     126                            --with-perl=${prefix}/bin/perl
     127}
     128
     129variant random_index description {Randomize directory indexes} {
     130    configure.args-append   --with-http_random_index_module
     131}
     132
     133variant realip description {For using nginx as backend} {
     134    configure.args-append   --with-http_realip_module
     135}
     136
     137variant secure_link description {Protect pages with a secret key} {
     138    configure.args-append   --with-http_secure_link_module
     139}
     140
     141variant ssl description {Add SSL (HTTPS) support to the server, and also to the mail proxy if that is enabled} {
     142    configure.args-append   --with-http_ssl_module
    114143    depends_lib-append      port:openssl
    115     configure.args-append   --with-http_ssl_module
    116     if [variant_isset mail] {
    117         configure.args-append   --with-mail_ssl_module
    118     }
    119144}
    120145
     
    123148}
    124149
    125 variant ipv6 description {Add support for ipv6} {
    126     configure.args-append   --with-ipv6
    127 }
    128 
    129 # This variant has been labelled "perl5" so as to allow users to easily stick
    130 # with perl 5.x once perl 6.x is released; a "perl6" variant will also be added
    131 # at that time.
    132 variant perl5 description {Add perl support to the server directly within\
    133         nginx and call perl via SSI} {
    134     depends_run-append      path:bin/perl:perl5
    135     configure.args-append   --with-http_perl_module \
    136                             --with-perl=${prefix}/bin/perl
    137 }
    138 
    139 variant realip description {Using nginx as a backend} {
    140     configure.args-append   --with-http_realip_module
    141 }
    142 
    143 variant addition description {Append text to pages} {
    144     configure.args-append   --with-http_addition_module
    145 }
    146 
    147150variant substitution description {Replace text in pages} {
    148151    configure.args-append   --with-http_sub_module
    149152}
    150153
    151 variant gzip_static description {Avoids compressing the same file each\
    152         time it is requested} {
    153     configure.args-append   --with-http_gzip_static_module
    154 }
    155 
    156 variant google_perftools description {Enable Google Performance Tools\
    157         profiling for workers} {
    158     depends_lib-append      port:google-perftools
    159     configure.args-append   --with-google_perftools_module
    160 }
    161 
    162 variant upload description {Enable Valery Kholodkov's upload module\
    163         (http://grid.net.ru/nginx/upload.en.html)} {
     154variant upload description {Enable Valery Kholodkov's upload module (http://grid.net.ru/nginx/upload.en.html)} {
    164155    set upload_filename     nginx_upload_module
    165156    set upload_version      2.2.0
     
    170161                            sha256  b1c26abe0427180602e257627b4ed21848c93cc20cefc33af084983767d65805
    171162    configure.args-append   --add-module=${workpath}/${upload_distname}
     163}
     164
     165variant xslt description {Post-process pages with XSLT} {
     166    configure.args-append   --with-http_xslt_module
    172167}
    173168
     
    185180variant redis description {Enable Ngx HTTP Redis module} {
    186181    set redis_filename      ngx_http_redis
    187     set redis_version       0.3.1
     182    set redis_version       0.3.6
    188183    set redis_distname      ${redis_filename}-${redis_version}
    189184    distfiles-append        ${redis_distname}.tar.gz:redis_module
    190185    checksums-append        ${redis_distname}.tar.gz \
    191                             rmd160  2a8a7ca4b62b33558b249aa19f7d5f34f77a2801 \
    192                             sha256  b66291bf7a034baf351fc4d0e57558d672bed0582fcfa9008eba4acf6b4486c4
     186                            rmd160  0d1de19ce1ae8b9b7fcd9693908403e613f5391d \
     187                            sha256  9e5d8c0f1317a6910710c94d27f9aca4968c48ee1de271e5034525a1e9b6c70e
    193188    configure.args-append   --add-module=${workpath}/${redis_distname}
    194 }
    195 
    196 variant geoip description {Enable Ngx http GeoIP module \
    197         (http://wiki.nginx.org/HttpGeoIPModule)} {
    198 
    199     configure.args-append   --with-http_geoip_module
    200     depends_lib-append      port:libgeoip
    201 }
    202 
    203 variant debug description {Enable debug mode} {
    204     configure.args-append   --with-debug
    205189}
    206190
Note: See TracChangeset for help on using the changeset viewer.