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

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

New port: yaws-1.31, a web server written in Erlang.

Bug:
Submitted by:
Reviewed by:
Approved by:
Obtained from:

  • Property svn:eol-style set to native
File size: 1.8 KB
Line 
1# $Id: Portfile,v 1.1 2004/02/08 11:24:17 pguyot Exp $
2
3PortSystem                      1.0
4name                            yaws
5version                         1.31
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 ca39d9edc292de8a999845359589658e
16
17depends_build           bin:erlc:erlang
18depends_run                     path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup
19
20extract.post_args       | tar -xf - --exclude \
21                                        "${name}-${version}/www/testdir/xx*xx.jpg"
22post-extract {
23        # Copy BSD rc.d stuff.
24        file mkdir ${worksrcpath}/scripts/bsd/
25        file copy ${filespath}/yaws.sh ${worksrcpath}/scripts/bsd/
26}
27
28patchfiles                      patch-man-yaws.1 \
29                                        patch-man-yaws_api.5 \
30                                        patch-man-yaws.conf.5 \
31                                        patch-scripts-Install \
32                                        patch-scripts-yaws.conf.template \
33                                        patch-src-yaws_config.erl \
34                                        patch-src-yaws_ctl.erl
35
36post-patch {
37        reinplace "s|__PREFIX|${prefix}|g" ${worksrcpath}/man/yaws.1
38        reinplace "s|__PREFIX|${prefix}|g" ${worksrcpath}/man/yaws.conf.5
39        reinplace "s|__PREFIX|${prefix}|g" ${worksrcpath}/man/yaws_api.5
40        reinplace "s|__PREFIX|${prefix}|g" ${worksrcpath}/scripts/yaws.conf.template
41        reinplace "s|__PREFIX|${prefix}|g" ${worksrcpath}/src/yaws_config.erl
42        reinplace "s|__PREFIX|${prefix}|g" ${worksrcpath}/src/yaws_ctl.erl
43}
44
45configure.args          --prefix=${prefix} \
46                                        --sysconfdir=${prefix}/etc \
47                                        --localstatedir=${prefix}/var
48                                       
49post-destroot {
50        xinstall -d "${prefix}/var/log/yaws/"
51        system "touch ${prefix}/var/log/yaws/.turd"
52}
53
54post-install {
55        ui_msg "Copy and customize ${prefix}/etc/yaws.conf.template to ${prefix}/etc/yaws.conf"
56}
Note: See TracBrowser for help on using the repository browser.