69 lines
2.3 KiB
Bash
69 lines
2.3 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgname=memcached
|
|
pkgver=1.6.21
|
|
pkgrel=01
|
|
pkgdesc='Distributed memory object caching system w/o systemd'
|
|
url='https://memcached.org/'
|
|
depends=('glibc' 'libevent' 'libseccomp' 'libseccomp.so')
|
|
optdepends=('perl: for memcached-tool usage')
|
|
source=(https://www.memcached.org/files/${pkgname}-${pkgver}.tar.gz
|
|
memcached.sysusers
|
|
memcached.tmpfiles
|
|
0001-tests-enable-drop_privileges-by-default-for-better-s.patch
|
|
0002-seccomp-extend-syscalls-tested-on-Linux-6.1-with-gli.patch)
|
|
|
|
prepare() {
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
patch -Np1 < ../0001-tests-enable-drop_privileges-by-default-for-better-s.patch
|
|
patch -Np1 < ../0002-seccomp-extend-syscalls-tested-on-Linux-6.1-with-gli.patch
|
|
# patch -Np1 < ../memcached.service.patch
|
|
# sed -e 's/^##safer##//g' -i scripts/*.service
|
|
|
|
}
|
|
|
|
|
|
build() {
|
|
cd ${pkgname}-${pkgver}
|
|
./configure \
|
|
--prefix=/usr \
|
|
--enable-seccomp
|
|
make
|
|
}
|
|
|
|
#check() {
|
|
# cd ${pkgname}-${pkgver}
|
|
# make test
|
|
#}
|
|
|
|
package() {
|
|
cd ${pkgname}-${pkgver}
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
install -Dm 755 scripts/memcached-tool -t "${pkgdir}/usr/bin"
|
|
install -Dm 644 scripts/memcached-tool.1 -t "${pkgdir}/usr/share/man/man1"
|
|
|
|
install -Dm 644 ../memcached.tmpfiles "${pkgdir}/usr/lib/tmpfiles.d/memcached.conf"
|
|
install -Dm 644 ../memcached.sysusers "${pkgdir}/usr/lib/sysusers.d/memcached.conf"
|
|
}
|
|
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=('GPL')
|
|
|
|
sha256sums=(c788980efc417dd5d93c442b1c8b8769fb2018896c29de3887d22a2f143da2ee # memcached-1.6.21.tar.gz
|
|
228c4f536f3c9f9eee4e11226ec8846a22d4ba46c2d3bf2811413efcc322609a # memcached.sysusers
|
|
c4d0ae2218b99a276ff6e0084ae81e66add0ca9347e4bde70e9172db6e44002a # memcached.tmpfiles
|
|
7bfe200e3bb1435e9f0bf73c2aa6a643cf11aa9d90e8ea127cff21a711e4ecb0 # 0001-tests-enable-drop_privileges-by-default-for-better-s.patch
|
|
027a83492f8fa0d5a2a99c0826d8d29547898e137a8330e8c4ca51502b8ada1a) # 0002-seccomp-extend-syscalls-tested-on-Linux-6.1-with-gli.patch
|
|
|
|
## cd2ae6751aeb7d165c545cf1e62e0eb6f9edc477cb31ccbddb118669c25e65d4 memcached-1.6.21-01-x86_64.pkg.tar.lz
|