1 | # $Id: Portfile,v 1.1 2004/09/24 00:28:16 landonf Exp $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name jetty |
---|
5 | version 5.1.10 |
---|
6 | platforms darwin |
---|
7 | categories www java |
---|
8 | maintainers landonf@opendarwin.org |
---|
9 | description Java HTTP Servlet Server |
---|
10 | homepage http://www.mortbay.org/jetty/ |
---|
11 | long_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 | |
---|
21 | master_sites sourceforge |
---|
22 | use_zip yes |
---|
23 | |
---|
24 | distname ${name}-${version}-all |
---|
25 | worksrcdir ${name}-${version} |
---|
26 | |
---|
27 | checksums md5 16e3ff161a53bddad3a5624a2e689393 |
---|
28 | |
---|
29 | # patchfiles patch-bin-jetty.sh |
---|
30 | |
---|
31 | set 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 | |
---|
38 | configure {} |
---|
39 | |
---|
40 | build {} |
---|
41 | |
---|
42 | destroot { |
---|
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 | } |
---|