Ticket #10993: Portfile.diff
File Portfile.diff, 2.4 KB (added by pguyot (Paul Guyot), 18 years ago) |
---|
-
Portfile
2 2 3 3 PortSystem 1.0 4 4 name lighttpd 5 version 1.4.11 6 revision 1 5 version 1.4.13 7 6 categories www 8 7 maintainers jstetser@icongarden.com 9 8 description A secure, fast, compliant and flexible web-server … … 13 12 compared to other webservers and takes care of cpu-load. 14 13 homepage http://www.lighttpd.net/ 15 14 master_sites ${homepage}/download/ 16 checksums ${distname}.tar.gz sha1 ca904d3d4d9dde76f85156f2c709a394f30e28c8 \ 17 lighttpd.conf sha1 b13edd7e9f7da3761f4e152ff92d5f34044bd91d 15 checksums ${distname}.tar.gz \ 16 md5 d775d6478391b95d841a1018c8db0b95 \ 17 sha1 b17553e66609f85baec50263712a4a5aeca50ca5 \ 18 rmd160 4e67e42dc3692d50c044561cc903de7b906f260c 18 19 depends_lib port:pcre \ 19 20 port:zlib 21 patchfiles patch-doc-lighttpd.conf 20 22 23 post-patch { 24 reinplace "s|__PREFIX|${prefix}|g" "${worksrcpath}/doc/lighttpd.conf" 25 } 26 21 27 configure.args --mandir=${prefix}/share/man 22 28 29 # Startup item. 30 set lighttpd_config_name lighttpd.conf 31 set lighttpd_config ${prefix}/etc/${name}/${lighttpd_config_name} 32 set lighttpd_pidfile_name lighttpd.pid 33 set lighttpd_pidfile ${prefix}/var/run/${lighttpd_pidfile_name} 34 35 startupitem.create yes 36 startupitem.init "PIDFILE=${lighttpd_pidfile}" 37 startupitem.start "${prefix}/sbin/lighttpd -f ${lighttpd_config}" 38 startupitem.stop "kill \$(cat \$PIDFILE)" 39 23 40 post-destroot { 24 41 file mkdir "${destroot}${prefix}/etc/${name}/" 25 42 xinstall -m 644 -v "${worksrcpath}/doc/lighttpd.conf" \ 26 "${destroot}${ prefix}/etc/${name}/lighttpd.conf.default"43 "${destroot}${lighttpd_config}.default" 27 44 } 28 45 46 post-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 29 55 platform darwin 8 { 30 56 configure.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0 31 57 } … … 74 100 75 101 configure.args-append --with-webdav-props 76 102 } 77