1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00

- rc.d stlye and comments

- update to 3.23
This commit is contained in:
Dirk Meyer 2010-08-07 07:32:41 +00:00
parent c000c852c3
commit 27c6da3b2b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=258862
3 changed files with 11 additions and 9 deletions

View File

@ -6,7 +6,7 @@
#
PORTNAME= iroffer
PORTVERSION= 3.22
PORTVERSION= 3.23
CATEGORIES= irc
MASTER_SITES= http://iroffer.dinoex.net/
PKGNAMESUFFIX= -dinoex${PKGNAMESUFFIX2}

View File

@ -1,3 +1,3 @@
MD5 (iroffer-dinoex-3.22.tar.gz) = ddcc01476a82ef5d0fcbdd7cab18ff03
SHA256 (iroffer-dinoex-3.22.tar.gz) = 4a2b206d5b52f3b91077d3c46fbaa4c7120cc281f7d08ee9543022498b8bee70
SIZE (iroffer-dinoex-3.22.tar.gz) = 409557
MD5 (iroffer-dinoex-3.23.tar.gz) = 8fe8dab724e13b04bafb59ff0540c96d
SHA256 (iroffer-dinoex-3.23.tar.gz) = 066a25bd83a5b7b939d82afbd74a8284c94eaffbb265b24c8fa7c8d92bc7f640
SIZE (iroffer-dinoex-3.23.tar.gz) = 416958

View File

@ -10,11 +10,15 @@
#
# iroffer_enable="YES"
# iroffer_flags="<set as needed>"
# iroffer_user="<set to username>"
# iroffer_bin="<change for language specific version>"
# iroffer_dir="<chdir to this>"
# iroffer_config="<name of the config file>"
#
# See iroffer(1) for iroffer_flags
#
. "/etc/rc.subr"
. /etc/rc.subr
name="iroffer"
rcvar=`set_rcvar`
@ -24,7 +28,6 @@ load_rc_config "$name"
: ${iroffer_enable="NO"}
: ${iroffer_user="bot"}
: ${iroffer_bin="iroffer"}
: ${iroffer_flags=""}
: ${iroffer_dir="/home/bot/iroffer/"}
: ${iroffer_config="${iroffer_dir}mybot.config"}
@ -34,7 +37,7 @@ restart_precmd="iroffer_checkdisk"
iroffer_checkdisk()
{
cd "${iroffer_dir}"
if [ "${iroffer_dir}" != "" ]; then
if [ -n "${iroffer_dir}" ]; then
freespace=`df -k . | tail -1 | awk {'print $4'}`
if [ "${freespace}" -lt 10 ]; then
echo "Filesystem Full!" >&2
@ -45,8 +48,7 @@ iroffer_checkdisk()
required_files="${iroffer_config}"
command="${iroffer_dir}/${iroffer_bin}"
command_args=""
if [ "${iroffer_dir}" != "" ]; then
if [ -n "${iroffer_dir}" ]; then
command_args="${command_args} -w ${iroffer_dir}"
fi
command_args="${command_args} -u ${iroffer_user}"