diff options
author | Ruben Schuller <code@rbn.im> | 2022-12-11 00:22:31 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-12-31 09:14:35 +0700 |
commit | 1a40b92cb43f31b42ed5963e83e4a8495ac734c6 (patch) | |
tree | de64015c860d7639552faf05112bfc7fb2e698dd /network | |
parent | 5c326ace764173f803ab5186dda7fced659f13dc (diff) |
network/radicale: Add user/group to README, slackbuild.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network')
-rw-r--r-- | network/radicale/README | 6 | ||||
-rw-r--r-- | network/radicale/radicale.SlackBuild | 20 |
2 files changed, 26 insertions, 0 deletions
diff --git a/network/radicale/README b/network/radicale/README index be71661fe309..662b6b0f99b0 100644 --- a/network/radicale/README +++ b/network/radicale/README @@ -5,3 +5,9 @@ distant accessess for reading, creating, modifying and deleting multiple calendars through a simplified CalDAV protocol. Data can be encrypted by SSL, and their access can be restricted thanks to different authentication methods. + +You need a "radicale" user and group prior to building radicale. +Something like this will suffice for most systems: + + groupadd -g 375 radicale + useradd -u 375 -d /var/lib/radicale -s /bin/false -g radicale radicale diff --git a/network/radicale/radicale.SlackBuild b/network/radicale/radicale.SlackBuild index 6d9782e97159..a08dc21dfe65 100644 --- a/network/radicale/radicale.SlackBuild +++ b/network/radicale/radicale.SlackBuild @@ -50,6 +50,9 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} +RADICALE_GID=${RADICALE_GID:-375} +RADICALE_UID=${RADICALE_UID:-375} + if [ "$ARCH" = "i586" ]; then SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" @@ -66,6 +69,23 @@ fi set -e +if ! getent passwd radicale 1>/dev/null 2>/dev/null; then +cat << EOF + You must have a radicale user to run this script + + # groupadd -g $RADICALE_GID radicale + # useradd -u $RADICALE_UID -d /var/lib/$PRGNAM -s /bin/false -g radicale radicale +EOF + exit 1 +elif ! getent group radicale 1>/dev/null 2>/dev/null; then +cat << EOF + You must have a radicale group to run this script + + # groupadd -g $RADICALE_GID radicale +EOF + exit 1 +fi + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP |