diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-11-06 08:39:51 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-11-06 08:39:51 +0000 |
commit | 70234a558689b584030a21e53c9e3473a1ae1dc7 (patch) | |
tree | fe03b70c73c6aaa8a4b62ea9409dc37f89a250c7 /main/hostapd/APKBUILD | |
parent | cf77a75e1baf2dbe15dc265e2879782c2a271b84 (diff) | |
download | aports-70234a558689b584030a21e53c9e3473a1ae1dc7.tar.bz2 aports-70234a558689b584030a21e53c9e3473a1ae1dc7.tar.xz |
main/hostapd: fix CVE-2012-4445
fixes #1428
Diffstat (limited to 'main/hostapd/APKBUILD')
-rw-r--r-- | main/hostapd/APKBUILD | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/main/hostapd/APKBUILD b/main/hostapd/APKBUILD index 7b25f79919..13739da065 100644 --- a/main/hostapd/APKBUILD +++ b/main/hostapd/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=hostapd pkgver=1.0 -pkgrel=1 +pkgrel=2 pkgdesc="daemon for wireless software access points" url="http://hostap.epitest.fi/hostapd/" arch="all" @@ -10,7 +10,9 @@ depends= makedepends="openssl-dev libnl-dev" install= subpackages="$pkgname-doc" +patches="CVE-2012-4445.patch" source="http://hostap.epitest.fi/releases/$pkgname-$pkgver.tar.gz + $patches $pkgname.initd $pkgname.confd" @@ -20,6 +22,12 @@ _builddir="$srcdir"/$pkgname-$pkgver/hostapd prepare() { local conf="$_builddir/.config" + cd "$_builddir"/.. + for i in $patches; do + msg $i + patch -p1 -i "$srcdir"/$i || return 1 + done + cd "$_builddir" sed -i -e "s:/etc/hostapd:/etc/hostapd/hostapd:g" \ hostapd.conf @@ -110,5 +118,6 @@ package() { } md5sums="236247a7bbd4f60d5fa3e99849d1ffc9 hostapd-1.0.tar.gz +0d01d4641e0c33f79c1f4372613655bf CVE-2012-4445.patch de734b22c3ad1e85309b5634d29c6225 hostapd.initd c91382209042defa04e79d0ae841a29e hostapd.confd" |