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

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

yaws: update to version 1.96

  • 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; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 104173 2013-03-19 19:41:16Z ciserlohn@macports.org $
3
4PortSystem          1.0
5
6name                yaws
7version             1.96
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  00c3c687bcea0f2ce1a63f746c03a8ac2862e88e \
20                    sha256  8d4f16d18937335ac021ca4c65c8ee81dc4d71f133718c7148856cc6bf1f55e2
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     {<a href="yaws-(.*?).tar.gz"}
Note: See TracBrowser for help on using the repository browser.