Skip to content
Snippets Groups Projects
Commit c902b4f5 authored by J0WI's avatar J0WI Committed by Rasmus Thomsen
Browse files

community/apache-ant: security upgrade to 1.10.8

CVE-2020-1945
parent cde9a54f
No related branches found
No related tags found
1 merge request!7880community/apache-ant: security upgrade to 1.10.8
...@@ -2,22 +2,23 @@ ...@@ -2,22 +2,23 @@
# Contributor: Jakub Jirutka <jakub@jirutka.cz> # Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz> # Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=apache-ant pkgname=apache-ant
pkgver=1.10.7 pkgver=1.10.8
pkgrel=0 pkgrel=0
pkgdesc="A java-based build tool" pkgdesc="A java-based build tool"
url="http://ant.apache.org/" url="https://ant.apache.org/"
arch="noarch !mips !mips64" arch="noarch !mips !mips64"
options="!check" # Needs itself for testing. options="!check" # Needs itself for testing.
license="Apache-2.0" license="Apache-2.0"
depends="openjdk8-jre-base" depends="openjdk8-jre-base"
source="https://archive.apache.org/dist/ant/binaries/$pkgname-$pkgver-bin.tar.bz2" source="https://downloads.apache.org/ant/binaries/apache-ant-$pkgver-bin.tar.xz"
builddir="$srcdir/$pkgname-$pkgver"
_anthome="/usr/share/java/$pkgname" _anthome="/usr/share/java/$pkgname"
build() { # secfixes:
cd "$builddir" # 1.10.8-r0:
# - CVE-2020-1945
build() {
cat > $pkgname.sh <<-EOF cat > $pkgname.sh <<-EOF
ANT_HOME="$_anthome" ANT_HOME="$_anthome"
export ANT_HOME export ANT_HOME
...@@ -27,8 +28,6 @@ build() { ...@@ -27,8 +28,6 @@ build() {
package() { package() {
local destdir="$pkgdir/$_anthome" local destdir="$pkgdir/$_anthome"
cd "$builddir"
install -dm755 "$destdir"/bin install -dm755 "$destdir"/bin
rm bin/*.bat bin/*.cmd rm bin/*.bat bin/*.cmd
install -m755 bin/* "$destdir"/bin install -m755 bin/* "$destdir"/bin
...@@ -55,4 +54,4 @@ package() { ...@@ -55,4 +54,4 @@ package() {
install -m644 -D $pkgname.sh "$pkgdir"/etc/profile.d/$pkgname.sh install -m644 -D $pkgname.sh "$pkgdir"/etc/profile.d/$pkgname.sh
} }
sha512sums="d6d14cddfeed51902618cdbda338d148fd76a7e122b558ccc49af685cf1adc9f8e079e3deb3bee361cc9652fef5c859e414d6e28f15a4447751e3dd61e1df499 apache-ant-1.10.7-bin.tar.bz2" sha512sums="b03be67dbda9b45a7838c304db7e6750e4907c6eef51a8de30d929f7e5b0da61b8a82fde2b590a0842acffc0f1098bc6bdfd16664a72c6c6f883990e166acdd4 apache-ant-1.10.8-bin.tar.xz"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment