diff options
Diffstat (limited to 'system/fcron/fcron.SlackBuild')
-rw-r--r-- | system/fcron/fcron.SlackBuild | 33 |
1 files changed, 27 insertions, 6 deletions
diff --git a/system/fcron/fcron.SlackBuild b/system/fcron/fcron.SlackBuild index 965ad2583f..b4dd416245 100644 --- a/system/fcron/fcron.SlackBuild +++ b/system/fcron/fcron.SlackBuild @@ -2,27 +2,48 @@ # Slackware build script for fcron -# Written by Richard Narron (richard@aaazen.com) +# Copyright 2014, 2015, 2016 Richard Narron, California +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=fcron -VERSION=${VERSION:-3.2.0} -BUILD=${BUILD:-3} +VERSION=${VERSION:-3.2.1} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} # Select fcron's default user/group FCRON_USER=${FCRON_USER:-fcron} +FCRON_UID=${FCRON_UID:-289} FCRON_GROUP=${FCRON_GROUP:-fcron} +FCRON_GID=${FCRON_GID:-289} if ! getent group $FCRON_GROUP >/dev/null; then echo "Error, the group $FCRON_GROUP does not exist." - echo "Create the group like this:" - echo " groupadd -g 289 $FCRON_GROUP" + echo "Create the group and user like this:" + echo " groupadd -g $FCRON_GID $FCRON_GROUP" + echo " useradd -u $FCRON_UID -g $FCRON_GROUP -d /var/spool/fcron -M -s /bin/false $FCRON_USER" exit 1 fi if ! getent passwd $FCRON_USER >/dev/null; then echo "Error, the userid $FCRON_USER does not exist." echo "Create the user like this:" - echo " useradd -u 289 -g $FCRON_GROUP -d /var/spool/fcron -M -s /bin/false $FCRON_USER" + echo " useradd -u $FCRON_UID -g $FCRON_GROUP -d /var/spool/fcron -M -s /bin/false $FCRON_USER" exit 1 fi |