source: trunk/dports/www/yaws/Portfile @ 35990

Last change on this file since 35990 was 35990, checked in by pguyot@…, 12 years ago

www/yaws: update to 1.76

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# $Id: Portfile 35990 2008-04-13 20:41:03Z pguyot@kallisys.net $
2
3PortSystem                      1.0
4name                            yaws
5version                         1.76
6categories                      www
7maintainers                     pguyot@kallisys.net
8platforms                       darwin
9description                     Webserver for dynamic content written in Erlang
10long_description        Yaws is a high performance HTTP server for dynamic content \
11                                        written in Erlang. Pages can be dynamic with embedded erlang \
12                                        code. Yaws also features a built-in Wiki.
13homepage                        http://yaws.hyber.org/
14master_sites            http://yaws.hyber.org/download/
15checksums                       md5 c6072c4dc6664fa8be88e12baa458eaf \
16                                        sha1 a2517bc95bde181561a2214329f5fcc80ded3c38 \
17                                        rmd160 8107c46d7b4b34e1662e7aa585f2722da1d021b2
18
19depends_build           port:erlang
20
21extract.post_args       | tar -xf - --exclude \
22                                        "${name}-${version}/www/testdir/xx*xx.jpg"
23
24patchfiles                      patch-man-yaws.1 \
25                                        patch-man-yaws_api.5 \
26                                        patch-man-yaws.conf.5 \
27                                        patch-scripts-Install \
28                                        patch-scripts-Makefile \
29                                        patch-scripts-yaws.conf.template
30
31post-patch {
32        reinplace "s|__PREFIX|${prefix}|g" ${worksrcpath}/man/yaws.1
33        reinplace "s|__PREFIX|${prefix}|g" ${worksrcpath}/man/yaws.conf.5
34        reinplace "s|__PREFIX|${prefix}|g" ${worksrcpath}/man/yaws_api.5
35        reinplace "s|__PREFIX|${prefix}|g" ${worksrcpath}/scripts/yaws.conf.template
36        reinplace "s|__PREFIX|${prefix}|g" ${worksrcpath}/src/yaws_config.erl
37}
38
39configure.args          --prefix=${prefix} \
40                                        --sysconfdir=${prefix}/etc \
41                                        --localstatedir=${prefix}/var
42                                       
43post-destroot {
44        xinstall -d "${destroot}${prefix}/var/log/yaws/"
45        system "touch ${destroot}${prefix}/var/log/yaws/.turd"
46        file rename "${destroot}${prefix}/etc/yaws.conf" "${destroot}${prefix}/etc/yaws.conf.template"
47}
48
49post-install {
50        ui_msg "Copy and customize ${prefix}/etc/yaws.conf.template to ${prefix}/etc/yaws.conf"
51}
52
53startupitem.create      yes
54startupitem.name        yaws
55startupitem.start       "${prefix}/bin/yaws --daemon --heart --conf ${prefix}/etc/yaws.conf"
56startupitem.stop        "${prefix}/bin/yaws --stop"
57
58livecheck.check regex
59livecheck.url   http://yaws.hyber.org/download/
60livecheck.regex {<address> Yaws (.*) Server at yaws.hyber.org </address>}
Note: See TracBrowser for help on using the repository browser.