forked from pool/tomcat
This commit is contained in:
parent
32d59bc711
commit
14216e6c34
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
JAR=/usr/lib/tomcat/serverxmltool.jar
|
JAR=@LIBEXECDIR@/tomcat/serverxmltool.jar
|
||||||
SERVERXML=/etc/tomcat/server.xml
|
SERVERXML=/etc/tomcat/server.xml
|
||||||
|
|
||||||
function usage {
|
function usage {
|
||||||
@ -44,4 +44,4 @@ else
|
|||||||
echo "$SERVERXML was not modified."
|
echo "$SERVERXML was not modified."
|
||||||
rm ${SERVERXML}.new${SUFIX}
|
rm ${SERVERXML}.new${SUFIX}
|
||||||
exit 2
|
exit 2
|
||||||
fi
|
fi
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Aug 26 06:04:58 UTC 2020 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
- Avoid hardcoding /usr/lib as libexecdir
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Jul 29 20:48:14 UTC 2020 - Matei Albu <malbu@suse.com>
|
Wed Jul 29 20:48:14 UTC 2020 - Matei Albu <malbu@suse.com>
|
||||||
|
|
||||||
|
@ -65,7 +65,7 @@ Source30: tomcat-preamble
|
|||||||
Source31: tomcat-server
|
Source31: tomcat-server
|
||||||
Source32: tomcat-named.service
|
Source32: tomcat-named.service
|
||||||
Source33: tomcat-serverxml-tool.tar.gz
|
Source33: tomcat-serverxml-tool.tar.gz
|
||||||
Source34: tomcat-serverxml-tool.sh
|
Source34: tomcat-serverxml-tool.sh.in
|
||||||
Source1000: tomcat-rpmlintrc
|
Source1000: tomcat-rpmlintrc
|
||||||
Source1001: https://archive.apache.org/dist/tomcat/tomcat-%{major_version}/v%{version}/src/%{packdname}.tar.gz.asc
|
Source1001: https://archive.apache.org/dist/tomcat/tomcat-%{major_version}/v%{version}/src/%{packdname}.tar.gz.asc
|
||||||
Source1002: %{name}.keyring
|
Source1002: %{name}.keyring
|
||||||
@ -579,7 +579,8 @@ EOF
|
|||||||
|
|
||||||
# Install tool used to edit server.xml
|
# Install tool used to edit server.xml
|
||||||
pushd %{_builddir}/tomcat-serverxml-tool
|
pushd %{_builddir}/tomcat-serverxml-tool
|
||||||
install -m 0755 %{SOURCE34} \
|
cat %{SOURCE34} | sed 's#@LIBEXECDIR@#%{_libexecdir}#g' >tomcat-serverxml-tool.sh
|
||||||
|
install -m 0755 tomcat-serverxml-tool.sh \
|
||||||
%{buildroot}%{_libexecdir}/%{name}/serverxml-tool.sh
|
%{buildroot}%{_libexecdir}/%{name}/serverxml-tool.sh
|
||||||
cp serverxmltool.jar %{buildroot}%{_libexecdir}/%{name}/
|
cp serverxmltool.jar %{buildroot}%{_libexecdir}/%{name}/
|
||||||
popd
|
popd
|
||||||
|
Loading…
x
Reference in New Issue
Block a user