Compare commits

..

168 commits

Author SHA1 Message Date
Adam Williamson
b6246accae Fix java requirements (#2398212)
With java-latest now being 25, but only java-25 providing the
generic 'java' and 'java-headless' etc., we get file conflicts
if a transaction includes both things that want 'java-25' or
'java-25-headless' and things that want 'java' or 'java-headless'.
This is because dnf prefers java-latest as a provider of the
java-25-* provides (it's versioned higher than the java-25
packages), but only the java-25 packages provide the generic
requirements.

To avoid this making FreeIPA uninstallable, let's get rid of the
generic 'java-headless' requirement. I think f7115aee was meant
to do this already, but missed it.

Also get rid of the now-useless version bounds on requirements
where the java version is included in the requirement name.
2025-09-25 11:10:06 -07:00
dsoumis
1b2f8ef6d9 Update to 10.1.46 upstream release 2025-09-12 17:30:11 +03:00
Adam Williamson
e1a22bc2bf On second thought, let's keep bodhi_update_push_testing
It doesn't really work, but without it, we may have a short time
early in an update's life when no gating policy applies for
stable push...let's not do that. As long as the policies for
stable and testing are the same, things should work right.
2025-08-20 17:43:44 -07:00
Adam Williamson
922d589e64 Merge branch 'f43' into rawhide 2025-08-20 17:25:14 -07:00
Adam Williamson
cfa0ed06cc Fix gating policy, again
I don't know why the previous changes were reverted. We cannot
gate on rpmdeplint for non-Rawhide releases because it only runs
on Rawhide: https://pagure.io/fedora-ci/general/issue/471

Also, the bodhi_update_push_testing context doesn't really work.
It's only very partially hooked up in Bodhi, so defining it does
nothing useful but only potentially causes weird things like
https://github.com/fedora-infra/bodhi/issues/5660 .
2025-08-20 17:18:34 -07:00
dsoumis
35f2755fd1 Add virtual provides to resolve installability issues 2025-08-19 16:00:55 +03:00
dsoumis
6015a7ef86 Rebuilt for the side tag f43-build-side-116701 2025-08-14 11:43:33 +03:00
dsoumis
6a5dffd2aa Rebuilt for the side tag f43-build-side-114811 2025-07-29 11:59:45 +03:00
Jiri Vanek
f7115aee66 Rebuilt for java-25-openjdk as preffered jdk
https://fedoraproject.org/wiki/Changes/Java25AndNoMoreSystemJdk
Note, that since f43, you should be always explicit on what jdk to use.
This commit should do exactly that.
2025-07-28 19:25:32 +02:00
dsoumis
2dc58c1b4a Add required conflicts 2025-07-28 16:37:19 +03:00
dsoumis
9eae7c317a Update to 10.1.43 2025-07-28 16:16:04 +03:00
dsoumis
55ffac7941 Update to 10.1.43 2025-07-28 16:13:52 +03:00
dsoumis
cdf316a2f0 Add obsoletes as temporary solution 2025-07-28 16:12:51 +03:00
dsoumis
397fdf2e2e Revert "General tweaks, fixes and enhancements"
This reverts commit a7d2bc1fe9.
2025-07-28 16:09:09 +03:00
dsoumis
3c60e9fb09 Revert "Use ecj and jakartaee-migration jars from the installed system rather than distributing the jars in tomcat-lib package."
This reverts commit 727c3d6f65.
2025-07-28 16:09:08 +03:00
dsoumis
3b3d4720d7 Revert "Remove javapackages test case rule from gating"
This reverts commit 2c9c3acacc.
2025-07-28 16:09:08 +03:00
dsoumis
79945597b9 Revert "- This commit introduces the major change of dropping the custom scripts and using the upstream scripts for tomcat deployment."
This reverts commit 0ca450977f.
2025-07-28 16:09:08 +03:00
dsoumis
25b0e35ce6 Revert "Introduce tomcat-common subpackage"
This reverts commit da88992d30.
2025-07-28 16:09:07 +03:00
dsoumis
7e3be976ab Revert "Add min_java_version variable"
This reverts commit 6313caf0fd.
2025-07-28 16:09:07 +03:00
dsoumis
987625859e Revert "Reorganize docs and add RUNNING.txt file in tomcat-common package"
This reverts commit e4b70e261a.
2025-07-28 16:09:07 +03:00
dsoumis
33955ca639 Revert "Add Suggests: sections in tomcat package"
This reverts commit c76067efd8.
2025-07-28 16:09:06 +03:00
dsoumis
4a35676781 Revert "Introduce tomcat-user-instance package"
This reverts commit 4cb7465289.
2025-07-28 16:09:06 +03:00
dsoumis
3bc9669c92 Revert "Remove redundant defattr from webapps files section"
This reverts commit fd0d6ea01f.
2025-07-28 16:09:06 +03:00
dsoumis
b4f5296338 Revert "Improve package descriptions and summaries"
This reverts commit c1868d6654.
2025-07-28 16:09:06 +03:00
dsoumis
78f7015909 Revert "Remove logrotate file since Tomcat rotates its own logs"
This reverts commit 48b049b116.
2025-07-28 16:09:05 +03:00
dsoumis
866385e700 Revert "Rename service start script more properly"
This reverts commit 74d5d93859.
2025-07-28 16:09:05 +03:00
dsoumis
d56e3c9a0e Revert "Remove unused parameter"
This reverts commit c86e1e94da.
2025-07-28 16:09:05 +03:00
dsoumis
bd10c72eff Revert "Fix tomcat-juli.jar not placed in tomcat-common package"
This reverts commit 4c675c785f.
2025-07-28 16:09:04 +03:00
dsoumis
cd185fa508 Revert "Update catalina-policy.patch"
This reverts commit d584406620.
2025-07-28 16:09:04 +03:00
dsoumis
36b27510aa Revert "Reorganize installs and preserve timestamps as suggested by Fedora Packaging guidelines"
This reverts commit 740d603f37.
2025-07-28 16:09:04 +03:00
dsoumis
fb80fe23e4 Revert "Fix man page rendering"
This reverts commit 03b7b8f8e6.
2025-07-28 16:09:03 +03:00
dsoumis
0559a64142 Revert "Update to 10.1.36 and verify signatures as suggested in the Fedora Packaging Guidelines"
This reverts commit 07f14cc8f8.
2025-07-28 16:09:03 +03:00
dsoumis
8d8a869c2e Revert "Add symlinks of tomcat-bootstrap.jar and tomcat-juli.jar in libdir"
This reverts commit 1a5e851e22.
2025-07-28 16:09:03 +03:00
dsoumis
177c1aa024 Revert "Fix script calling from service file"
This reverts commit 524080c49f.
2025-07-28 16:09:03 +03:00
dsoumis
01f88a3e9c Revert "- Enhancing comments"
This reverts commit 9e1550b608.
2025-07-28 16:09:03 +03:00
dsoumis
527e2158f3 Revert "- Fixes in tomcat-10.1-user-instance-create.sh"
This reverts commit 5c8a69deca.
2025-07-28 16:09:03 +03:00
dsoumis
f771c96d92 Revert "Define the provision method for tests"
This reverts commit eca613a2ab.
2025-07-28 16:09:03 +03:00
dsoumis
0d75b57e96 Revert "Fix gating rules"
This reverts commit afc96310f4.
2025-07-28 16:09:03 +03:00
dsoumis
5b42bbd1ae Revert "Fix gating rules"
This reverts commit 153431058b.
2025-07-28 16:09:03 +03:00
Fedora Release Engineering
5a663f3961 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 19:25:36 +00:00
dsoumis
153431058b Fix gating rules 2025-04-25 14:47:40 +03:00
dsoumis
afc96310f4 Fix gating rules 2025-04-25 14:37:55 +03:00
dsoumis
eca613a2ab Define the provision method for tests 2025-04-08 13:32:29 +03:00
dsoumis
5c8a69deca - Fixes in tomcat-10.1-user-instance-create.sh
- Add required ReadWritePaths in service file.
- Disable shutdown port when tomcat runs as a service.
- Add webapps-javaee directory
- Remove .sh suffix from binary executable
- Link require libraries for migration tool to work as expected.
2025-04-07 16:50:51 +03:00
dsoumis
9e1550b608 - Enhancing comments
- Some mvn_file fixes
- Remove daemon.sh as commons-daemon is not packaged
2025-03-26 15:54:17 +02:00
dsoumis
524080c49f Fix script calling from service file 2025-03-26 15:53:05 +02:00
dsoumis
1a5e851e22 Add symlinks of tomcat-bootstrap.jar and tomcat-juli.jar in libdir 2025-03-07 17:11:40 +02:00
dsoumis
07f14cc8f8 Update to 10.1.36 and verify signatures as suggested in the Fedora Packaging Guidelines
https://docs.fedoraproject.org/en-US/packaging-guidelines/#_verifying_signatures
2025-03-07 16:31:23 +02:00
dsoumis
03b7b8f8e6 Fix man page rendering 2025-03-07 16:25:35 +02:00
dsoumis
740d603f37 Reorganize installs and preserve timestamps as suggested by Fedora Packaging guidelines 2025-03-07 14:42:06 +02:00
dsoumis
d584406620 Update catalina-policy.patch 2025-03-07 14:41:10 +02:00
dsoumis
4c675c785f Fix tomcat-juli.jar not placed in tomcat-common package 2025-02-26 18:13:31 +02:00
dsoumis
c86e1e94da Remove unused parameter 2025-02-26 17:44:14 +02:00
dsoumis
74d5d93859 Rename service start script more properly 2025-02-26 17:42:32 +02:00
dsoumis
48b049b116 Remove logrotate file since Tomcat rotates its own logs 2025-02-26 17:41:06 +02:00
dsoumis
c1868d6654 Improve package descriptions and summaries 2025-02-26 16:00:04 +02:00
dsoumis
fd0d6ea01f Remove redundant defattr from webapps files section 2025-02-26 16:00:04 +02:00
dsoumis
4cb7465289 Introduce tomcat-user-instance package 2025-02-26 16:00:04 +02:00
dsoumis
c76067efd8 Add Suggests: sections in tomcat package 2025-02-20 18:54:37 +02:00
dsoumis
e4b70e261a Reorganize docs and add RUNNING.txt file in tomcat-common package 2025-02-20 18:33:17 +02:00
dsoumis
6313caf0fd Add min_java_version variable 2025-02-19 14:10:51 +02:00
dsoumis
da88992d30 Introduce tomcat-common subpackage 2025-02-19 13:47:07 +02:00
dsoumis
0ca450977f - This commit introduces the major change of dropping the custom scripts and using the upstream scripts for tomcat deployment.
- Fix links created by %mvn_file

- Remove packaging of tempdir as /tmp is being used currently

-Update the service and conf files
2025-02-17 15:54:02 +02:00
dsoumis
2c9c3acacc Remove javapackages test case rule from gating 2025-02-13 15:41:04 +02:00
dsoumis
727c3d6f65 Use ecj and jakartaee-migration jars from the installed system rather than distributing the jars in tomcat-lib package. 2025-02-12 14:08:33 +02:00
dsoumis
a7d2bc1fe9 General tweaks, fixes and enhancements
- Refactor maven relevant parts
- Fix file permissions
- Fix JAR must have Javapackages-GroupId manifest attribute errors
2025-02-11 16:02:54 +02:00
Zbigniew Jędrzejewski-Szmek
d3fe6302c1 Add sysusers.d config file to allow rpm to create users/groups automatically 2025-01-23 21:13:30 +01:00
Fedora Release Engineering
9da444c4e4 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-19 13:04:22 +00:00
dsoumis
351e1a546c Fix bogus date in changelog 2025-01-10 23:05:01 +02:00
dsoumis
20bfa9f972 Fix changelog version of Tomcat 10 2025-01-10 23:00:41 +02:00
dsoumis
7237392222 Update to 10.1.34 2025-01-07 17:03:13 +02:00
Dimitris Soumis
0611308b2d This pull request enables tests in the Fedora CI using tmt which
also allows to easily execute and debug tests from your laptop:

Run tests directly on your localhost:

    sudo dnf install -y tmt
    tmt run --all provision --how local

Run tests in a virtual machine:

    sudo dnf install -y tmt+provision-virtual
    tmt run

Check the documentation to learn more about the tool:
https://docs.fedoraproject.org/en-US/ci/tmt/
2025-01-07 13:31:19 +00:00
Packit
3cf9b421bd Update to 9.0.98 upstream release
- Resolves: rhbz#2331168

Upstream tag: 9.0.98
Upstream commit: 727a8467

Commit authored by Packit automation (https://packit.dev/)
2024-12-09 15:24:06 +00:00
Dimitris Soumis
0c53740592 Update to 9.0.97 upstream release 2024-12-02 16:08:53 +02:00
Packit
f262deda85 Update to 9.0.96 upstream release
- Resolves: rhbz#2317237

Upstream tag: 9.0.96
Upstream commit: 7ecea316

Commit authored by Packit automation (https://packit.dev/)
2024-10-08 15:01:50 +00:00
Packit
b5aebabac2 Update to 9.0.95 upstream release
- Resolves: rhbz#2312858

Upstream tag: 9.0.95
Upstream commit: 9f8c522e

Commit authored by Packit automation (https://packit.dev/)
2024-09-17 14:36:08 +00:00
Packit
6caab72d3d Update to 9.0.94 upstream release
- Resolves: rhbz#2311320

Upstream tag: 9.0.94
Upstream commit: ce248107

Commit authored by Packit automation (https://packit.dev/)
2024-09-10 21:14:04 +00:00
Dimitris Soumis
ad550ee3ce Fix rhbz-1857043.patch 2024-08-06 14:28:26 +03:00
Packit
7ace2fa74f Update to 9.0.93 upstream release
- Resolves: rhbz#2303026

Upstream tag: 9.0.93
Upstream commit: a33d708d

Commit authored by Packit automation (https://packit.dev/)
2024-08-06 03:32:00 +00:00
Miroslav Suchý
ebf0621e41 convert ASL 2.0 license to SPDX
This is part of https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_4
2024-07-24 18:07:27 +02:00
Fedora Release Engineering
673c7dd900 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-20 07:40:00 +00:00
dsoumis
91e20eb8e1 Update to 9.0.91 2024-07-11 12:55:24 +03:00
dsoumis
18974097f9 Replace issue repository with project's repo 2024-07-09 18:25:39 +03:00
dsoumis
8ad9415f16 Add packit integration 2024-07-09 15:58:14 +03:00
dsoumis
b34c55f50e Update to 9.0.90 2024-06-20 13:32:51 +03:00
dsoumis
6222b99f52 Revert 10.1.24 update, rebase to 9.0.89 2024-06-07 19:07:06 +03:00
dsoumis
e151cd9da8 Revert "Update to 10.1.24"
This reverts commit 9f4d5c76f5.
2024-06-07 19:04:58 +03:00
dsoumis
9f4d5c76f5 Update to 10.1.24 2024-05-31 16:33:36 +03:00
Adam Williamson
1ee70ac927 Accept java-21-headless as one of the alternatives for java 2024-02-29 15:45:57 -08:00
Jiri Vanek
1c0506a38e Rebuilt for java-21-openjdk as system jdk
https://fedoraproject.org/wiki/Changes/Java21
2024-02-27 18:20:42 +01:00
Fedora Release Engineering
a50fce8a6a Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-27 06:30:56 +00:00
Hui Wang
a1fd99bcde Update to 9.0.83 2023-12-01 17:41:19 +08:00
Hui Wang
939897238c Update tomcat-build.patch 2023-10-16 11:36:25 +08:00
Hui Wang
703557e0a6 Update to 9.0.82
Resolves: rhbz#2244333 Wrong dbcp class in tomcat 9
2023-10-16 11:06:28 +08:00
Hui Wang
f1ec641a7b Update to 9.0.80 2023-09-13 15:32:34 +08:00
Hui Wang
95b25c29b3 Revert the fix files permission 2023-08-08 15:35:30 +08:00
Hui Wang
d26c29c4e8 Fix files permission 2023-08-04 21:55:14 +08:00
Hui Wang
335305ef4f Exclude jnidir in the lib subpackage 2023-07-26 18:04:07 +08:00
Hui Wang
e5a0772f99 Related: rhbz#2224318 There are duplicated jars in the tomcat lib-subpackage 2023-07-25 20:04:31 +08:00
Hui Wang
8b4c6be1c6 Related: rhbz#2224318 There are duplicated jars in the tomcat lib-subpackage 2023-07-25 19:54:13 +08:00
Hui Wang
6a5576eae4 copy tomcat-juli.jar into the lib subpackage
Resolves: rhbz#2224318 There are duplicated jars in the tomcat lib-subpackage
2023-07-25 18:46:08 +08:00
Hui Wang
629d280689 Resolves: rhbz#2224318 There are duplicated jars in the tomcat lib-subpackage
Update to 9.0.78
2023-07-25 18:33:59 +08:00
Fedora Release Engineering
3321e54ad4 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-22 16:33:06 +00:00
Hui Wang
e6859de378 Resolves: rhbz#2189672 Missing Tomcat POM files in Fedora Rawhide 2023-06-20 15:02:14 +08:00
Hui Wang
33141d8c71 Update to 9.0.76
Update patch command because %patchN is deprecated
Resolves: rhbz#2188218 Link bin/tomcat-juli.jar to /usr/share/java
Move tomcat-jsp-2.3-api.jar,tomcat-servlet-4.0-api.jar and tomcat-el-api.jar to the subpackages
2023-06-14 12:34:57 +08:00
Hui Wang
92faf5efdb Update to 9.0.76 2023-06-14 09:46:01 +08:00
Hui Wang
f590c47ebf Update to 9.0.75 2023-06-09 14:50:31 +08:00
Hui Wang
2145287741 Update to 9.0.73 2023-03-17 17:05:19 +08:00
Hui Wang
013888a3ae Upload 9.0.72 source 2023-01-29 19:31:45 +08:00
Hui Wang
06d3a31415 Update to 9.0.71
Remove osgi-annotations patch
Add bnd annotation dependency which is in bndlib package
2023-01-29 19:23:32 +08:00
Fedora Release Engineering
3d349e6aea Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-21 05:15:06 +00:00
Hui Wang
f166080781 Update tomcat to 9.0.70 2023-01-13 19:25:32 +08:00
Hui Wang
8e4906e924 Update tomcat to 9.0.68 2022-11-08 16:50:53 +08:00
Coty Sutherland
83e980a86f Cleaning up some unused deps and system properties 2022-09-01 14:35:49 -04:00
Hui Wang
84177caec5 Update to 9.0.65 2022-07-22 17:33:41 +08:00
Jiri
882334e985 Rebuilt for Drop i686 JDKs
https://fedoraproject.org/wiki/Changes/Drop_i686_JDKs
2022-07-08 16:55:08 +02:00
Hui Wang
57ef513427 Update for 9.0.64 2022-06-21 21:03:19 +08:00
Coty Sutherland
d3f20202a3 Related: rhbz#2061424 Adjust fix so that it uses the proper env var 2022-03-10 15:44:16 -05:00
Coty Sutherland
9b5ef6dbd7 Resolves: rhbz#2061424 Add Java 9 start-up parameters to allow reflection 2022-03-08 15:22:53 -05:00
Sonia Xu
37136861df Update to 9.0.59
Fixes CVE-2022-23181
2022-03-03 02:09:56 +00:00
Jiri
cdf645a2cf Rebuilt for java-17-openjdk as system jdk
https://fedoraproject.org/wiki/Changes/Java17
2022-02-06 00:27:17 +01:00
Fedora Release Engineering
dc8a02a819 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-22 02:53:10 +00:00
Hui Wang
da56117851 Update to 9.0.56 2021-12-09 18:15:03 +08:00
Hui Wang
1eeff668b5 Update to 9.0.55 2021-11-23 14:57:50 +08:00
Hui Wang
bb861ab8fa Update to 9.0.54 2021-10-12 14:45:31 +08:00
Hui Wang
5bcc834dc3 Update to 9.0.53 2021-09-16 17:58:33 +08:00
Hui Wang
2c4c2c1d93 Update to 9.0.52 2021-08-18 15:52:49 +08:00
Fedora Release Engineering
7a01193a39 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-23 19:26:22 +00:00
Hui Wang
fd93ca49bb 9.0.50 source 2021-07-07 14:22:35 +08:00
Hui Wang
fde9af6905 Update to 9.0.50 2021-07-07 14:16:09 +08:00
Coty Sutherland
de863ffa66 Add mvn virtual provides back for the servlet, el, and jsp spec impls 2021-06-05 20:23:34 -04:00
Coty Sutherland
7d7781ca24 Add back logrotate config file per devel list request 2021-06-04 10:29:44 -04:00
Coty Sutherland
da829a92c9 Increment release number 2021-06-04 07:23:54 -04:00
Coty Sutherland
66b528dc61 Drop geronimo-jaxrpc, which provided the webservices naming factory resources that are generally unused 2021-06-04 07:22:37 -04:00
Coty Sutherland
395ca77492 Drop geronimo-saaj as it's no longer required 2021-06-03 16:21:37 -04:00
Coty Sutherland
c363ab5b50 Drop JSVC support as it's not very useful these days 2021-06-03 16:01:50 -04:00
Coty Sutherland
972b590988 Remove maven artifacts from build as they aren't very useful 2021-06-03 15:45:09 -04:00
Coty Sutherland
8db0343ee9 Remove examples webapps from subpackage 2021-06-03 14:56:15 -04:00
Hui Wang
b2675ecc09 Update to 9.0.45 2021-04-22 18:27:04 +08:00
Hui Wang
5eebe0ea54 Update to 9.0.44 2021-03-18 15:39:57 +08:00
Zbigniew Jędrzejewski-Szmek
7b96b13686 Rebuilt for updated systemd-rpm-macros
See https://pagure.io/fesco/issue/2583.
2021-03-02 16:12:08 +01:00
Hui Wang
2f697945d5 Update to 9.0.43 2021-02-03 14:51:05 +08:00
Fedora Release Engineering
6388963411 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-27 22:06:12 +00:00
Hui Wang
23db76574c Update to 9.0.41 2020-12-09 14:53:37 +08:00
Hui Wang
0831527527 Update to 9.0.40 2020-11-18 15:01:59 +08:00
Hui Wang
f60e452abe Configure osgi-annotations.jar for the source commit 33e874fa31e6c411421ad1304dfa65f30bd58958 (Fix Javadoc build error and ensure 'ant clean javadoc' works) 2020-10-14 10:49:43 +08:00
Hui Wang
20e12fb70e Update to 9.0.39 2020-10-12 13:50:13 +08:00
Hui Wang
bddbd4330e Update to 9.0.38 2020-09-16 17:41:36 +08:00
Fedora Release Engineering
d023b96d1f - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-29 12:39:58 +00:00
Coty Sutherland
b8a539711f Related: rhbz#1857043 I'm temporarily removing the OSGi metadata from the tomcat ant build because the older verison of aqute-bnd is causing classes to be removed when generating the metadata. If the aqute-bnd library is updated it should fix the issue, if not and someone needs to metadata to be added back I can generate it with the upstream tomcat build and add those manifests to the srpm sources 2020-07-24 10:50:23 -04:00
Coty Sutherland
a8c5ea8561 Resolves: rhbz#1857043 Add patch to reinclude o.a.t.util.net.jsse and o.a.t.util.moduler.modules in tomcat-coyote.jar 2020-07-20 15:17:57 -04:00
Coty Sutherland
52bdf0a6d0 Update to 9.0.37 2020-07-13 14:02:57 -04:00
Jiri
76fc84d68e Rebuilt for JDK-11 2020-07-11 07:36:02 +02:00
Hui Wang
141fed8ee1 Upgrade to 9.0.36 2020-06-10 13:48:53 +08:00
Coty Sutherland
84e90958f5 Fix changelog entry 2020-06-01 09:09:44 -04:00
Hui Wang
faf98ce047 Upgrade to 9.0.35 2020-05-31 21:10:41 +08:00
Coty Sutherland
2b394dec21 Revert "Update dependency version for ECJ to >= 4.15" due to causing issues (it's missing in fc32) with testing the java 11 builds
This reverts commit 2e1623eaa3.
2020-05-04 12:22:01 -04:00
Coty Sutherland
2e1623eaa3 Update dependency version for ECJ to >= 4.15 2020-04-22 15:26:52 -04:00
Coty Sutherland
8d1457151e Add updated catalina.policy patch to allow ECJ usage under the Security Manager 2020-04-22 15:18:14 -04:00
Coty Sutherland
eaac8d384c Update to 9.0.34 2020-04-21 15:56:44 -04:00
Nicolas Chauvet
ba7ec40020 Avoid using recommends when not supported
Signed-off-by: Nicolas Chauvet <kwizart@gmail.com>
2020-03-06 18:42:26 +01:00
Coty Sutherland
afaf8d3bf4 Update to 9.0.31
Resolves: rhbz#1806398 - CVE-2020-1938 tomcat: Apache Tomcat AJP File Read/Inclusion Vulnerability
2020-03-05 15:12:39 -05:00
Fedora Release Engineering
b9c7fad2ff - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-31 01:47:34 +00:00
Coty Sutherland
086e236b29 Update to 9.0.30 2019-12-20 07:54:07 -05:00
Coty Sutherland
582d8e2270 Resolves: rhbz#1510522 man page uid and gid mismatch for service accounts 2019-09-26 16:05:30 -04:00
Coty Sutherland
98e48e45f4 Resolves: rhbz#1510896 Problem to start tomcat with a user whose group has a name different to the user 2019-09-26 14:32:36 -04:00
Coty Sutherland
679778488a Resolves: rhbz#1523112 tomcat systemd does not cope with - in service names 2019-09-26 14:28:51 -04:00
Coty Sutherland
dda1be6b79 Update to 9.0.26 2019-09-26 14:22:47 -04:00
29 changed files with 1905 additions and 1 deletions

1
.fmf/version Normal file
View file

@ -0,0 +1 @@
1

4
.gitignore vendored Normal file
View file

@ -0,0 +1,4 @@
apache-tomcat-*-src.tar.gz
results_tomcat
tomcat*.src.rpm
apache-tomcat-*-src/

38
.packit.yaml Normal file
View file

@ -0,0 +1,38 @@
# See the documentation for more information:
# https://packit.dev/docs/configuration/
create_sync_note: false
upstream_project_url: https://github.com/apache/tomcat.git
issue_repository: https://src.fedoraproject.org/rpms/tomcat
jobs:
# https://packit.dev/docs/configuration/downstream/pull_from_upstream
# Make sure there is Fedora mapping for the 'tomcat' project in https://release-monitoring.org/projects/search/?pattern=tomcat
# Make sure Monitoring status on the left side at https://src.fedoraproject.org/rpms/tomcat is set to Monitoring
- job: pull_from_upstream
trigger: release
dist_git_branches:
- fedora-branched
# https://packit.dev/docs/configuration/downstream/koji_build
- job: koji_build
trigger: commit
dist_git_branches:
- fedora-all
- job: koji_build
trigger: commit
scratch: true
allowed_pr_authors: ['all_admins', 'all_committers']
allowed_committers: ['all_admins', 'all_committers']
dist_git_branches:
- fedora-all
# https://packit.dev/docs/configuration/downstream/bodhi_update
- job: bodhi_update
trigger: commit
allowed_builders: ['packit', 'all_admins']
dist_git_branches:
- fedora-branched # rawhide updates are created automatically

1
ci.fmf Normal file
View file

@ -0,0 +1 @@
resultsdb-testcase: separate

View file

@ -1 +0,0 @@
This branch was for a module that was in development and not ready for release, and is therefore unsupported

20
gating.yaml Normal file
View file

@ -0,0 +1,20 @@
--- !Policy
product_versions:
- fedora-rawhide
decision_contexts:
- bodhi_update_push_stable
- bodhi_update_push_testing
subject_type: koji_build
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.rpmdeplint.functional}
product_versions:
- fedora-*
decision_contexts:
- bodhi_update_push_stable
- bodhi_update_push_testing
subject_type: koji_build
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.rpminspect.static-analysis}
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.installability.functional}
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/javapackages.functional}
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/smoke.functional}

View file

@ -0,0 +1,8 @@
# Add the module start-up parameters required by Tomcat
JAVA_OPTS="$JAVA_OPTS --add-opens=java.base/java.lang=ALL-UNNAMED"
JAVA_OPTS="$JAVA_OPTS --add-opens=java.base/java.io=ALL-UNNAMED"
JAVA_OPTS="$JAVA_OPTS --add-opens=java.base/java.util=ALL-UNNAMED"
JAVA_OPTS="$JAVA_OPTS --add-opens=java.base/java.util.concurrent=ALL-UNNAMED"
JAVA_OPTS="$JAVA_OPTS --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED"
export JAVA_OPTS

7
plans/javapackages.fmf Normal file
View file

@ -0,0 +1,7 @@
summary: Run javapackages-specific tests
discover:
how: fmf
url: https://src.fedoraproject.org/tests/javapackages
ref: f42
execute:
how: tmt

5
plans/smoke.fmf Normal file
View file

@ -0,0 +1,5 @@
discover:
how: fmf
url: https://src.fedoraproject.org/tests/tomcat
execute:
how: tmt

215
rhbz-1857043.patch Normal file
View file

@ -0,0 +1,215 @@
--- build.xml.orig 2024-08-02 18:14:43.000000000 +0300
+++ build.xml 2024-08-19 13:56:38.991730088 +0300
@@ -1121,7 +1121,7 @@
filesDir="${tomcat.classes}"
filesId="files.annotations-api"
manifest="${tomcat.manifests}/annotations-api.jar.manifest"
- addOSGi="true" />
+ addOSGi="false" />
<!-- Servlet Implementation JAR File -->
<jarIt jarfile="${servlet-api.jar}"
@@ -1130,48 +1130,48 @@
manifest="${tomcat.manifests}/servlet-api.jar.manifest"
notice="${tomcat.manifests}/servlet-api.jar.notice"
license="${tomcat.manifests}/servlet-api.jar.license"
- addOSGi="true" />
+ addOSGi="false" />
<!-- EL Implementation JAR File -->
<jarIt jarfile="${el-api.jar}"
filesDir="${tomcat.classes}"
filesId="files.el-api"
manifest="${tomcat.manifests}/el-api.jar.manifest"
- addOSGi="true" />
+ addOSGi="false" />
<!-- JSP Implementation JAR File -->
<jarIt jarfile="${jsp-api.jar}"
filesDir="${tomcat.classes}"
filesId="files.jsp-api"
manifest="${tomcat.manifests}/jsp-api.jar.manifest"
- addOSGi="true" />
+ addOSGi="false" />
<!-- WebSocket API JAR File -->
<jarIt jarfile="${websocket-api.jar}"
filesDir="${tomcat.classes}"
filesId="files.websocket-api"
manifest="${tomcat.manifests}/websocket-api.jar.manifest"
- addOSGi="true" />
+ addOSGi="false" />
<!-- WebSocket Client API JAR File -->
<jarIt jarfile="${websocket-client-api.jar}"
filesDir="${tomcat.classes}"
filesId="files.websocket-client-api"
manifest="${tomcat.manifests}/websocket-client-api.jar.manifest"
- addOSGi="true" />
+ addOSGi="false" />
<!-- JASPIC API JAR File -->
<jarIt jarfile="${jaspic-api.jar}"
filesDir="${tomcat.classes}"
filesId="files.jaspic-api"
manifest="${tomcat.manifests}/jaspic-api.jar.manifest"
- addOSGi="true" />
+ addOSGi="false" />
<!-- Tomcat-juli JAR File -->
<jarIt jarfile="${tomcat-juli.jar}"
filesDir="${tomcat.classes}"
filesId="files.tomcat-juli"
- addOSGi="true" />
+ addOSGi="false" />
<!-- Bootstrap JAR File -->
<jarIt jarfile="${bootstrap.jar}"
@@ -1183,68 +1183,68 @@
<jarIt jarfile="${tomcat-util.jar}"
filesDir="${tomcat.classes}"
filesId="files.tomcat-util"
- addOSGi="true" />
+ addOSGi="false" />
<!-- Tomcat API JAR File -->
<jarIt jarfile="${tomcat-api.jar}"
filesDir="${tomcat.classes}"
filesId="files.tomcat-api"
- addOSGi="true" />
+ addOSGi="false" />
<!-- Tomcat Util Scan JAR File -->
<jarIt jarfile="${tomcat-util-scan.jar}"
filesDir="${tomcat.classes}"
filesId="files.tomcat-util-scan"
- addOSGi="true" />
+ addOSGi="false" />
<jarIt jarfile="${tomcat-jni.jar}"
filesDir="${tomcat.classes}"
filesId="files.tomcat-jni"
- addOSGi="true" />
+ addOSGi="false" />
<!-- Protocol handlers - Coyote -->
<jarIt jarfile="${tomcat-coyote.jar}"
filesDir="${tomcat.classes}"
filesId="files.tomcat-coyote"
- addOSGi="true" />
+ addOSGi="false" />
<!-- OpenSSL FFM - Coyote -->
<jarIt jarfile="${tomcat-coyote-ffm.jar}"
filesDir="${tomcat.classes}"
filesId="files.tomcat-coyote-ffm"
manifest="${tomcat.manifests}/tomcat-coyote-ffm.jar.manifest"
- addOSGi="true" />
+ addOSGi="false" />
<!-- WebSocket implementation JAR File -->
<jarIt jarfile="${tomcat-websocket.jar}"
filesDir="${tomcat.classes}"
filesId="files.tomcat-websocket"
meta-inf="${tomcat.manifests}/tomcat-websocket.jar"
- addOSGi="true" />
+ addOSGi="false" />
<!-- Catalina GroupCom/Tribes JAR File -->
<jarIt jarfile="${catalina-tribes.jar}"
filesDir="${tomcat.classes}"
filesId="files.catalina-tribes"
- addOSGi="true" />
+ addOSGi="false" />
<!-- Catalina Main JAR File -->
<jarIt jarfile="${catalina.jar}"
filesDir="${tomcat.classes}"
filesId="files.catalina"
- addOSGi="true" />
+ addOSGi="false" />
<!-- Catalina Cluster/HA JAR File -->
<jarIt jarfile="${catalina-ha.jar}"
filesDir="${tomcat.classes}"
filesId="files.catalina-ha"
- addOSGi="true" />
+ addOSGi="false" />
<!-- Server-Side Includes (SSI) -->
<jarIt jarfile="${catalina-ssi.jar}"
filesDir="${tomcat.classes}"
filesId="files.catalina-ssi"
- addOSGi="true" />
+ addOSGi="false" />
<!-- Catalina Ant Tasks JAR File -->
<jarIt jarfile="${catalina-ant.jar}"
@@ -1255,27 +1255,27 @@
<jarIt jarfile="${catalina-storeconfig.jar}"
filesDir="${tomcat.classes}"
filesId="files.catalina-storeconfig"
- addOSGi="true" />
+ addOSGi="false" />
<!-- Jasper EL Implementation JAR File -->
<jarIt jarfile="${jasper-el.jar}"
filesDir="${tomcat.classes}"
filesId="files.jasper-el"
meta-inf="${tomcat.manifests}/jasper-el.jar"
- addOSGi="true" />
+ addOSGi="false" />
<!-- Jasper Implementation JAR File -->
<jarIt jarfile="${jasper.jar}"
filesDir="${tomcat.classes}"
filesId="files.jasper"
meta-inf="${tomcat.manifests}/jasper.jar"
- addOSGi="true" />
+ addOSGi="false" />
<!-- Re-packaged Apache Commons DBCP 2-->
<jarIt jarfile="${tomcat-dbcp.jar}"
filesDir="${tomcat.classes}"
filesId="files.tomcat-dbcp"
- addOSGi="true" />
+ addOSGi="false" />
<!-- i18n JARs -->
<jar jarfile="${tomcat.build}/lib/tomcat-i18n-cs.jar"
@@ -1748,7 +1748,7 @@
filesId="files.tomcat-embed-core"
notice="${tomcat.manifests}/servlet-api.jar.notice"
license="${tomcat.manifests}/servlet-api.jar.license"
- addOSGi="true"
+ addOSGi="false"
addGraal="true"
graalPrefix="org.apache.tomcat.embed/tomcat-embed-core"
graalFiles="res/graal/tomcat-embed-core/native-image"
@@ -1756,7 +1756,7 @@
<jarIt jarfile="${tomcat-embed-el.jar}"
filesDir="${tomcat.classes}"
filesId="files.tomcat-embed-el"
- addOSGi="true"
+ addOSGi="false"
addGraal="true"
graalPrefix="org.apache.tomcat.embed/tomcat-embed-el"
graalFiles="res/graal/tomcat-embed-el/native-image"
@@ -1765,7 +1765,7 @@
filesDir="${tomcat.classes}"
filesId="files.tomcat-embed-jasper"
meta-inf="${tomcat.manifests}/jasper.jar"
- addOSGi="true"
+ addOSGi="false"
addGraal="true"
graalPrefix="org.apache.tomcat.embed/tomcat-embed-jasper"
graalFiles="res/graal/tomcat-embed-jasper/native-image"
@@ -1774,7 +1774,7 @@
filesDir="${tomcat.classes}"
filesId="files.tomcat-embed-websocket"
meta-inf="${tomcat.manifests}/tomcat-websocket.jar"
- addOSGi="true"
+ addOSGi="false"
addGraal="true"
graalPrefix="org.apache.tomcat.embed/tomcat-embed-websocket"
graalFiles="res/graal/tomcat-embed-websocket/native-image"

1
sources Normal file
View file

@ -0,0 +1 @@
SHA512 (apache-tomcat-10.1.46-src.tar.gz) = 4abb5a5fad013135c4107508e4530673e4af623658b6aff5c4fc18fd557dfca37b58a9c5c0479e52e240b53d469ad91a34225a80b718aa2f91b8d385d16d9682

View file

@ -0,0 +1,30 @@
--- java/org/apache/jasper/compiler/JDTCompiler.java.orig 2024-12-05 18:01:16.000000000 +0200
+++ java/org/apache/jasper/compiler/JDTCompiler.java 2025-01-07 16:30:34.996302312 +0200
@@ -302,9 +302,9 @@ public class JDTCompiler extends org.apa
} else if (opt.equals("17")) {
settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_17);
} else if (opt.equals("18")) {
- settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_18);
+ settings.put(CompilerOptions.OPTION_Source, "18");
} else if (opt.equals("19")) {
- settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_19);
+ settings.put(CompilerOptions.OPTION_Source, "19");
} else if (opt.equals("20")) {
// Constant not available in latest ECJ version that runs on
// Java 11.
@@ -392,11 +392,11 @@ public class JDTCompiler extends org.apa
settings.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_17);
settings.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_17);
} else if (opt.equals("18")) {
- settings.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_18);
- settings.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_18);
+ settings.put(CompilerOptions.OPTION_TargetPlatform, "18");
+ settings.put(CompilerOptions.OPTION_Compliance, "18");
} else if (opt.equals("19")) {
- settings.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_19);
- settings.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_19);
+ settings.put(CompilerOptions.OPTION_TargetPlatform, "19");
+ settings.put(CompilerOptions.OPTION_Compliance, "19");
} else if (opt.equals("20")) {
// Constant not available in latest ECJ version that runs on
// Java 11.

View file

@ -0,0 +1,10 @@
--- build.xml.orig 2023-01-29 17:38:29.477052402 +0800
+++ build.xml 2023-01-29 17:42:03.369583841 +0800
@@ -216,6 +216,7 @@
<!-- Classpaths -->
<path id="compile.classpath">
<pathelement location="${bnd.jar}"/>
+ <pathelement location="${bnd-annotation.jar}"/>
<pathelement location="${jdt.jar}"/>
<pathelement location="${jaxrpc-lib.jar}"/>
<pathelement location="${wsdl4j-lib.jar}"/>

View file

@ -0,0 +1,9 @@
--- res/META-INF/bootstrap.jar.manifest.orig 2010-04-06 10:11:09.000000000 -0600
+++ res/META-INF/bootstrap.jar.manifest 2010-04-06 10:45:56.000000000 -0600
@@ -1,6 +1,5 @@
Manifest-Version: 1.0
Main-Class: org.apache.catalina.startup.Bootstrap
-Class-Path: commons-daemon.jar
Specification-Title: Apache Tomcat Bootstrap
Specification-Version: @VERSION_MAJOR_MINOR@
Specification-Vendor: Apache Software Foundation

View file

@ -0,0 +1,16 @@
--- conf/catalina.policy.orig 2024-05-22 16:12:23.809886452 +0300
+++ conf/catalina.policy 2024-05-22 16:14:38.913939654 +0300
@@ -55,6 +55,14 @@
permission java.security.AllPermission;
};
+// ========== RHEL SPECIFIC CODE PERMISSIONS =======================================
+
+// Allowing everything in /usr/share/java allows too many unknowns to be permitted
+// Specifying the individual jars that tomcat needs to function with the security manager
+// is the safest way forward.
+grant codeBase "file:/usr/share/java/ecj/ecj.jar" {
+ permission java.security.AllPermission;
+};
// ========== CATALINA CODE PERMISSIONS =======================================

45
tomcat-10.1-digest.script Normal file
View file

@ -0,0 +1,45 @@
#!/bin/sh
#
# tomcat-digest script
# JPackage Project <http://www.jpackage.org/>
# Source functions library
if [ -f /usr/share/java-utils/java-functions ] ; then
. /usr/share/java-utils/java-functions
else
echo "Can't find functions library, aborting"
exit 1
fi
# Get the tomcat config (use this for environment specific settings)
if [ -z "${TOMCAT_CFG}" ]; then
TOMCAT_CFG="/etc/tomcat/tomcat.conf"
fi
if [ -r "$TOMCAT_CFG" ]; then
. $TOMCAT_CFG
fi
set_javacmd
# CLASSPATH munging
if [ -n "$JSSE_HOME" ]; then
CLASSPATH="${CLASSPATH}:$(build-classpath jcert jnet jsse 2>/dev/null)"
fi
CLASSPATH="${CLASSPATH}:${CATALINA_HOME}/bin/bootstrap.jar"
CLASSPATH="${CLASSPATH}:${CATALINA_HOME}/bin/tomcat-juli.jar"
export CLASSPATH
# Configuration
MAIN_CLASS="org.apache.catalina.startup.Tool"
BASE_FLAGS="-Dcatalina.home=\"$CATALINA_HOME\""
BASE_OPTIONS=""
BASE_JARS="commons-daemon tomcat/catalina servlet tomcat/tomcat-util tomcat/tomcat-coyote tomcat/tomcat-api tomcat/tomcat-util-scan"
# Set parameters
set_classpath $BASE_JARS
set_flags $BASE_FLAGS
set_options $BASE_OPTIONS
# Let's start
run -server org.apache.catalina.realm.RealmBase "$@"

