2018-07-14 13:02:53 +00:00
|
|
|
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
|
|
|
|
# Contributor: Dan McGee <dan@archlinux.org>
|
|
|
|
# Contributor: Michael Irwin <6d6469@gmail.com>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - remove depend on libseccomp, don't configure with --enable-seccomp; problematic on ARM
|
|
|
|
|
|
|
|
pkgname=memcached
|
2019-05-26 20:13:09 +00:00
|
|
|
pkgver=1.5.14
|
2019-08-10 01:28:13 +00:00
|
|
|
pkgrel=2
|
2018-07-14 13:02:53 +00:00
|
|
|
pkgdesc='Distributed memory object caching system'
|
|
|
|
url='https://memcached.org/'
|
|
|
|
arch=('x86_64')
|
|
|
|
license=('GPL')
|
|
|
|
depends=('libevent')
|
|
|
|
optdepends=('perl: for memcached-tool usage')
|
|
|
|
source=(https://www.memcached.org/files/${pkgname}-${pkgver}.tar.gz
|
2019-01-04 00:33:17 +00:00
|
|
|
memcached.service.patch
|
2018-07-14 13:02:53 +00:00
|
|
|
memcached.tmpfiles
|
|
|
|
memcached.sysusers)
|
2019-05-26 20:13:09 +00:00
|
|
|
sha256sums=('9c5bdf29a780fb6c6f7c9eaaeeda0583efdf663193758c3e316c969a510af2a9'
|
2019-01-11 00:46:26 +00:00
|
|
|
'40f81304f13d12c18986aa45f66ab65ac9886ff3e81548303a02295cce857296'
|
2018-07-14 13:02:53 +00:00
|
|
|
'c4d0ae2218b99a276ff6e0084ae81e66add0ca9347e4bde70e9172db6e44002a'
|
|
|
|
'228c4f536f3c9f9eee4e11226ec8846a22d4ba46c2d3bf2811413efcc322609a')
|
2019-05-26 20:13:09 +00:00
|
|
|
sha512sums=('d06083d971d0a40195b4dfb252a3bf7c3a0d20b2dcad56726ff9e0b87ba84024309300516dad40181f1b7af4d9c4f35924383977c5e1ff9b5f13d2ef05f684ed'
|
2019-01-11 00:46:26 +00:00
|
|
|
'dd21f49062054c601469f9abc9ee39a0f06c604e8805e7bc9bf2cfa65429962f93e7ac67764257c578fc15b1e75394956f350162c99b084c76a6e14d9331f31f'
|
2018-07-14 13:02:53 +00:00
|
|
|
'960705ff74d25afed477e0b2a5872a3a4fb49ed3105a351f0d0224abc947778f9dbda81e80be94ab636da4a8411a9dd56a8fd4513e5b86a3096a14fa67f1548b'
|
|
|
|
'e6ddcab9a6fee024072b6363ef60aa176ed258369bf3a17d475f19b1f410ffd6195b9c5737dc5b1371e8974b44bdbdaa109927acaeb54fb40302a5d67d7c13a8')
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd ${pkgname}-${pkgver}
|
2019-01-04 00:33:17 +00:00
|
|
|
patch -Np1 < ../memcached.service.patch
|
|
|
|
sed -e 's/^##safer##//g' -i scripts/*.service
|
2018-07-14 13:02:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
./configure \
|
|
|
|
--prefix=/usr
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
make test
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
make DESTDIR="${pkgdir}" install
|
2019-01-04 00:33:17 +00:00
|
|
|
|
2018-07-14 13:02:53 +00:00
|
|
|
install -Dm 755 scripts/memcached-tool -t "${pkgdir}/usr/bin"
|
2019-01-04 00:33:17 +00:00
|
|
|
install -Dm 644 scripts/memcached-tool.1 -t "${pkgdir}/usr/share/man/man1"
|
|
|
|
|
|
|
|
install -Dm 644 scripts/*.service -t "${pkgdir}/usr/lib/systemd/system"
|
2018-07-14 13:02:53 +00:00
|
|
|
install -Dm 644 ../memcached.tmpfiles "${pkgdir}/usr/lib/tmpfiles.d/memcached.conf"
|
|
|
|
install -Dm 644 ../memcached.sysusers "${pkgdir}/usr/lib/sysusers.d/memcached.conf"
|
|
|
|
}
|
|
|
|
|
|
|
|
# vim: ts=2 sw=2 et:
|