Commit db1e74cf authored by Natanael Copa's avatar Natanael Copa
Browse files

main/libx11: security fix (CVE-2013-1981,CVE-2013-1997,CVE-2013-2004)

ref #1931
fixes #1932
parent 1a41cbf7
# Maintainer: Natanael Copa <ncopa@alpinelinux.org> # Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libx11 pkgname=libx11
pkgver=1.5.0 pkgver=1.5.0
pkgrel=0 pkgrel=1
pkgdesc="X11 client-side library" pkgdesc="X11 client-side library"
url="http://xorg.freedesktop.org/" url="http://xorg.freedesktop.org/"
arch="all" arch="all"
...@@ -12,20 +12,36 @@ depends_dev="libxcb-dev xproto xextproto xf86bigfontproto xtrans kbproto ...@@ -12,20 +12,36 @@ depends_dev="libxcb-dev xproto xextproto xf86bigfontproto xtrans kbproto
inputproto" inputproto"
makedepends="$depends_dev util-macros pkgconfig" makedepends="$depends_dev util-macros pkgconfig"
source="http://xorg.freedesktop.org/releases/individual/lib/libX11-$pkgver.tar.bz2 source="http://xorg.freedesktop.org/releases/individual/lib/libX11-$pkgver.tar.bz2
CVE-2013-1981_CVE-2013-1997_CVE-2013-2004.patch
" "
_builddir="$srcdir"/libX11-$pkgver
prepare() {
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() { build() {
cd "$srcdir"/libX11-$pkgver cd "$_builddir"
./configure --prefix=/usr \ ./configure --prefix=/usr \
--with-xcb || return 1 --with-xcb || return 1
make make
} }
package() { package() {
cd "$srcdir"/libX11-$pkgver cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1 make DESTDIR="$pkgdir" install || return 1
rm "$pkgdir"/usr/lib/*.la || return 1 rm "$pkgdir"/usr/lib/*.la || return 1
install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
} }
md5sums="78b4b3bab4acbdf0abcfca30a8c70cc6 libX11-1.5.0.tar.bz2" md5sums="78b4b3bab4acbdf0abcfca30a8c70cc6 libX11-1.5.0.tar.bz2
9b09fd2ec7d077f610eca0aad4f51927 CVE-2013-1981_CVE-2013-1997_CVE-2013-2004.patch"
sha256sums="c382efd7e92bfc3cef39a4b7f1ecf2744ba4414a705e3bc1e697f75502bd4d86 libX11-1.5.0.tar.bz2
fa236b5b55b4df0117f6e3c3ea1d857139b122a1e143270968bb02a06aef7cb7 CVE-2013-1981_CVE-2013-1997_CVE-2013-2004.patch"
sha512sums="bbcfbaf306d4fff62d2f63daa5312f05bce1dc9655b0b259d77fbd3a39f51e31f9d127ab874a4895868c0ab70599c0b2e05bc984d9ed81c844ae456f77785083 libX11-1.5.0.tar.bz2
7526bd438b930a22249907ea797548335b4a8b61e8b37348e57a9869225f340328e3833187ca755bf55af8afa81c49889f0af4d48cf179bffb11a0d13b43ee95 CVE-2013-1981_CVE-2013-1997_CVE-2013-2004.patch"
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment