summaryrefslogtreecommitdiffstats
path: root/main/memcached/APKBUILD
blob: 9a5de4d90f05198c539f994900fb92ed55120d3f (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
60
61
62
63
64
65
66
67
# Contributor: Jeff Bilyk <jbilyk@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=memcached
pkgver=1.4.19
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
	musl-includes.patch
	$pkgname.confd
	$pkgname.initd"

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

prepare() {
	local i
	cd "$_builddir"
	update_config_sub || return 1
	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 \
		|| 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="4e0afb5fdab8c904bc65292ee5726165  memcached-1.4.19.tar.gz
e73c5651b37f54020bea00a4318cef2e  CVE-2011-4971.patch
4b2e8c5e3ad147ed514ad7fcf1b2222a  musl-includes.patch
a7aa37e91d4237448124b79bd99a2649  memcached.confd
cc344c9aead89042ca2fbf45cd3930a6  memcached.initd"
sha256sums="5e18eac2e5b557d7a98b5e866b01ff5fd0f7ceac7356f7b9fffbf8ddbea4a58d  memcached-1.4.19.tar.gz
0dbb2a8425e051f21a4f767055b82b6294ecf1d22082aeb24f6688bbc9870aed  CVE-2011-4971.patch
1b1df3a3b70469722a89135b361cf2c2a4b9835d3c9f3029aa73342fd4619cf5  musl-includes.patch
c8f03585eeeb0e0acf4e8bb3c0f7062c2c7da5f89e763cf91a856bec4991a2c7  memcached.confd
e4b6415c5501963d2ce421aab9d595736091bc895b8f3762e746593f7d736792  memcached.initd"
sha512sums="6f506ae9c0dc46f765ee610b9d0e427e3c6be16eb2182da6364b9c79025d07665f238b6bf7d81af99ef1fbadc2b161b3d2183f445877693ba1237b9c5fcb6358  memcached-1.4.19.tar.gz
a1f6ece8e3b07509aadbd24c3420cb4400a47c6f046282243a6e295d041ff8f84ff2de86e657cb233199259cca63360e03b173a5abff0d67789eef91847be5eb  CVE-2011-4971.patch
80c8719c254bc8b8d3d4256e9850c17f5e9ee9a76787b2d0fd7c6bb7780ee132257ff65d8397dc023216b3f541050295c4e1d7e675b12ab6dcc50d07c5e067b3  musl-includes.patch
31bd788433b8021ed332f86d291e7f03222ae234520e52ba673b581d5da2adf5656e8f73e8b985df73258dea9b2a1b8ef36195163fe47a92fda59825deedfed4  memcached.confd
65782982faaa8966ae0e1335ae367db1c65a94b5e218dfb1245e9d5e3b03ed42234c8023e6f6af13ba06bc6a5f25be5e34b4c84f4fd67805df280c94315c6a23  memcached.initd"