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

Last change on this file since 81595 was 81595, checked in by ciserlohn@…, 8 years ago

yaws: update to version 1.91

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 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 81595 2011-08-02 17:05:58Z ciserlohn@macports.org $
3
4PortSystem          1.0
5
6name                yaws
7version             1.91
8categories          www
9maintainers         ciserlohn
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           sha1    832665fd306ea19a433e3085055f39a5124205ef \
19                    rmd160  62fe994fe40b136c53d5b3b0ae62c134feeba39c
20
21depends_build       port:erlang
22
23depends_skip_archcheck  erlang
24
25extract.post_args   | tar -xf - --exclude \
26                    "${name}-${version}/www/testdir/xx*xx.jpg"
27
28patchfiles          patch-configure.in \
29                    patch-man-yaws.1 \
30                    patch-man-yaws_api.5 \
31                    patch-man-yaws.conf.5 \
32                    patch-scripts-Install \
33                    patch-scripts-Makefile \
34                    patch-scripts-yaws.conf.template
35
36post-patch {
37    reinplace "s|__PREFIX|${prefix}|g" \
38                    ${worksrcpath}/man/yaws.1 \
39                    ${worksrcpath}/man/yaws.conf.5 \
40                    ${worksrcpath}/man/yaws_api.5
41}
42
43default_variants    +yapp
44
45use_autoreconf      yes
46
47configure.args      --sysconfdir=${prefix}/etc \
48                    --localstatedir=${prefix}/var
49
50configure.universal_args-delete --disable-dependency-tracking
51
52variant yapp description {Yapp application handler} {
53    post-build {
54        system "cd ${worksrcpath}/applications/yapp && make && make docs"
55    }
56    post-destroot {
57        system "cd ${worksrcpath}/applications/yapp && make install DESTDIR=${destroot}"
58    }
59}
60
61post-destroot {
62    xinstall -d "${destroot}${prefix}/var/log/yaws/"
63    system "touch ${destroot}${prefix}/var/log/yaws/.turd"
64    file rename "${destroot}${prefix}/etc/yaws/yaws.conf" "${destroot}${prefix}/etc/yaws/yaws.conf.template"
65}
66
67notes "\
68Copy and customize ${prefix}/etc/yaws/yaws.conf.template to ${prefix}/etc/yaws/yaws.conf\
69"
70
71startupitem.create  yes
72startupitem.name    yaws
73startupitem.start   "${prefix}/bin/yaws --daemon --heart --conf ${prefix}/etc/yaws/yaws.conf"
74startupitem.stop    "${prefix}/bin/yaws --stop"
75
76livecheck.type      regex
77livecheck.url       http://yaws.hyber.org/download/
78livecheck.regex     {<address> Yaws (.*) Server at yaws.hyber.org </address>}
Note: See TracBrowser for help on using the repository browser.