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

Last change on this file since 71000 was 71000, checked in by ryandesign@…, 9 years ago

yaws: update to 1.88

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id: Portfile 71000 2010-08-29 09:00:10Z ryandesign@macports.org $
3
4PortSystem                      1.0
5
6name                            yaws
7version                         1.88
8categories                      www
9maintainers                     nomaintainer
10platforms                       darwin
11description                     Webserver for dynamic content written in Erlang
12long_description        Yaws is a high performance HTTP server for dynamic content \
13                                        written in Erlang. Pages can be dynamic with embedded erlang \
14                                        code. Yaws also features a built-in Wiki.
15homepage                        http://yaws.hyber.org/
16master_sites            http://yaws.hyber.org/download/
17
18checksums                       md5     950f8199592c6490556632e20e59a353 \
19                                        sha1    053c5e821158f2f88fc25658384d1f793140eacb \
20                                        rmd160  03b39698b0b49b8bc336b265ab97c23626c9720d
21
22depends_build           port:erlang
23
24extract.post_args       | tar -xf - --exclude \
25                                        "${name}-${version}/www/testdir/xx*xx.jpg"
26
27patchfiles                      patch-man-yaws.1 \
28                                        patch-man-yaws_api.5 \
29                                        patch-man-yaws.conf.5 \
30                                        patch-scripts-Install \
31                                        patch-scripts-Makefile \
32                                        patch-scripts-yaws.conf.template
33
34post-patch {
35        reinplace "s|__PREFIX|${prefix}|g" \
36                                        ${worksrcpath}/man/yaws.1 \
37                                        ${worksrcpath}/man/yaws.conf.5 \
38                                        ${worksrcpath}/man/yaws_api.5 \
39                                        ${worksrcpath}/scripts/yaws.conf.template
40}
41
42default_variants        +yapp
43
44configure.args          --sysconfdir=${prefix}/etc \
45                                        --localstatedir=${prefix}/var
46
47variant yapp description {Yapp application handler} {
48        post-build {
49                system "cd ${worksrcpath}/applications/yapp && make && make docs"
50        }
51        post-destroot {
52                system "cd ${worksrcpath}/applications/yapp && make install DESTDIR=${destroot}"
53        }
54}
55                                       
56post-destroot {
57        xinstall -d "${destroot}${prefix}/var/log/yaws/"
58        system "touch ${destroot}${prefix}/var/log/yaws/.turd"
59        file rename "${destroot}${prefix}/etc/yaws/yaws.conf" "${destroot}${prefix}/etc/yaws/yaws.conf.template"
60}
61
62post-install {
63        ui_msg "Copy and customize ${prefix}/etc/yaws/yaws.conf.template to ${prefix}/etc/yaws/yaws.conf"
64}
65
66startupitem.create      yes
67startupitem.name        yaws
68startupitem.start       "${prefix}/bin/yaws --daemon --heart --conf ${prefix}/etc/yaws/yaws.conf"
69startupitem.stop        "${prefix}/bin/yaws --stop"
70
71livecheck.type  regex
72livecheck.url   http://yaws.hyber.org/download/
73livecheck.regex {<address> Yaws (.*) Server at yaws.hyber.org </address>}
Note: See TracBrowser for help on using the repository browser.