APKBUILD 2.25 KB
Newer Older
Jeff Bilyk's avatar
Jeff Bilyk committed
1 2 3
# Contributor: Jeff Bilyk <jbilyk@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=memcached
4 5
pkgver=1.4.17
pkgrel=0
Jeff Bilyk's avatar
Jeff Bilyk committed
6 7 8
pkgdesc="Distributed memory object caching system"
url="http://memcached.org"
arch="all"
9
license="BSD"
Jeff Bilyk's avatar
Jeff Bilyk committed
10 11 12
depends="perl"
depends_dev="libevent-dev"
makedepends="$depends_dev"
13
install="$pkgname.pre-install"
Jeff Bilyk's avatar
Jeff Bilyk committed
14
subpackages="$pkgname-dev $pkgname-doc"
15
source="http://www.memcached.org/files/memcached-$pkgver.tar.gz
16
	CVE-2011-4971.patch
17 18
	$pkgname.confd
	$pkgname.initd"
Jeff Bilyk's avatar
Jeff Bilyk committed
19 20 21 22 23 24

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

prepare() {
	local i
	cd "$_builddir"
25
	update_config_sub || return 1
Jeff Bilyk's avatar
Jeff Bilyk committed
26 27 28 29 30 31 32 33 34
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
35 36 37 38
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
39
		|| return 1
Jeff Bilyk's avatar
Jeff Bilyk committed
40 41 42 43 44 45
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
46 47 48 49
        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
Jeff Bilyk's avatar
Jeff Bilyk committed
50 51
}

52
md5sums="46402dfbd7faadf6182283dbbd18b1a6  memcached-1.4.17.tar.gz
53
e73c5651b37f54020bea00a4318cef2e  CVE-2011-4971.patch
54 55
9d7396bf77c72ca3845118424cd1898b  memcached.confd
cc344c9aead89042ca2fbf45cd3930a6  memcached.initd"
56
sha256sums="d9173ef6d99ba798c982ea4566cb4f0e64eb23859fdbf9926a89999d8cdc0458  memcached-1.4.17.tar.gz
57
0dbb2a8425e051f21a4f767055b82b6294ecf1d22082aeb24f6688bbc9870aed  CVE-2011-4971.patch
58 59
d8648ea385035632b209acfae27b0a46ec446e58d37de43874d2a41ba13b6923  memcached.confd
e4b6415c5501963d2ce421aab9d595736091bc895b8f3762e746593f7d736792  memcached.initd"
60
sha512sums="cf44500f81494efe8b27d2859d160e288260323d9c0ca6f0d0507c131257048012248e6a7639e410cec6765219d4595359d9335281eeb3b238306972a5bd859d  memcached-1.4.17.tar.gz
61
a1f6ece8e3b07509aadbd24c3420cb4400a47c6f046282243a6e295d041ff8f84ff2de86e657cb233199259cca63360e03b173a5abff0d67789eef91847be5eb  CVE-2011-4971.patch
62 63
059c16613648bb46ec41e1cab08033cafb7a75c71e9cf961d1e1bfa1219e17a4f528555708fc29d8eedcbd662199c32d7bc5d8ba4418bcabd8e30239bbc8e36c  memcached.confd
65782982faaa8966ae0e1335ae367db1c65a94b5e218dfb1245e9d5e3b03ed42234c8023e6f6af13ba06bc6a5f25be5e34b4c84f4fd67805df280c94315c6a23  memcached.initd"