aboutsummaryrefslogtreecommitdiffstats
path: root/main/curl/APKBUILD
blob: 1840fc5934727cc0f80585870590974f9cca3c60 (plain) (blame)
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
# Contributor: Sergey Lukin <sergej.lukin@gmail.com>
pkgname=curl
pkgver=7.49.1
pkgrel=4
pkgdesc="An URL retrival utility and library"
url="http://curl.haxx.se"
arch="all"
license="MIT"
depends="ca-certificates"
depends_dev="zlib-dev openssl-dev libssh2-dev"
makedepends="groff $depends_dev"
source="http://curl.haxx.se/download/curl-$pkgver.tar.bz2"
subpackages="$pkgname-doc $pkgname-dev"
source="http://curl.haxx.se/download/curl-$pkgver.tar.bz2
	CVE-2016-5419.patch
	CVE-2016-5420.patch
	CVE-2016-5421.patch
	CVE-2016-7141.patch
	CVE-2016-7167.patch
        CVE-2016-8615.patch
        CVE-2016-8616.patch
        CVE-2016-8617.patch
        CVE-2016-8618.patch
        CVE-2016-8619.patch
        CVE-2016-8620.patch
        CVE-2016-8621.patch
        CVE-2016-8622.patch
        CVE-2016-8623.patch
        CVE-2016-8624-fixed.patch
	"

_builddir="$srcdir/$pkgname-$pkgver"

# secfixes:
#   7.49.1-r1:
#   - CVE-2016-5419
#   - CVE-2016-5420
#   - CVE-2016-5421
#   7.49.1-r2:
#   - CVE-2016-7141
#   7.49.1-r3:
#   - CVE-2016-7167

prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}
build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--without-libidn \
		--enable-ipv6 \
		--disable-ldap \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la || return 1
}