View file

@ -0,0 +1,17 @@
--- conf/tomcat-users.xml~ 2008-01-28 17:41:06.000000000 -0500
+++ conf/tomcat-users.xml 2008-03-07 19:40:07.000000000 -0500
@@ -53,4 +53,14 @@
<user username="both" password="<must-be-changed>" roles="tomcat,role1"/>
<user username="role1" password="<must-be-changed>" roles="role1"/>
-->
+
+<!-- <role rolename="admin"/> -->
+<!-- <role rolename="admin-gui"/> -->
+<!-- <role rolename="admin-script"/> -->
+<!-- <role rolename="manager"/> -->
+<!-- <role rolename="manager-gui"/> -->
+<!-- <role rolename="manager-script"/> -->
+<!-- <role rolename="manager-jmx"/> -->
+<!-- <role rolename="manager-status"/> -->
+<!-- <user name="admin" password="<must-be-changed>" roles="admin,manager,admin-gui,admin-script,manager-gui,manager-script,manager-jmx,manager-status" /> -->
</tomcat-users>

View file

@ -0,0 +1,45 @@
#!/bin/sh
#
# tomcat-digest script
# JPackage Project <http://www.jpackage.org/>
# Source functions library
if [ -f /usr/share/java-utils/java-functions ] ; then
. /usr/share/java-utils/java-functions
else
echo "Can't find functions library, aborting"
exit 1
fi
# Get the tomcat config (use this for environment specific settings)
if [ -z "${TOMCAT_CFG}" ]; then
TOMCAT_CFG="/etc/tomcat/tomcat.conf"
fi
if [ -r "$TOMCAT_CFG" ]; then
. $TOMCAT_CFG
fi
set_javacmd
# CLASSPATH munging
if [ -n "$JSSE_HOME" ]; then
CLASSPATH="${CLASSPATH}:$(build-classpath jcert jnet jsse 2>/dev/null)"
fi
CLASSPATH="${CLASSPATH}:${CATALINA_HOME}/bin/bootstrap.jar"
CLASSPATH="${CLASSPATH}:${CATALINA_HOME}/bin/tomcat-juli.jar"
export CLASSPATH
# Configuration
MAIN_CLASS="org.apache.catalina.startup.Tool"
BASE_OPTIONS=""
BASE_FLAGS="-Dcatalina.home=\"$CATALINA_HOME\""
BASE_JARS="commons-daemon tomcat/catalina servlet tomcat/tomcat-util tomcat/tomcat-coyote tomcat/tomcat-api tomcat/tomcat-util-scan"
# Set parameters
set_classpath $BASE_JARS
set_flags $BASE_FLAGS
set_options $BASE_OPTIONS
# Let's start
run "$@"

