diff options
Diffstat (limited to 'network/radicale/radicale.SlackBuild')
-rw-r--r-- | network/radicale/radicale.SlackBuild | 20 |
1 files changed, 20 insertions, 0 deletions
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 |