md5sums="6bb1f7af5b58b30e4e6414b8c1abccab  curl-7.49.1.tar.bz2
290f6b37d95c9731849fc805a2ece53b  CVE-2016-5419.patch
150e3c110d6eb85187e109d04317b9e3  CVE-2016-5420.patch
0524664bc926374f6a7b057046924bd2  CVE-2016-5421.patch
7eada1e3745e3cfe8f4057dec273d820  CVE-2016-7141.patch
13d5ad6ce2db9b5a2314d31227577f1f  CVE-2016-7167.patch
21d1acf9c3a620215ba2fcabdbdf3d27  CVE-2016-8615.patch
b0cf6601cd685e5b5d10a10a22df1c8d  CVE-2016-8616.patch
7f5775f33a18790e9b8d5c76a226bafe  CVE-2016-8617.patch
152307bf8803c616ed5c6f6d06b2ee6a  CVE-2016-8618.patch
a0883e93d4d4ba3611fd0bddfe5ac928  CVE-2016-8619.patch
80787be2354a8c6385164c66c97f7f61  CVE-2016-8620.patch
7640e8282f71c06f0079c1a19d9cff25  CVE-2016-8621.patch
dfbc8f4306dbaa4e6220d9c7dbaf691b  CVE-2016-8622.patch
b7eedbdba069f8a3a6efaaddce1a38ed  CVE-2016-8623.patch
efc92cc9dfe94f70b83aba2ed83d94b6  CVE-2016-8624-fixed.patch"
sha256sums="eb63cec4bef692eab9db459033f409533e6d10e20942f4b060b32819e81885f1  curl-7.49.1.tar.bz2
d3499aaf331fca2303749bdffbedf5677a555a37ada187c1a734926c7cb718e5  CVE-2016-5419.patch
23e1fbd27860c6f46bec094c06b5618da2ab71b091945f587c0d7e8d143472f7  CVE-2016-5420.patch
bca78667ac9110920c5ce31c8d82a784fe327eb184460c1b87fab4de004e6692  CVE-2016-5421.patch
f097d6e5c75ebdaf532aef59e31790a657814bbb7e501dfb2eb6686ddca4f1eb  CVE-2016-7141.patch
eedbd3b1f044bbc884140a75e40be0f97ea3d0df6a7bc7958db7ce0155642fcd  CVE-2016-7167.patch
6496aa6482eaae9187e6c03ea07197a02ae382c684b0ac00cf6c50c96cb16593  CVE-2016-8615.patch
2bc3733d06a647afe01513217c0943152fce1e8270f97c418ccd2ba0ddea4f01  CVE-2016-8616.patch
1860686d444f3710fc9c3b5aab66bedee8bf777516c905bf733a3d342b3034e0  CVE-2016-8617.patch
ff91898a935bc928407cac428bb26cfac2073ec8aba2cb38c005cfc2fec8fbfc  CVE-2016-8618.patch
d89aefe4e4dc591b1e2341ee63b09d186bb85268ee7b3322d2c6c6100b89fc61  CVE-2016-8619.patch
dae2437923c77085d37d88ae5eced388eb2c924c02c0c4e0f8e44f8c8f2911db  CVE-2016-8620.patch
05c014b25f25cfe689a1ce6d8238ef8906f0c6adfe64837e5b74691f0a5db287  CVE-2016-8621.patch
516a3cea6957c43513a4e55421d79ddfa26bbaf2adcbb42d7ec271ec583770d9  CVE-2016-8622.patch
f66764f7ade146f8df501d5a80be776d790b1d8d1e2f8775d892343fe87acfc1  CVE-2016-8623.patch
f53bf2d9d7dddc8c670ddd50aa6dcd32a9f45ffc13e17cd44df31e1127d942b2  CVE-2016-8624-fixed.patch"
sha512sums="665ef178c282c14f429498547b3711ef79faf85f6db7f4ec24259e2c6247f6ee234dda158ebc207d03f08b5198c5844480e054f24f054b2de6c6a15d4f1ce6e6  curl-7.49.1.tar.bz2
a596e489b0b566d9dcc8292ccec4d90dfbeae7cb11e250871217ff90d1c9525d602f40e112eb0d47a0a597e5768c105423d1cb0cb2825c39a319ea9d582269d0  CVE-2016-5419.patch
9578f13c5d8e5a5d184b5b08dd7d59de596644084f2de04c025ad8cd78e11dadcff45bf4fab02b8942d7ed19977dec4d220893f675d64ed13b27284d63dfa5f1  CVE-2016-5420.patch
2b5e77dda11dbb77cbfe760da5377c94a1664b04f254c9fa642f49da119d93123ef6ee27e4c08d0ba9094240791ac09273c8be23fa8ca5982f8ed14d6b29ad7e  CVE-2016-5421.patch
7eae8b37fb9ba8dfc0d6658b37191560668914a84aba411cfdac155bd1749b980514124c0653e85823a8a0e770f47ccc2a4177810b02cfc641c90f008639879e  CVE-2016-7141.patch
c95d5711db08084e6a5c20ecd2c8aa8a494240a463940692b1d9e3a81ccb899894c1ac8ca65e35d7834352305bf8872c6e4907ff695e721824e8e7c1190f1863  CVE-2016-7167.patch
03f473805bc392c7c8d1336abb69817159ed2892220de81afab36f9d7c479bf6f01a5c5f90d93e7076dc1cd855e11c591e393bd3f125a671221cade1455b62d1  CVE-2016-8615.patch
865629b296b0cec5bb774cf46d86b3e69b1c20f1176feec3c945c54fa7e11f944b86df2a65e72fefb8a75856d514640818f646a346bf68081dcf5a0b283c14ac  CVE-2016-8616.patch
b020c27e9e2752580c6af1a890785bfc1307865e70bd00a7133ee495b27a6b112e7ec670b824c342d2cc56d6d6afa0387e963d59a18fcc3d724f85d1f7a9e97d  CVE-2016-8617.patch
ef7c7552057d7094282fa2eb430f146a2e843dc79b13decbf7bd7f44c9ddd8b5fc3d0e5a7f7642eada048373c0847ea61bfc0f284ed66980ec15d24e637a195b  CVE-2016-8618.patch
c414da5ffff46f6eae70cde90bef7a691c09364fbb1347e459ac63a2a3a549fe23e1e19490f055b97660ea238e2b08ed879382944794769ada9d89ba53294428  CVE-2016-8619.patch
68b6312f006f5ff3e7ff42b96693ba5d48889a0cee485f3b97a05f9b47b46b9502490e3feda527902b080e905e45c4d6b6d122fb6cc375bc21b30d086d841e76  CVE-2016-8620.patch
7c90a1b2666aa9acf05744d30f4342ed0a8f7297786e7ed46d15257e2d810296698281be6a76f946ad39368a66338cb5317651014d60296bb2145967e1396a46  CVE-2016-8621.patch
851ce886f2cffec50a4383d9ab8b753204ac64ef7b7bb47f9dd4914daaf1b6d5d8ae4bbddaaf1e48a323fd0eeff40a264299639129ec755dba8d04382a50e0e5  CVE-2016-8622.patch
782f31b92a56807e232a12328c5ddf9b9587117e25f730c440f6fa40c72501cdd41b61f367314b3b2de44b394605f4a6763dbe84a3c2f0b5dbf1ccbc882e3952  CVE-2016-8623.patch
c1b5ebce13e9ea7da611f5eee43bf3cf28034dd0e00877494c04459dd24f3b56e8501470bb06f210afda86e57c9ffbe61bc9cdeb9c8659cb4415b7f715f6aac7  CVE-2016-8624-fixed.patch"