42
tomcat-10.1.conf Normal file
View file

@ -0,0 +1,42 @@
# System-wide configuration file for tomcat services
# This will be loaded by systemd as an environment file,
# so please keep the syntax. For shell expansion support
# place your custom files as /etc/tomcat/conf.d/*.conf
#
# There are 2 "classes" of startup behavior in this package.
# The old one, the default service named tomcat.service.
# The new named instances are called tomcat@instance.service.
#
# Use this file to change default values for all services.
# Change the service specific ones to affect only one service.
# For tomcat.service it's /etc/sysconfig/tomcat, for
# tomcat@instance it's /etc/sysconfig/tomcat@instance.
# This variable is used to figure out if config is loaded or not.
TOMCAT_CFG_LOADED="1"
# In new-style instances, if CATALINA_BASE isn't specified, it will
# be constructed by joining TOMCATS_BASE and NAME.
TOMCATS_BASE="/var/lib/tomcats/"
# Where your java installation lives
JAVA_HOME="/usr/lib/jvm/jre"
# Where your tomcat installation lives
CATALINA_HOME="@@@TCHOME@@@"
# System-wide tmp
CATALINA_TMPDIR="/var/cache/tomcat/temp"
# You can change your tomcat locale here
#LANG="en_US"
# Run tomcat under the Java Security Manager
SECURITY_MANAGER="false"
# If you wish to further customize your tomcat environment,
# put your own definitions here
# (i.e. LD_LIBRARY_PATH for some jdbc drivers)
# You can also pass parameters to Java here by defining JAVA_OPTS variable
# (e.g. JAVA_OPTS="-Xminf0.1 -Xmaxf0.3")

11
tomcat-10.1.logrotate Normal file
View file

@ -0,0 +1,11 @@
# This is an example config only and is disabled by default
# If you wish to use it, you'll need to update /etc/tomcat/logging.properties
# to prevent catalina*.log from being rotated by Tomcat
@@@TCLOG@@@/catalina*.log {
copytruncate
weekly
rotate 52
compress
missingok
create 0644 tomcat tomcat
}

20
tomcat-10.1.service Normal file
View file

@ -0,0 +1,20 @@
# Systemd unit file for default tomcat
#
# To create clones of this service:
# DO NOTHING, use tomcat@.service instead.
[Unit]
Description=Apache Tomcat Web Application Container
After=syslog.target network.target
[Service]
Type=simple
EnvironmentFile=/etc/tomcat/tomcat.conf
Environment="NAME="
EnvironmentFile=-/etc/sysconfig/tomcat
ExecStart=/usr/libexec/tomcat/server start
SuccessExitStatus=143
User=tomcat
[Install]
WantedBy=multi-user.target

11
tomcat-10.1.sysconfig Normal file
View file

@ -0,0 +1,11 @@
# Service-specific configuration file for tomcat. This will be sourced by
# systemd for the default service (tomcat.service)
# If you want to customize named instance, make a similar file
# and name it tomcat@instancename.
# You will not need to set this, usually. For default service it equals
# CATALINA_HOME. For named service, it equals ${TOMCATS_BASE}${NAME}
#CATALINA_BASE="@@@TCHOME@@@"
# Please take a look at /etc/tomcat/tomcat.conf to have an idea what you
# can override.

24
tomcat-10.1.wrapper Normal file
View file

@ -0,0 +1,24 @@
#!/bin/bash
if [ "$1" = "version" ]; then
. /usr/libexec/tomcat/preamble
exec ${JAVACMD} -classpath ${CATALINA_HOME}/lib/catalina.jar \
org.apache.catalina.util.ServerInfo
fi
SRV="tomcat"
if [ -n "$2" ]; then
SRV="tomcat@$2"
fi
if [ "$1" = "start" ]; then
systemctl start ${SRV}.service
elif [ "$1" = "stop" ]; then
systemctl stop ${SRV}.service
elif [ "$1" = "version" ]; then
${JAVACMD} -classpath ${CATALINA_HOME}/lib/catalina.jar \
org.apache.catalina.util.ServerInfo
else
echo "Usage: $0 {start|stop|version} [server-id]"
exit 1
fi

19
tomcat-build.patch Normal file
View file

@ -0,0 +1,19 @@
diff -up ./res/bnd/build-defaults.bnd.orig ./res/bnd/build-defaults.bnd
--- res/bnd/build-defaults.bnd.orig 2023-10-16 11:23:04.752754202 +0800
+++ res/bnd/build-defaults.bnd 2023-10-16 11:23:29.931876910 +0800
@@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-Bundle-Version: ${version_cleanup;${version}}
+Bundle-Version: ${version}
Bundle-License: https://www.apache.org/licenses/LICENSE-2.0.txt
Specification-Title: Apache Tomcat
@@ -36,4 +36,4 @@ X-Compile-Target-JDK: ${compile.release}
-removeheaders: DSTAMP,TODAY,TSTAMP
-module.name: org.apache.${replace;${Bundle-Name};-;.}
\ No newline at end of file
+module.name: org.apache.${replace;${Bundle-Name};-;.}

21
tomcat-functions Normal file
View file

@ -0,0 +1,21 @@
#!/bin/bash
if [ -r /usr/share/java-utils/java-functions ]; then
. /usr/share/java-utils/java-functions
else
echo "Can't read Java functions library, aborting"
exit 1
fi
_save_function() {
local ORIG_FUNC=$(declare -f $1)
local NEWNAME_FUNC="$2${ORIG_FUNC#$1}"
eval "$NEWNAME_FUNC"
}
_save_function run run_java
run() {
run_java $@
}

24
tomcat-named.service Normal file
View file

@ -0,0 +1,24 @@
# Systemd unit file for tomcat instances.
#
# To create clones of this service:
# 0. systemctl enable tomcat@name.service
# 1. create catalina.base directory structure in
# /var/lib/tomcats/name
# 2. profit.
[Unit]
Description=Apache Tomcat Web Application Container
After=syslog.target network.target
[Service]
Type=simple
EnvironmentFile=/etc/tomcat/tomcat.conf
Environment="NAME=%i"
EnvironmentFile=-/etc/sysconfig/tomcat@%i
ExecStart=/usr/libexec/tomcat/server start
ExecStop=/usr/libexec/tomcat/server stop
SuccessExitStatus=143
User=tomcat
[Install]
WantedBy=multi-user.target

