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

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

yaws: update to version 1.94

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