aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2018-04-17 14:56:37 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2018-04-17 14:57:31 +0000
commit929b5faa3daa8490ac9e97720d28d0435c6936b7 (patch)
tree71367c67a6a347bfa89e9b658cc2df60e329fba0 /main
parent524eff27983ade7b43bddb8ef612ddacec3b1522 (diff)
downloadaports-929b5faa3daa8490ac9e97720d28d0435c6936b7.tar.bz2
aports-929b5faa3daa8490ac9e97720d28d0435c6936b7.tar.xz
main/jq: security upgrade to 1.6rc1 (CVE-2016-4074)
Diffstat (limited to 'main')
-rw-r--r--main/jq/APKBUILD26
1 files changed, 15 insertions, 11 deletions
diff --git a/main/jq/APKBUILD b/main/jq/APKBUILD
index 783eb67e7b..3a0e9115c8 100644
--- a/main/jq/APKBUILD
+++ b/main/jq/APKBUILD
@@ -1,23 +1,29 @@
# Contributor: Johannes Matheis <jomat+alpinebuild@jmt.gr>
# Maintainer: Johannes Matheis <jomat+alpinebuild@jmt.gr>
pkgname=jq
-pkgver=1.5
-pkgrel=5
+pkgver=1.6_rc1
+_pkgver=${pkgver/_}
+pkgrel=0
pkgdesc="A lightweight and flexible command-line JSON processor"
url="http://stedolan.github.io/jq/"
arch="all"
license="MIT"
depends=""
depends_dev=""
-makedepends="$depends_dev oniguruma-dev"
+makedepends="$depends_dev oniguruma-dev automake autoconf"
install=""
subpackages="$pkgname-doc $pkgname-dev"
-source="https://github.com/stedolan/jq/releases/download/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.gz
- 0001-mktemp-needs-6-or-more-X-s-fix-1000.patch
- CVE-2015-8863.patch
- "
+source="https://github.com/stedolan/jq/archive/${pkgname}-${_pkgver}.tar.gz"
+builddir="${srcdir}/$pkgname-${pkgname}-${_pkgver}"
-builddir="${srcdir}/${pkgname}-${pkgver}"
+# secfixes:
+# 1.6rc1-r0:
+# - CVE-2016-4074
+
+prepare() {
+ cd "$builddir"
+ autoreconf -fi
+}
build() {
cd "$builddir"
@@ -35,6 +41,4 @@ package() {
make DESTDIR="$pkgdir" prefix=/usr install
}
-sha512sums="4a0bb069ae875f47731d7d84ae6b82240703dc7a694cfb0aee4c7e9639defe7ba9af575d17dc32bda4426b80c186cc8dcd4505f3a6bcbe16b39e9b13097da238 jq-1.5.tar.gz
-c3508ad1692ebd7ad3486e376869f0f89230ad5869e00353c682cf86ff43cc15360ee2f45803ec113d7fd822d863856a9b93ff22b83b69d319786fe5bdce1edb 0001-mktemp-needs-6-or-more-X-s-fix-1000.patch
-e7e7fdf346ccd6df725dd28029654a6bebaa45ed6f14119f51d7f898b555416595d004bfc8a51f612039c11e9573d0f6ea28c3c2ca6aca1d23f1ee0543bfe1e9 CVE-2015-8863.patch"
+sha512sums="c70983c4c60d34fc6edb22763624b100f57db8536381c447a6cb31b660d68f51574f823ee3a231186dde422b871ba017b16488f7296efb5962f9af34859c2377 jq-1.6rc1.tar.gz"