# Contributor: Jeff Bilyk # Maintainer: Natanael Copa pkgname=memcached pkgver=1.4.18 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="b851201a68ea48052984f4bf48d78fb3 memcached-1.4.18.tar.gz e73c5651b37f54020bea00a4318cef2e CVE-2011-4971.patch 4b2e8c5e3ad147ed514ad7fcf1b2222a musl-includes.patch a7aa37e91d4237448124b79bd99a2649 memcached.confd cc344c9aead89042ca2fbf45cd3930a6 memcached.initd" sha256sums="6a5cc8d0874f13c5043d741af83fbdc4c681316d32b8313c0dbc82ca96f97439 memcached-1.4.18.tar.gz 0dbb2a8425e051f21a4f767055b82b6294ecf1d22082aeb24f6688bbc9870aed CVE-2011-4971.patch 1b1df3a3b70469722a89135b361cf2c2a4b9835d3c9f3029aa73342fd4619cf5 musl-includes.patch c8f03585eeeb0e0acf4e8bb3c0f7062c2c7da5f89e763cf91a856bec4991a2c7 memcached.confd e4b6415c5501963d2ce421aab9d595736091bc895b8f3762e746593f7d736792 memcached.initd" sha512sums="1deaa899332b11923e180ba157f0cd3f7acb5471e50bf9807a82db07320461f394fd4f5f8b3767cdf671d5ef3d969676c312e36c0e7e7474a24d75dbe4004db1 memcached-1.4.18.tar.gz a1f6ece8e3b07509aadbd24c3420cb4400a47c6f046282243a6e295d041ff8f84ff2de86e657cb233199259cca63360e03b173a5abff0d67789eef91847be5eb CVE-2011-4971.patch 80c8719c254bc8b8d3d4256e9850c17f5e9ee9a76787b2d0fd7c6bb7780ee132257ff65d8397dc023216b3f541050295c4e1d7e675b12ab6dcc50d07c5e067b3 musl-includes.patch 31bd788433b8021ed332f86d291e7f03222ae234520e52ba673b581d5da2adf5656e8f73e8b985df73258dea9b2a1b8ef36195163fe47a92fda59825deedfed4 memcached.confd 65782982faaa8966ae0e1335ae367db1c65a94b5e218dfb1245e9d5e3b03ed42234c8023e6f6af13ba06bc6a5f25be5e34b4c84f4fd67805df280c94315c6a23 memcached.initd"