Skip to content

Commit 370fba7

Browse files
trustbyteherbygillot
authored andcommitted
tomcat-native-2: new port
1 parent 9303ffa commit 370fba7

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

java/tomcat-native-2/Portfile

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2+
3+
PortSystem 1.0
4+
PortGroup java 1.0
5+
6+
name tomcat-native-2
7+
version 2.0.9
8+
revision 0
9+
categories java www
10+
maintainers nomaintainer
11+
license Apache-2
12+
13+
description Tomcat 9+ HTTP Server native library support version 2.
14+
long_description This port provides access to native apr and other \
15+
functions utilized by tomcat.
16+
17+
homepage https://tomcat.apache.org/
18+
master_sites apache:tomcat/tomcat-connectors/native/${version}/source/
19+
20+
checksums rmd160 06a7268a486bf3df45d993a68de18f847329eb02 \
21+
sha256 8aed0def414d7f49b688e826797513e95182ecbd7b6f8b6f025e527b85065c02 \
22+
size 474706
23+
24+
distname tomcat-native-${version}-src
25+
worksrcdir ${distname}/native
26+
27+
depends_lib port:apr \
28+
port:openssl
29+
30+
# java Portgroup settings
31+
java.version 11+
32+
java.fallback openjdk11
33+
34+
configure.args --with-apr=${prefix} \
35+
--with-ssl=${prefix}
36+
37+
build.args EXTRA_LDFLAGS="-shrext .jnilib"
38+
39+
notes "
40+
To integrate this into tomcat, add -Djava.library.path=${prefix} to the tomcat options or\
41+
to CATALINA_OPTS.
42+
43+
Make sure the AprLifecycleListener is enabled in your server.xml like so:
44+
<Listener className=\"org.apache.catalina.core.AprLifecycleListener\" />
45+
46+
For further information please see https://tomcat.apache.org/native-doc/index.html
47+
"
48+
49+
livecheck.type regex
50+
livecheck.url https://archive.apache.org/dist/tomcat/tomcat-connectors/native/
51+
livecheck.regex {(\d+\.\d+\.\d+)/}

0 commit comments

Comments
 (0)