blob: 647e6854a52ddc9d02eac7b64b9132cc512cd288 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Contributor: Sergei Lukin <sergej.lukin@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libevent
pkgver=2.1.8
pkgrel=1
pkgdesc="An event notification library"
url="http://libevent.org/"
arch="all"
license="BSD"
depends=""
depends_dev="python2"
makedepends="$depends_dev libressl-dev"
subpackages="$pkgname-dev"
source="https://github.com/$pkgname/$pkgname/releases/download/release-${pkgver}-stable/$pkgname-${pkgver}-stable.tar.gz
libressl.patch
"
# secfixes:
# 2.1.8-r0:
# - CVE-2016-10195
# - CVE-2016-10196
# - CVE-2016-10197
builddir="$srcdir"/$pkgname-$pkgver-stable
prepare() {
cd "$builddir"
default_prepare || return 1
}
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--disable-static \
|| return 1
make || return 1
}
package() {
cd "$builddir"
make -j1 DESTDIR=$pkgdir install || return 1
}
dev() {
replaces="libevent"
default_dev
mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
}
md5sums="f3eeaed018542963b7d2416ef1135ecc libevent-2.1.8-stable.tar.gz
281a6844632a5e7d76f39a0f858f7ff3 libressl.patch"
sha256sums="965cc5a8bb46ce4199a47e9b2c9e1cae3b137e8356ffdad6d94d3b9069b71dc2 libevent-2.1.8-stable.tar.gz
81ccaf983f8e3e46b19f293b49c32887da53f6daeb843cee9052aabf194df458 libressl.patch"
sha512sums="a2fd3dd111e73634e4aeb1b29d06e420b15c024d7b47778883b5f8a4ff320b5057a8164c6d50b53bd196c79d572ce2639fe6265e03a93304b09c22b41e4c2a17 libevent-2.1.8-stable.tar.gz
10abdd9195826739144b2164c2b95a65a7202ed7e1d202ec6f149e286377ee0726f05172ffabcfc6cf83b2832d883bb15632d9323f6907106580989c7af7ee95 libressl.patch"
|