Commit bff0e03e authored by Noah Hilverling's avatar Noah Hilverling

Merge all packages into one icinga-redis package

parent a2e67570
Pipeline #7345 passed with stages
in 1 minute and 35 seconds
......@@ -18,49 +18,18 @@ Vcs-Browser: https://salsa.debian.org/lamby/pkg-redis
Rules-Requires-Root: no
Package: icinga-redis
Architecture: all
Depends:
icinga-redis-server (<< ${binary:Version}.1~),
icinga-redis-server (>= ${binary:Version}),
${misc:Depends},
Description: Persistent key-value database with network interface (metapackage)
Redis is a key-value database in a similar vein to memcache but the dataset
is non-volatile. Redis additionally provides native support for atomically
manipulating and querying data structures such as lists and sets.
.
The dataset is stored entirely in memory and periodically flushed to disk.
.
This package depends on the redis-server package.
Package: icinga-redis-server
Architecture: any
Pre-Depends: ${misc:Pre-Depends}
Depends:
adduser,
lsb-base (>= 3.2-14),
icinga-redis-tools (= ${binary:Version}),
${misc:Depends},
Description: Persistent key-value database with network interface
${shlibs:Depends},
Description: Persistent key-value database with network interface (metapackage)
Redis is a key-value database in a similar vein to memcache but the dataset
is non-volatile. Redis additionally provides native support for atomically
manipulating and querying data structures such as lists and sets.
.
The dataset is stored entirely in memory and periodically flushed to disk.
Package: icinga-redis-tools
Architecture: any
Depends:
adduser,
${misc:Depends},
${shlibs:Depends},
Suggests:
ruby-redis,
Replaces:
icinga-redis-server (<< 2:2.6.16-1),
Breaks:
icinga-redis-server (<< 2:2.6.16-1),
Description: Persistent key-value database with network interface (client)
Redis is a key-value database in a similar vein to memcache but the dataset
is non-volatile. Redis additionally provides native support for atomically
manipulating and querying data structures such as lists and sets.
.
This package contains the command line client and other tools.
This package depends on the redis-server package.
debian/icinga-redis-server.service /lib/systemd/system
redis.conf /etc/icinga-redis
#!/bin/sh
set -eu
USER="icinga-redis"
GROUP="$USER"
CONFFILE="/etc/icinga-redis/redis.conf"
if [ "$1" = "configure" ]
then
if ! dpkg-statoverride --list ${CONFFILE} >/dev/null 2>&1
then
dpkg-statoverride --update --add ${USER} ${GROUP} 640 ${CONFFILE}
fi
fi
#DEBHELPER#
if [ "$1" = "configure" ]
then
find /etc/icinga-redis -maxdepth 1 -type d -name 'icinga-redis-server.*.d' -empty -delete
fi
exit 0
#!/bin/sh
set -eu
if [ "${1}" = "purge" ]
then
userdel icinga-redis || true
rm -rf /var/lib/icinga-redis /var/log/icinga-redis
fi
#DEBHELPER#
exit 0
debian/bash_completion.d/* /usr/share/bash-completion/completions
debian/icinga-redis-server.service /lib/systemd/system
redis.conf /etc/icinga-redis
src/icinga-redis-benchmark /usr/bin
src/icinga-redis-check-aof /usr/bin
src/icinga-redis-check-rdb /usr/bin
......
debian/icinga-redis-server.1
debian/icinga-redis-benchmark.1
debian/icinga-redis-check-aof.1
debian/icinga-redis-check-rdb.1
debian/icinga-redis-cli.1
......@@ -3,6 +3,8 @@
set -eu
USER="icinga-redis"
GROUP="$USER"
CONFFILE="/etc/icinga-redis/redis.conf"
Setup_dir () {
DIR="${1}"
......@@ -40,6 +42,11 @@ then
Setup_dir /var/log/icinga-redis ${USER}:adm 2750
Setup_dir /var/lib/icinga-redis ${USER}:${USER} 750
if ! dpkg-statoverride --list ${CONFFILE} >/dev/null 2>&1
then
dpkg-statoverride --update --add ${USER} ${GROUP} 640 ${CONFFILE}
fi
fi
#DEBHELPER#
......
......@@ -7,6 +7,8 @@ CONFFILE="/etc/icinga-redis/redis.conf"
if [ "${1}" = "purge" ]
then
dpkg-statoverride --remove ${CONFFILE} || test $? -eq 2
userdel icinga-redis || true
rm -rf /var/lib/icinga-redis /var/log/icinga-redis
fi
#DEBHELPER#
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment