Ticket #10993: Portfile.diff

File Portfile.diff, 2.4 KB (added by pguyot (Paul Guyot), 18 years ago)
  • Portfile

     
    22
    33PortSystem 1.0
    44name              lighttpd
    5 version           1.4.11
    6 revision          1
     5version           1.4.13
    76categories        www
    87maintainers       jstetser@icongarden.com
    98description       A secure, fast, compliant and flexible web-server
     
    1312                  compared to other webservers and takes care of cpu-load.
    1413homepage          http://www.lighttpd.net/
    1514master_sites      ${homepage}/download/
    16 checksums         ${distname}.tar.gz sha1 ca904d3d4d9dde76f85156f2c709a394f30e28c8 \
    17                   lighttpd.conf sha1 b13edd7e9f7da3761f4e152ff92d5f34044bd91d
     15checksums         ${distname}.tar.gz \
     16                    md5 d775d6478391b95d841a1018c8db0b95 \
     17                    sha1 b17553e66609f85baec50263712a4a5aeca50ca5 \
     18                    rmd160 4e67e42dc3692d50c044561cc903de7b906f260c
    1819depends_lib       port:pcre \
    1920                  port:zlib
     21patchfiles        patch-doc-lighttpd.conf
    2022
     23post-patch {
     24        reinplace "s|__PREFIX|${prefix}|g" "${worksrcpath}/doc/lighttpd.conf"
     25}
     26
    2127configure.args    --mandir=${prefix}/share/man
    2228
     29# Startup item.
     30set lighttpd_config_name   lighttpd.conf
     31set lighttpd_config        ${prefix}/etc/${name}/${lighttpd_config_name}
     32set lighttpd_pidfile_name  lighttpd.pid
     33set lighttpd_pidfile       ${prefix}/var/run/${lighttpd_pidfile_name}
     34
     35startupitem.create  yes
     36startupitem.init    "PIDFILE=${lighttpd_pidfile}"
     37startupitem.start   "${prefix}/sbin/lighttpd -f ${lighttpd_config}"
     38startupitem.stop    "kill \$(cat \$PIDFILE)"
     39
    2340post-destroot {
    2441   file mkdir "${destroot}${prefix}/etc/${name}/"
    2542   xinstall -m 644 -v "${worksrcpath}/doc/lighttpd.conf" \
    26                       "${destroot}${prefix}/etc/${name}/lighttpd.conf.default"
     43                      "${destroot}${lighttpd_config}.default"
    2744}
    2845
     46post-install {
     47  ui_msg "\n Before starting lighttpd it must be configured.\n\
     48    Lighttpd is configured by editing ${lighttpd_config}\n\
     49    There's a sample config file at ${lighttpd_config}.default.\n\
     50    Please note that the launchd daemon relies on the PID being at\n\
     51    ${lighttpd_pidfile}."
     52}
     53
     54
    2955platform darwin 8 {
    3056        configure.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
    3157}
     
    74100                       
    75101   configure.args-append --with-webdav-props
    76102}
    77