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

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

yaws: whitespace changes only; see #29187

  • 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; 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 77992 2011-04-19 04:05:16Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                yaws
7version             1.89
8categories          www
9maintainers         googlemail.com: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    3f6cc88eb7f154f017f78f1ad07eff5521e7319c \
19                    rmd160  9fc274a9ddc82cc83bceeaed133758ee71c2951e
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                    ${worksrcpath}/scripts/yaws.conf.template
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.