diff options
author | Richard Narron <richard@aaazen.com> | 2016-07-25 04:29:15 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-07-25 04:29:15 +0700 |
commit | 71b23c94493a54698f6785f0a2e4093cc1f4cd08 (patch) | |
tree | 7a62fca54529b548d0f973ce12124935fb358930 /system/fcron/fcron.SlackBuild | |
parent | bb59acab43076c6cc1081523643de18a81cee637 (diff) | |
download | slackbuilds-71b23c94493a54698f6785f0a2e4093cc1f4cd08.tar.gz |
system/fcron: Updated for version 3.2.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
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 |