mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
- rc.d stlye and comments
- update to 3.23
This commit is contained in:
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
|
@ -6,7 +6,7 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
PORTNAME= iroffer
|
PORTNAME= iroffer
|
||||||
PORTVERSION= 3.22
|
PORTVERSION= 3.23
|
||||||
CATEGORIES= irc
|
CATEGORIES= irc
|
||||||
MASTER_SITES= http://iroffer.dinoex.net/
|
MASTER_SITES= http://iroffer.dinoex.net/
|
||||||
PKGNAMESUFFIX= -dinoex${PKGNAMESUFFIX2}
|
PKGNAMESUFFIX= -dinoex${PKGNAMESUFFIX2}
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
MD5 (iroffer-dinoex-3.22.tar.gz) = ddcc01476a82ef5d0fcbdd7cab18ff03
|
MD5 (iroffer-dinoex-3.23.tar.gz) = 8fe8dab724e13b04bafb59ff0540c96d
|
||||||
SHA256 (iroffer-dinoex-3.22.tar.gz) = 4a2b206d5b52f3b91077d3c46fbaa4c7120cc281f7d08ee9543022498b8bee70
|
SHA256 (iroffer-dinoex-3.23.tar.gz) = 066a25bd83a5b7b939d82afbd74a8284c94eaffbb265b24c8fa7c8d92bc7f640
|
||||||
SIZE (iroffer-dinoex-3.22.tar.gz) = 409557
|
SIZE (iroffer-dinoex-3.23.tar.gz) = 416958
|
||||||
|
|
|
@ -10,11 +10,15 @@
|
||||||
#
|
#
|
||||||
# iroffer_enable="YES"
|
# iroffer_enable="YES"
|
||||||
# iroffer_flags="<set as needed>"
|
# 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
|
# See iroffer(1) for iroffer_flags
|
||||||
#
|
#
|
||||||
|
|
||||||
. "/etc/rc.subr"
|
. /etc/rc.subr
|
||||||
|
|
||||||
name="iroffer"
|
name="iroffer"
|
||||||
rcvar=`set_rcvar`
|
rcvar=`set_rcvar`
|
||||||
|
@ -24,7 +28,6 @@ load_rc_config "$name"
|
||||||
: ${iroffer_enable="NO"}
|
: ${iroffer_enable="NO"}
|
||||||
: ${iroffer_user="bot"}
|
: ${iroffer_user="bot"}
|
||||||
: ${iroffer_bin="iroffer"}
|
: ${iroffer_bin="iroffer"}
|
||||||
: ${iroffer_flags=""}
|
|
||||||
: ${iroffer_dir="/home/bot/iroffer/"}
|
: ${iroffer_dir="/home/bot/iroffer/"}
|
||||||
: ${iroffer_config="${iroffer_dir}mybot.config"}
|
: ${iroffer_config="${iroffer_dir}mybot.config"}
|
||||||
|
|
||||||
|
@ -34,7 +37,7 @@ restart_precmd="iroffer_checkdisk"
|
||||||
iroffer_checkdisk()
|
iroffer_checkdisk()
|
||||||
{
|
{
|
||||||
cd "${iroffer_dir}"
|
cd "${iroffer_dir}"
|
||||||
if [ "${iroffer_dir}" != "" ]; then
|
if [ -n "${iroffer_dir}" ]; then
|
||||||
freespace=`df -k . | tail -1 | awk {'print $4'}`
|
freespace=`df -k . | tail -1 | awk {'print $4'}`
|
||||||
if [ "${freespace}" -lt 10 ]; then
|
if [ "${freespace}" -lt 10 ]; then
|
||||||
echo "Filesystem Full!" >&2
|
echo "Filesystem Full!" >&2
|
||||||
|
@ -45,8 +48,7 @@ iroffer_checkdisk()
|
||||||
|
|
||||||
required_files="${iroffer_config}"
|
required_files="${iroffer_config}"
|
||||||
command="${iroffer_dir}/${iroffer_bin}"
|
command="${iroffer_dir}/${iroffer_bin}"
|
||||||
command_args=""
|
if [ -n "${iroffer_dir}" ]; then
|
||||||
if [ "${iroffer_dir}" != "" ]; then
|
|
||||||
command_args="${command_args} -w ${iroffer_dir}"
|
command_args="${command_args} -w ${iroffer_dir}"
|
||||||
fi
|
fi
|
||||||
command_args="${command_args} -u ${iroffer_user}"
|
command_args="${command_args} -u ${iroffer_user}"
|
||||||
|
|
Loading…
Add table
Reference in a new issue