[arch-commits] Commit in redis/repos (8 files)

Antonio Rojas arojas at archlinux.org
Fri Dec 1 18:40:12 UTC 2017


    Date: Friday, December 1, 2017 @ 18:40:08
  Author: arojas
Revision: 271226

archrelease: copy trunk to community-testing-x86_64

Added:
  redis/repos/community-testing-x86_64/
  redis/repos/community-testing-x86_64/PKGBUILD
    (from rev 271225, redis/trunk/PKGBUILD)
  redis/repos/community-testing-x86_64/redis-2.8.11-use-system-jemalloc.patch
    (from rev 271225, redis/trunk/redis-2.8.11-use-system-jemalloc.patch)
  redis/repos/community-testing-x86_64/redis.conf-sane-defaults.patch
    (from rev 271225, redis/trunk/redis.conf-sane-defaults.patch)
  redis/repos/community-testing-x86_64/redis.logrotate
    (from rev 271225, redis/trunk/redis.logrotate)
  redis/repos/community-testing-x86_64/redis.service
    (from rev 271225, redis/trunk/redis.service)
  redis/repos/community-testing-x86_64/redis.sysusers
    (from rev 271225, redis/trunk/redis.sysusers)
  redis/repos/community-testing-x86_64/redis.tmpfiles
    (from rev 271225, redis/trunk/redis.tmpfiles)

----------------------------------------+
 PKGBUILD                               |   55 +++++++++++++++++++++++++++++++
 redis-2.8.11-use-system-jemalloc.patch |   15 ++++++++
 redis.conf-sane-defaults.patch         |   12 ++++++
 redis.logrotate                        |    5 ++
 redis.service                          |   22 ++++++++++++
 redis.sysusers                         |    1 
 redis.tmpfiles                         |    1 
 7 files changed, 111 insertions(+)

