import CS mod_jk-1.2.49-1.el9

This commit is contained in:
eabdullin 2024-04-04 06:56:10 +00:00
parent 53eb624578
commit 92a6461515
4 changed files with 31 additions and 7 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/tomcat-connectors-1c14fc065bc133887fdde55cab954691b3dc3aac.tar.gz SOURCES/tomcat-connectors-3ad622409ae3335df9f353bef8ebc4d72a70fd6d.tar.gz

View File

@ -1 +1 @@
78c942f3556d9b490c477f4a12c5217204c496ee SOURCES/tomcat-connectors-1c14fc065bc133887fdde55cab954691b3dc3aac.tar.gz 6e2832914fa375a76212bfc50d8adfa68a536077 SOURCES/tomcat-connectors-3ad622409ae3335df9f353bef8ebc4d72a70fd6d.tar.gz

2
SOURCES/mod_jk-part.conf Normal file
View File

@ -0,0 +1,2 @@
d /run/mod_jk 0755 root root -
f /run/mod_jk.pid 0755 root root -

View File

@ -29,22 +29,24 @@
%define aprincludes %(%{aprconf} --includes 2>/dev/null) %define aprincludes %(%{aprconf} --includes 2>/dev/null)
# Update commitid and serial when new sources and release version are available # Update commitid and serial when new sources and release version are available
%global commitid 1c14fc065bc133887fdde55cab954691b3dc3aac %global commitid 3ad622409ae3335df9f353bef8ebc4d72a70fd6d
%global serial 22 %global serial 1
Name: mod_jk Name: mod_jk
Epoch: 0 Epoch: 0
Version: 1.2.48 Version: 1.2.49
Release: %{serial}%{?dist} Release: %{serial}%{?dist}
Summary: Tomcat mod_jk connector for Apache Summary: Tomcat mod_jk connector for Apache
Group: Internet/WWW/Servers Group: Internet/WWW/Servers
License: ASL 2.0 License: ASL 2.0
URL: http://tomcat.apache.org URL: http://tomcat.apache.org
# You can get the tarball from https://github.com/apache/tomcat-connectors/archive/3ad622409ae3335df9f353bef8ebc4d72a70fd6d.tar.gz
Source0: tomcat-connectors-%{commitid}.tar.gz Source0: tomcat-connectors-%{commitid}.tar.gz
Source1: %{pkg_name}.conf.sample Source1: %{pkg_name}.conf.sample
Source2: uriworkermap.properties.sample Source2: uriworkermap.properties.sample
Source3: workers.properties.sample Source3: workers.properties.sample
Source4: %{pkg_name}-part.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@ -60,6 +62,7 @@ BuildRequires: java-devel >= 1.6.0
BuildRequires: jpackage-utils >= 0:1.5.38 BuildRequires: jpackage-utils >= 0:1.5.38
BuildRequires: libtool BuildRequires: libtool
BuildRequires: xalan-j2 >= 2.7.0 BuildRequires: xalan-j2 >= 2.7.0
BuildRequires: systemd
Obsoletes: mod_jk-ap24 < 0:1.2.48-21 Obsoletes: mod_jk-ap24 < 0:1.2.48-21
%description %description
@ -120,6 +123,13 @@ popd
%define aprincludes %(%{aprconf} --includes 2>/dev/null) %define aprincludes %(%{aprconf} --includes 2>/dev/null)
%{__rm} -rf $RPM_BUILD_ROOT %{__rm} -rf $RPM_BUILD_ROOT
# bz#2047969 start
mkdir -p %{buildroot}%{_tmpfilesdir}
install -m 0644 %{SOURCE4} %{buildroot}%{_tmpfilesdir}/%{name}.conf
install -d -m 0755 %{buildroot}%{_rundir}/%{name}/
touch %{buildroot}%{_rundir}/%{name}.pid
chmod 0755 %{buildroot}%{_rundir}/%{name}.pid
# bz#2047969 end
install -d -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/ install -d -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/
install -p -m 0644 %{SOURCE1} %{SOURCE2} %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/ install -p -m 0644 %{SOURCE1} %{SOURCE2} %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/
%{__sed} -i -e 's|/usr/local/bin\b|%{_bindir}|' tools/reports/*.pl %{__sed} -i -e 's|/usr/local/bin\b|%{_bindir}|' tools/reports/*.pl
@ -129,7 +139,7 @@ command="s|/usr/local/bin\b|%{_bindir}|"
%{__install} -p -m 0755 native/apache-2.0/%{pkg_name}.so \ %{__install} -p -m 0755 native/apache-2.0/%{pkg_name}.so \
${RPM_BUILD_ROOT}/%{aplibdir}/%{pkg_name}.so ${RPM_BUILD_ROOT}/%{aplibdir}/%{pkg_name}.so
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}/%{_bindir} %{__install} -d -m 0755 ${RPM_BUILD_ROOT}/%{_bindir}
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}/%{_var}/run/%{name} %{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_rundir}/%{name}
%{__install} -d -m 0700 ${RPM_BUILD_ROOT}/%{_var}/cache/httpd/%{name} %{__install} -d -m 0700 ${RPM_BUILD_ROOT}/%{_var}/cache/httpd/%{name}
# for tools # for tools
@ -147,8 +157,12 @@ command="s|/usr/local/bin\b|%{_bindir}|"
%doc native/LICENSE native/NOTICE native/README.txt %doc native/LICENSE native/NOTICE native/README.txt
%{aplibdir}/* %{aplibdir}/*
%config(noreplace) %{_sysconfdir}/httpd/conf.d/* %config(noreplace) %{_sysconfdir}/httpd/conf.d/*
%dir %{_var}/run/%{name}
%attr(0700,apache,apache) %dir %{_var}/cache/httpd/%{name} %attr(0700,apache,apache) %dir %{_var}/cache/httpd/%{name}
# bz#2047969 start
%dir %{_rundir}/%{name}/
%verify(not size mtime md5) %{_rundir}/%{name}.pid
%{_tmpfilesdir}/%{name}.conf
# bz#2047969 end
%if %with tools %if %with tools
%files tools %files tools
@ -158,6 +172,14 @@ command="s|/usr/local/bin\b|%{_bindir}|"
%endif %endif
%changelog %changelog
* Thu Feb 29 2024 Sokratis Zappis <szappis@redhat.com> - 1.2.49-1
- Related: RHEL-27511 - Rebase to upstream 1.2.49 release
* Thu Jan 12 2023 Sokratis Zappis <szappis@rehdat.com> - 1.2.48-23
- Add entries for tmpfiles.d mechanism
- Remove /var/run legacy location
- Resolves: rhbz#2047969
* Tue Aug 24 2021 George Zaronikas <gzaronik@redhat.com> - 1.2.48-22 * Tue Aug 24 2021 George Zaronikas <gzaronik@redhat.com> - 1.2.48-22
- Specifying exact NVR in Obsoletes to avoid conflict with -ap24 subpackage - Specifying exact NVR in Obsoletes to avoid conflict with -ap24 subpackage
- Resolves: #1963135 - Resolves: #1963135