52
tomcat-preamble Normal file
View file

@ -0,0 +1,52 @@
#!/bin/bash
. /usr/libexec/tomcat/functions
# Get the tomcat config (use this for environment specific settings)
if [ -z "${TOMCAT_CFG_LOADED}" ]; then
if [ -z "${TOMCAT_CFG}" ]; then
TOMCAT_CFG="/etc/tomcat/tomcat.conf"
fi
. $TOMCAT_CFG
fi
if [ -d "${TOMCAT_CONFD=/etc/tomcat/conf.d}" ]; then
for file in ${TOMCAT_CONFD}/*.conf ; do
if [ -f "$file" ] ; then
. "$file"
fi
done
fi
if [ -z "$CATALINA_BASE" ]; then
if [ -n "$NAME" ]; then
if [ -z "$TOMCATS_BASE" ]; then
TOMCATS_BASE="/var/lib/tomcats/"
fi
CATALINA_BASE="${TOMCATS_BASE}${NAME}"
else
CATALINA_BASE="${CATALINA_HOME}"
fi
fi
VERBOSE=1
set_javacmd
cd ${CATALINA_HOME}
# CLASSPATH munging
if [ ! -z "$CLASSPATH" ] ; then
CLASSPATH="$CLASSPATH":
fi
if [ -n "$JSSE_HOME" ]; then
CLASSPATH="${CLASSPATH}$(build-classpath jcert jnet jsse 2>/dev/null):"
fi
CLASSPATH="${CLASSPATH}${CATALINA_HOME}/bin/bootstrap.jar"
CLASSPATH="${CLASSPATH}:${CATALINA_HOME}/bin/tomcat-juli.jar"
CLASSPATH="${CLASSPATH}:$(build-classpath commons-daemon 2>/dev/null)"
if [ -z "$LOGGING_PROPERTIES" ] ; then
LOGGING_PROPERTIES="${CATALINA_BASE}/conf/logging.properties"
if [ ! -f "${LOGGING_PROPERTIES}" ] ; then
LOGGING_PROPERTIES="${CATALINA_HOME}/conf/logging.properties"
fi
fi

25
tomcat-server Normal file
View file

@ -0,0 +1,25 @@
#!/bin/bash
. /usr/libexec/tomcat/preamble
MAIN_CLASS=org.apache.catalina.startup.Bootstrap
FLAGS="$JAVA_OPTS"
OPTIONS="-Dcatalina.base=$CATALINA_BASE \
-Dcatalina.home=$CATALINA_HOME \
-Djava.endorsed.dirs=$JAVA_ENDORSED_DIRS \
-Djava.io.tmpdir=$CATALINA_TMPDIR \
-Djava.util.logging.config.file=${LOGGING_PROPERTIES} \
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager"
if [ "$1" = "start" ] ; then
FLAGS="${FLAGS} $CATALINA_OPTS"
if [ "${SECURITY_MANAGER}" = "true" ] ; then
OPTIONS="${OPTIONS} \
-Djava.security.manager \
-Djava.security.policy==${CATALINA_BASE}/conf/catalina.policy"
fi
run start
elif [ "$1" = "stop" ] ; then
run stop
fi

1184
tomcat.spec Normal file

File diff suppressed because it is too large Load diff