source: trunk/dports/www/jetty/Portfile @ 8419

Last change on this file since 8419 was 8419, checked in by landonf, 15 years ago

Add jetty, a java servlet server

  • Property svn:eol-style set to native
File size: 1.9 KB
Line 
1# $Id: Portfile,v 1.1 2004/09/24 00:28:16 landonf Exp $
2
3PortSystem 1.0
4name                    jetty
5version                 4.2.22
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 \
22                        ftp://jetty.mortbay.com/pub/
23
24distname                ${name}-${version}-all
25worksrcdir              ${name}-${version}
26
27checksums               md5 9d376acd3dd39dc3b8ef51fe55ad554d
28
29patchfiles              patch-bin-jetty.sh
30
31set javadest "${prefix}/share/java/${name}-${version}"
32
33post-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}
Note: See TracBrowser for help on using the repository browser.