# Contributor: Jeff Bilyk # Maintainer: Natanael Copa pkgname=memcached pkgver=1.4.34 pkgrel=1 pkgdesc="Distributed memory object caching system" url="http://memcached.org" arch="all" license="BSD" depends= 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 $pkgname.confd $pkgname.initd" builddir="$srcdir/$pkgname-$pkgver" # secfixes: # 1.4.33-r0: # - CVE-2016-8704 # - CVE-2016-8705 # - CVE-2016-8706 prepare() { cd $builddir default_prepare || return 1 } 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="040887d52dfcc88b2e8918b4bfd91bf5 memcached-1.4.34.tar.gz a7aa37e91d4237448124b79bd99a2649 memcached.confd 220c0331832edcef6a72601143d3172d memcached.initd" sha256sums="5064c87f91a37d822dfeab8768490c55fe686a742f07f67c7121101e48d87c79 memcached-1.4.34.tar.gz c8f03585eeeb0e0acf4e8bb3c0f7062c2c7da5f89e763cf91a856bec4991a2c7 memcached.confd da8a0e9a580d2df053941f01ce430aa5b678270891b481c710758b81fb4d831c memcached.initd" sha512sums="e91aa784674501313cd7464bad22f1898b998c836492a52efe68d097a01249a4fffd3b23b79af86957dd3dc11794f2bff476a4891b9cfa172ff9c29dfb50789f memcached-1.4.34.tar.gz 31bd788433b8021ed332f86d291e7f03222ae234520e52ba673b581d5da2adf5656e8f73e8b985df73258dea9b2a1b8ef36195163fe47a92fda59825deedfed4 memcached.confd 9615769b14175a25b50c9871b48c0635b5397ebe45231b43ee29a603eceb7b16bfc5ac744017b89b19082209c09597b3038a03ed0d5d9b45c60454d5b2717a55 memcached.initd"