Copied: redis/repos/community-testing-x86_64/PKGBUILD (from rev 271225, redis/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2017-12-01 18:40:08 UTC (rev 271226)
@@ -0,0 +1,55 @@
+# $Id$
+# Maintainer:  Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Maintainer:  Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+# Contributor: Jan-Erik Rediger <badboy at archlinux dot us>
+# Contributor: nofxx <x@<nick>.com>
+
+pkgname=redis
+pkgver=4.0.4
+pkgrel=1
+pkgdesc='Advanced key-value store'
+arch=('x86_64')
+url='http://redis.io/'
+license=('BSD')
+depends=('jemalloc' 'grep' 'shadow')
+backup=('etc/redis.conf'
+        'etc/logrotate.d/redis')
+source=(http://download.redis.io/releases/redis-$pkgver.tar.gz
+        redis.service redis.sysusers redis.tmpfiles
+        redis.logrotate
+        redis.conf-sane-defaults.patch
+        redis-2.8.11-use-system-jemalloc.patch)
+sha256sums=('35768145335e874b1b810e23494ad3daa6f442c3dc1d7e3784992ba50799c0cd'
+            'cceff2a097d9041a0c73caeb5c33e849af783c6a12db866f24b8417ac3ac9d11'
+            '78f6ab83408956a9afaf28689128f382545c901f172cd5b670724c73f6896d5d'
+            '09dcc8522899dc3d1e9362989aa4acb5a3996d700b9a44f22ebb5b9667b88183'
+            '8b4c2caabb4f54157ad91ca472423112b1803685ad18ed11b60463d78494df13'
+            '22cd3b9f7e9b17647a615d009b50603e7978b0af26c3e2c53560e57573b996ed'
+            '9720468ede366893c32f34616c6d8670e790309757ae0abc0f49402089a7a672')
+
+prepare() {
+  cd $pkgname-$pkgver
+  patch -p1 -i ../redis.conf-sane-defaults.patch
+  patch -p1 -i ../redis-2.8.11-use-system-jemalloc.patch
+}
+
+build() {
+  make -C $pkgname-$pkgver
+}
+
+package() {
+  cd $pkgname-$pkgver
+  make PREFIX="$pkgdir"/usr install
+
+  install -Dm644 COPYING "$pkgdir"/usr/share/licenses/redis/LICENSE
+  install -Dm644 redis.conf "$pkgdir"/etc/redis.conf
+  install -Dm644 ../redis.service "$pkgdir"/usr/lib/systemd/system/redis.service
+
+  # files kept for compatibility with installations made before 2.8.13-2
+  install -Dm644 ../redis.logrotate "$pkgdir"/etc/logrotate.d/redis
+
+  ln -sf redis-server "$pkgdir"/usr/bin/redis-sentinel
+
+  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-2.8.11-use-system-jemalloc.patch (from rev 271225, redis/trunk/redis-2.8.11-use-system-jemalloc.patch)
===================================================================
--- community-testing-x86_64/redis-2.8.11-use-system-jemalloc.patch	                        (rev 0)
+++ community-testing-x86_64/redis-2.8.11-use-system-jemalloc.patch	2017-12-01 18:40:08 UTC (rev 271226)
@@ -0,0 +1,15 @@
+Index: redis-2.8.11/src/Makefile
+===================================================================
+--- redis-2.8.11.orig/src/Makefile
++++ redis-2.8.11/src/Makefile
+@@ -84,8 +84,8 @@ endif
+ 
+ ifeq ($(MALLOC),jemalloc)
+ 	DEPENDENCY_TARGETS+= jemalloc
+-	FINAL_CFLAGS+= -DUSE_JEMALLOC -I../deps/jemalloc/include
+-	FINAL_LIBS+= ../deps/jemalloc/lib/libjemalloc.a
++	FINAL_CFLAGS+= -DUSE_JEMALLOC -DJEMALLOC_NO_DEMANGLE -I/usr/include/jemalloc
++	FINAL_LIBS+= -ljemalloc
+ endif
+ 
+ REDIS_CC=$(QUIET_CC)$(CC) $(FINAL_CFLAGS)

Copied: redis/repos/community-testing-x86_64/redis.conf-sane-defaults.patch (from rev 271225, 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	2017-12-01 18:40:08 UTC (rev 271226)
@@ -0,0 +1,12 @@
+diff -wbBur redis-3.2.1/redis.conf redis-3.2.1.my/redis.conf
+--- redis-3.2.1/redis.conf	2016-06-17 16:15:21.000000000 +0300
++++ redis-3.2.1.my/redis.conf	2016-06-22 18:06:23.687046141 +0300
+@@ -244,7 +244,7 @@
+ # 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.logrotate (from rev 271225, redis/trunk/redis.logrotate)
===================================================================
--- community-testing-x86_64/redis.logrotate	                        (rev 0)
+++ community-testing-x86_64/redis.logrotate	2017-12-01 18:40:08 UTC (rev 271226)
@@ -0,0 +1,5 @@
+/var/log/redis.log {
+   notifempty
+   copytruncate
+   missingok
+}

Copied: redis/repos/community-testing-x86_64/redis.service (from rev 271225, redis/trunk/redis.service)
===================================================================
--- community-testing-x86_64/redis.service	                        (rev 0)
+++ community-testing-x86_64/redis.service	2017-12-01 18:40:08 UTC (rev 271226)
@@ -0,0 +1,22 @@
+[Unit]
+Description=Advanced key-value store
+After=network.target
+
+[Service]
+Type=simple
+User=redis
+Group=redis
+ExecStart=/usr/bin/redis-server /etc/redis.conf
+ExecStop=/usr/bin/redis-cli shutdown
+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 271225, redis/trunk/redis.sysusers)
===================================================================
--- community-testing-x86_64/redis.sysusers	                        (rev 0)
+++ community-testing-x86_64/redis.sysusers	2017-12-01 18:40:08 UTC (rev 271226)
@@ -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 271225, redis/trunk/redis.tmpfiles)
===================================================================
--- community-testing-x86_64/redis.tmpfiles	                        (rev 0)
+++ community-testing-x86_64/redis.tmpfiles	2017-12-01 18:40:08 UTC (rev 271226)
@@ -0,0 +1 @@
+d /var/lib/redis 0700 redis redis



More information about the arch-commits mailing list