aboutsummaryrefslogtreecommitdiffstats
path: root/main/memcached/APKBUILD
blob: f3126db977f3e3bbdead9a59a5b6ab602a903260 (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: Jeff Bilyk <jbilyk@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=memcached
pkgver=1.4.17
pkgrel=0
pkgdesc="Distributed memory object caching system"
url="http://memcached.org"
arch="all"
license="BSD"
depends="perl"
depends_dev="libevent-dev"
makedepends="$depends_dev"
install="$pkgname.pre-install"
subpackages="$pkgname-dev $pkgname-doc"
source="http://www.memcached.org/files/memcached-$pkgver.tar.gz
	CVE-2011-4971.patch
	$pkgname.confd
	$pkgname.initd"

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

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 --prefix=/usr\
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
        install -m755 -D "$srcdir/$pkgname.initd" \
		"$pkgdir/etc/init.d/$pkgname" || return 1
	install -m644 -D "$srcdir/$pkgname.confd" \
		"$pkgdir/etc/conf.d/$pkgname" || return 1
}

md5sums="46402dfbd7faadf6182283dbbd18b1a6  memcached-1.4.17.tar.gz
e73c5651b37f54020bea00a4318cef2e  CVE-2011-4971.patch
9d7396bf77c72ca3845118424cd1898b  memcached.confd
cc344c9aead89042ca2fbf45cd3930a6  memcached.initd"
sha256sums="d9173ef6d99ba798c982ea4566cb4f0e64eb23859fdbf9926a89999d8cdc0458  memcached-1.4.17.tar.gz
0dbb2a8425e051f21a4f767055b82b6294ecf1d22082aeb24f6688bbc9870aed  CVE-2011-4971.patch
d8648ea385035632b209acfae27b0a46ec446e58d37de43874d2a41ba13b6923  memcached.confd
e4b6415c5501963d2ce421aab9d595736091bc895b8f3762e746593f7d736792  memcached.initd"
sha512sums="cf44500f81494efe8b27d2859d160e288260323d9c0ca6f0d0507c131257048012248e6a7639e410cec6765219d4595359d9335281eeb3b238306972a5bd859d  memcached-1.4.17.tar.gz
a1f6ece8e3b07509aadbd24c3420cb4400a47c6f046282243a6e295d041ff8f84ff2de86e657cb233199259cca63360e03b173a5abff0d67789eef91847be5eb  CVE-2011-4971.patch
059c16613648bb46ec41e1cab08033cafb7a75c71e9cf961d1e1bfa1219e17a4f528555708fc29d8eedcbd662199c32d7bc5d8ba4418bcabd8e30239bbc8e36c  memcached.confd
65782982faaa8966ae0e1335ae367db1c65a94b5e218dfb1245e9d5e3b03ed42234c8023e6f6af13ba06bc6a5f25be5e34b4c84f4fd67805df280c94315c6a23  memcached.initd"