source: trunk/dports/www/yaws/Portfile

Last change on this file was 153213, checked in by ciserlohn@…, 12 months ago

yaws: update to version 2.0.4

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 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 153213 2016-09-27 11:52:42Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                yaws
7version             2.0.4
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  a28395dba23c1a2d1ce69e3ba41dfb6a38cfad62 \
20                    sha256  da6677c315aadc7c64c970ef74eaa29f61eba886c7d30c61806651ac38c1e6c5
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-man-yaws.1 \
30                    patch-man-yaws_api.5 \
31                    patch-man-yaws.conf.5 \
32                    patch-scripts-yaws.conf.template \
33                    patch-scripts-regular-install
34
35post-patch {
36    reinplace "s|__PREFIX|${prefix}|g" \
37                    ${worksrcpath}/man/yaws.1 \
38                    ${worksrcpath}/man/yaws.conf.5 \
39                    ${worksrcpath}/man/yaws_api.5
40}
41
42default_variants    +yapp
43
44use_autoreconf      yes
45
46configure.args      --sysconfdir=${prefix}/etc \
47                    --localstatedir=${prefix}/var
48
49configure.universal_args-delete --disable-dependency-tracking
50
51variant yapp description {Yapp application handler} {
52    post-build {
53        system "cd ${worksrcpath}/applications/yapp && make && make docs"
54    }
55    post-destroot {
56        system "cd ${worksrcpath}/applications/yapp && make install DESTDIR=${destroot}"
57    }
58}
59
60post-destroot {
61    xinstall -d "${destroot}${prefix}/var/log/yaws/"
62    system "touch ${destroot}${prefix}/var/log/yaws/.turd"
63    file delete "${destroot}${prefix}/etc/yaws/yaws.conf"
64}
65
66notes "\
67Copy and customize ${prefix}/etc/yaws/yaws.conf.template to ${prefix}/etc/yaws/yaws.conf\
68"
69
70startupitem.create  yes
71startupitem.name    yaws
72startupitem.start   "${prefix}/bin/yaws --daemon --heart --conf ${prefix}/etc/yaws/yaws.conf"
73startupitem.stop    "${prefix}/bin/yaws --stop"
74
75livecheck.type      regex
76livecheck.url       http://yaws.hyber.org/download/
77livecheck.regex     {<a href="yaws-(.*?).tar.gz"}
Note: See TracBrowser for help on using the repository browser.