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

Last change on this file since 18685 was 18685, checked in by pguyot (Paul Guyot), 13 years ago

Update to 1.64.

Bug:
Submitted by: jon.olsson@…
Reviewed by:
Approved by:
Obtained from:

  • Property svn:eol-style set to native
File size: 1.9 KB
Line 
1# $Id: Portfile,v 1.3 2006/07/22 08:54:03 pguyot Exp $
2
3PortSystem                      1.0
4name                            yaws
5version                         1.64
6categories                      www
7maintainers                     pguyot@kallisys.net
8platforms                       darwin
9description                     Webserver for dynamic content written in Erlang
10long_description        Yaws is a high performance HTTP server for dynamic content \
11                                        written in Erlang. Pages can be dynamic with embedded erlang \
12                                        code. Yaws also features a built-in Wiki.
13homepage                        http://yaws.hyber.org/
14master_sites            http://yaws.hyber.org/download/
15checksums                       md5 e5a122aede7c120b301d6c10eaf76c9d \
16                                        sha1 42e4b1ce76d91d9823317014910679cbba05c017 \
17                                        rmd160 378ecf8bf2309e3ec2d574e1f44554ca31c6848c
18
19depends_build           bin:erlc:erlang
20
21extract.post_args       | tar -xf - --exclude \
22                                        "${name}-${version}/www/testdir/xx*xx.jpg"
23
24patchfiles                      patch-man-yaws.1 \
25                                        patch-man-yaws_api.5 \
26                                        patch-man-yaws.conf.5 \
27                                        patch-scripts-Install \
28                                        patch-scripts-Makefile \
29                                        patch-scripts-yaws.conf.template
30
31post-patch {
32        reinplace "s|__PREFIX|${prefix}|g" ${worksrcpath}/man/yaws.1
33        reinplace "s|__PREFIX|${prefix}|g" ${worksrcpath}/man/yaws.conf.5
34        reinplace "s|__PREFIX|${prefix}|g" ${worksrcpath}/man/yaws_api.5
35        reinplace "s|__PREFIX|${prefix}|g" ${worksrcpath}/scripts/yaws.conf.template
36        reinplace "s|__PREFIX|${prefix}|g" ${worksrcpath}/src/yaws_config.erl
37}
38
39configure.args          --prefix=${prefix} \
40                                        --sysconfdir=${prefix}/etc \
41                                        --localstatedir=${prefix}/var
42                                       
43post-destroot {
44        xinstall -d "${destroot}${prefix}/var/log/yaws/"
45        system "touch ${destroot}${prefix}/var/log/yaws/.turd"
46        file rename "${destroot}${prefix}/etc/yaws.conf" "${destroot}${prefix}/etc/yaws.conf.template"
47}
48
49post-install {
50        ui_msg "Copy and customize ${prefix}/etc/yaws.conf.template to ${prefix}/etc/yaws.conf"
51}
52
53startupitem.create      yes
54startupitem.name        yaws
55startupitem.start       "${prefix}/bin/yaws --daemon --heart --conf ${prefix}/etc/yaws.conf"
56startupitem.stop        "${prefix}/bin/yaws --stop"
Note: See TracBrowser for help on using the repository browser.