[arch-commits] Commit in redis/repos (9 files)
Frederik Schwan
freswa at archlinux.org
Thu Mar 11 19:17:34 UTC 2021
Date: Thursday, March 11, 2021 @ 19:17:34
Author: freswa
Revision: 887567
archrelease: copy trunk to community-testing-x86_64
Added:
redis/repos/community-testing-x86_64/
redis/repos/community-testing-x86_64/PKGBUILD
(from rev 887566, redis/trunk/PKGBUILD)
redis/repos/community-testing-x86_64/redis-5.0-use-system-jemalloc.patch
(from rev 887566, redis/trunk/redis-5.0-use-system-jemalloc.patch)
redis/repos/community-testing-x86_64/redis-sentinel.service
(from rev 887566, redis/trunk/redis-sentinel.service)
redis/repos/community-testing-x86_64/redis.conf-sane-defaults.patch
(from rev 887566, redis/trunk/redis.conf-sane-defaults.patch)
redis/repos/community-testing-x86_64/redis.install
(from rev 887566, redis/trunk/redis.install)
redis/repos/community-testing-x86_64/redis.service
(from rev 887566, redis/trunk/redis.service)
redis/repos/community-testing-x86_64/redis.sysusers
(from rev 887566, redis/trunk/redis.sysusers)
redis/repos/community-testing-x86_64/redis.tmpfiles
(from rev 887566, redis/trunk/redis.tmpfiles)
-------------------------------------+
PKGBUILD | 57 ++++++++++++++++++++++++++++++++++
redis-5.0-use-system-jemalloc.patch | 15 ++++++++
redis-sentinel.service | 24 ++++++++++++++
redis.conf-sane-defaults.patch | 22 +++++++++++++
redis.install | 5 ++
redis.service | 23 +++++++++++++
redis.sysusers | 1
redis.tmpfiles | 3 +
8 files changed, 150 insertions(+)
Copied: redis/repos/community-testing-x86_64/PKGBUILD (from rev 887566, redis/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2021-03-11 19:17:34 UTC (rev 887567)
@@ -0,0 +1,57 @@
+# Maintainer: Andrew Crerar <crerar at archlinux.org>
+# Maintainer: Frederik Schwan <freswa at archlinux dot org>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+# Contributor: Jan-Erik Rediger <badboy at archlinux dot us>
+# Contributor: nofxx <x@<nick>.com>
+
+pkgname=redis
+pkgver=6.2.1
+pkgrel=2
+pkgdesc='An in-memory database that persists on disk'
+arch=('x86_64')
+url='https://redis.io/'
+license=('BSD')
+depends=('jemalloc' 'grep' 'shadow' 'systemd-libs')
+# pkg-config fails to detect systemd libraries if systemd is not installed
+makedepends=('systemd' 'openssl')
+backup=('etc/redis/redis.conf'
+ 'etc/redis/sentinel.conf')
+install=redis.install
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/redis/redis/archive/${pkgver}.tar.gz"
+ redis.service
+ redis-sentinel.service
+ redis.sysusers
+ redis.tmpfiles
+ redis.conf-sane-defaults.patch
+ redis-5.0-use-system-jemalloc.patch)
+sha512sums=('79108a10911698aef64412792574e75d8b5e41fa45e7631a9cd39bc704d2fce8648a494f25868c4cf6775afa8b56287a21cafbaee8c306803a2ddcb2b355ff7e'
+ '749c5eecfd6cd2ed949302672c20a7972dbef3a4b971ed569eb064362d7f20434b5c39077f665e178394158b5200375bc2e56614682fa08dbf99e868a9b75783'
+ '2314c26920f5f0989fb98622f594b621a0b5035525146263da3fdfe640257118e03fc1903c15a62bcd4fbf260e0dcbf9249088292323739a607a11c9630795bf'
+ '2227dfb41bf5112f91716f011862ba5fade220aea3b6a8134a5a05ee3af6d1cca05b08d793a486be97df98780bf43ac5dc4e5e9989ae0c5cd4e1eedb6cee5d71'
+ '6a817024df70213205159de8350c684684d7dbda568c35a0a3d654bab0b91ec62d60b1a2aac6e1ffbe24040df4033b37a77361357834c572759f2d3c76d16ac0'
+ '9c43c858270d72cf5251d8226b0113f83c1749ad39b8ba286b7f90f05ad666d62ae7e17dc41a2d0a7bec833d65c98c7a3f12a30a93a28f0b1ab1c5a9e9a04a73'
+ '0acb08a6e0eaba239db7461bcfeddfbe0c1aaa517dc33c3918c9e991a1d5067cfe135b7f75085caade8c3ababd51ec9cefcc4120f57818bea1f7029a548a7732')
+
+prepare() {
+ cd $pkgname-$pkgver
+ patch -Np1 < ../redis.conf-sane-defaults.patch
+ patch -Np1 < ../redis-5.0-use-system-jemalloc.patch
+}
+
+build() {
+ make BUILD_TLS=yes \
+ USE_SYSTEMD=yes \
+ -C $pkgname-$pkgver
+}
+
+package() {
+ cd $pkgname-$pkgver
+ make PREFIX="$pkgdir"/usr install
+
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/redis/LICENSE
+ install -Dm644 -t "$pkgdir"/etc/redis redis.conf sentinel.conf
+ install -Dm644 -t "$pkgdir"/usr/lib/systemd/system/ ../redis.service ../redis-sentinel.service
+ install -Dm644 "$srcdir"/redis.sysusers "$pkgdir"/usr/lib/sysusers.d/redis.conf
+ install -Dm644 "$srcdir"/redis.tmpfiles "$pkgdir"/usr/lib/tmpfiles.d/redis.conf
+}
Copied: redis/repos/community-testing-x86_64/redis-5.0-use-system-jemalloc.patch (from rev 887566, redis/trunk/redis-5.0-use-system-jemalloc.patch)
===================================================================
--- community-testing-x86_64/redis-5.0-use-system-jemalloc.patch (rev 0)
+++ community-testing-x86_64/redis-5.0-use-system-jemalloc.patch 2021-03-11 19:17:34 UTC (rev 887567)
@@ -0,0 +1,15 @@
+diff --git a/src/Makefile b/src/Makefile
+index 3bc9f11c0..a4b23d986 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -229,8 +229,8 @@ endif
+
+ ifeq ($(MALLOC),jemalloc)
+ DEPENDENCY_TARGETS+= jemalloc
+- FINAL_CFLAGS+= -DUSE_JEMALLOC -I../deps/jemalloc/include
+- FINAL_LIBS := ../deps/jemalloc/lib/libjemalloc.a $(FINAL_LIBS)
++ FINAL_CFLAGS+= -DUSE_JEMALLOC -DJEMALLOC_NO_DEMANGLE -I/usr/include/jemalloc
++ FINAL_LIBS := -ljemalloc $(FINAL_LIBS)
+ endif
+
+ ifeq ($(BUILD_TLS),yes)
Copied: redis/repos/community-testing-x86_64/redis-sentinel.service (from rev 887566, redis/trunk/redis-sentinel.service)
===================================================================
--- community-testing-x86_64/redis-sentinel.service (rev 0)
+++ community-testing-x86_64/redis-sentinel.service 2021-03-11 19:17:34 UTC (rev 887567)
@@ -0,0 +1,24 @@
+[Unit]
+Description=High availability daemon for Redis
+After=network.target
+
+[Service]
+Type=notify
+User=redis
+Group=redis
+ExecStart=/usr/bin/redis-sentinel /etc/redis/sentinel.conf --supervised systemd
+TimeoutStartSec=60
+TimeoutStopSec=60
+CapabilityBoundingSet=
+PrivateTmp=true
+PrivateDevices=true
+ProtectSystem=full
+ProtectHome=true
+ReadWritePaths=/etc/redis/
+NoNewPrivileges=true
+RuntimeDirectory=redis
+RuntimeDirectoryMode=755
+LimitNOFILE=10032
+
+[Install]
+WantedBy=multi-user.target
Copied: redis/repos/community-testing-x86_64/redis.conf-sane-defaults.patch (from rev 887566, redis/trunk/redis.conf-sane-defaults.patch)
===================================================================
--- community-testing-x86_64/redis.conf-sane-defaults.patch (rev 0)
+++ community-testing-x86_64/redis.conf-sane-defaults.patch 2021-03-11 19:17:34 UTC (rev 887567)
@@ -0,0 +1,22 @@
+diff --git a/redis.conf b/redis.conf
+index 465d56fc0..9c1bd1ed1 100644
+--- a/redis.conf
++++ b/redis.conf
+@@ -262,7 +262,7 @@ daemonize no
+ # The default is "no". To run under upstart/systemd, you can simply uncomment
+ # the line below:
+ #
+-# supervised auto
++supervised systemd
+
+ # If a pid file is specified, Redis writes it where specified at startup
+ # and removes it at exit.
+@@ -441,7 +441,7 @@ rdb-del-sync-files no
+ # The Append Only File will also be created inside this directory.
+ #
+ # Note that you must specify a directory here, not a file name.
+-dir ./
++dir /var/lib/redis/
+
+ ################################# REPLICATION #################################
+
Copied: redis/repos/community-testing-x86_64/redis.install (from rev 887566, redis/trunk/redis.install)
===================================================================
--- community-testing-x86_64/redis.install (rev 0)
+++ community-testing-x86_64/redis.install 2021-03-11 19:17:34 UTC (rev 887567)
@@ -0,0 +1,5 @@
+post_upgrade() {
+ echo ""
+ echo "Note: The redis config has been moved from /etc/redis.conf to /etc/redis/redis.conf"
+ echo ""
+}
Copied: redis/repos/community-testing-x86_64/redis.service (from rev 887566, redis/trunk/redis.service)
===================================================================
--- community-testing-x86_64/redis.service (rev 0)
+++ community-testing-x86_64/redis.service 2021-03-11 19:17:34 UTC (rev 887567)
@@ -0,0 +1,23 @@
+[Unit]
+Description=Advanced key-value store
+After=network.target
+
+[Service]
+Type=notify
+User=redis
+Group=redis
+ExecStart=/usr/bin/redis-server /etc/redis/redis.conf
+TimeoutStartSec=60
+TimeoutStopSec=60
+CapabilityBoundingSet=
+PrivateTmp=true
+PrivateDevices=true
+ProtectSystem=full
+ProtectHome=true
+NoNewPrivileges=true
+RuntimeDirectory=redis
+RuntimeDirectoryMode=755
+LimitNOFILE=10032
+
+[Install]
+WantedBy=multi-user.target
Copied: redis/repos/community-testing-x86_64/redis.sysusers (from rev 887566, redis/trunk/redis.sysusers)
===================================================================
--- community-testing-x86_64/redis.sysusers (rev 0)
+++ community-testing-x86_64/redis.sysusers 2021-03-11 19:17:34 UTC (rev 887567)
@@ -0,0 +1 @@
+u redis - "Redis in-memory data structure store" /var/lib/redis
Copied: redis/repos/community-testing-x86_64/redis.tmpfiles (from rev 887566, redis/trunk/redis.tmpfiles)
===================================================================
--- community-testing-x86_64/redis.tmpfiles (rev 0)
+++ community-testing-x86_64/redis.tmpfiles 2021-03-11 19:17:34 UTC (rev 887567)
@@ -0,0 +1,3 @@
+d /var/lib/redis 0700 redis redis
+d /etc/redis 0775 root redis
+f /etc/redis/sentinel.conf 0664 root redis
More information about the arch-commits
mailing list