Ticket #8573: Portfile

File Portfile, 1.9 KB (added by bakkerbart@…, 18 years ago)

Portfile for www/jetty-5.1.10

Line 
1# $Id: Portfile,v 1.1 2004/09/24 00:28:16 landonf Exp $
2
3PortSystem 1.0
4name                    jetty
5version                 5.1.10
6platforms               darwin
7categories              www java
8maintainers             landonf@opendarwin.org
9description             Java HTTP Servlet Server
10homepage                http://www.mortbay.org/jetty/
11long_description        Jetty is a 100% Java HTTP Server and Servlet \
12                        Container. Jetty is a fully featured web server for \
13                        static and dynamic content. Unlike separate \
14                        server/container solutions, this means that your web \
15                        server and web application run in the same process, \
16                        without interconnection overheads and complications. \
17                        Furthermore, as a pure java component, Jetty can be \
18                        simply included in your application for \
19                        demonstration, distribution or deployment.
20
21master_sites            sourceforge
22use_zip                 yes
23
24distname                ${name}-${version}-all
25worksrcdir              ${name}-${version}
26
27checksums               md5 16e3ff161a53bddad3a5624a2e689393
28
29# patchfiles            patch-bin-jetty.sh
30
31set javadest "${prefix}/share/java/${name}-${version}"
32
33#post-patch {
34#                       reinplace "s|@JETTY_HOME@|${javadest}|g" ${worksrcpath}/bin/jetty.sh
35#                       reinplace "s|@JETTY_RUN@|${prefix}/var/run|g" ${worksrcpath}/bin/jetty.sh
36#}
37
38configure {}
39
40build {}
41
42destroot {
43                        file mkdir "${destroot}${javadest}"
44                        file mkdir "${destroot}${prefix}/share/doc"
45#                       file copy "${worksrcpath}/javadoc" "${destroot}${prefix}/share/doc/jetty"
46                        file copy "${worksrcpath}/lib" "${destroot}${javadest}/"
47                        file copy "${worksrcpath}/ext" "${destroot}${javadest}/"
48                        file copy "${worksrcpath}/etc" "${destroot}${javadest}/"
49                        file copy "${worksrcpath}/start.jar" "${destroot}${javadest}/"
50                        file copy "${worksrcpath}/stop.jar" "${destroot}${javadest}/"
51                        file copy "${worksrcpath}/webapps" "${destroot}${javadest}/"
52#                       file copy "${worksrcpath}/bin" "${destroot}${javadest}/"
53#                       system "cd ${destroot}${prefix}/sbin/ && ln -s ../share/java/${name}-${version}/bin/jetty.sh jetty"
54#                       file attributes ${destroot}${javadest}/bin/jetty.sh -permissions a+x
55}