diff options
author | Dirk Meyer <dinoex@FreeBSD.org> | 2010-08-07 07:32:41 +0000 |
---|---|---|
committer | Dirk Meyer <dinoex@FreeBSD.org> | 2010-08-07 07:32:41 +0000 |
commit | 27c6da3b2bdc3fd6d480637e03f1a38bb9b6d3cf (patch) | |
tree | dc91fe3c82bd4981ad67e62712872427c0c3e40c /irc/iroffer-dinoex | |
parent | c000c852c3dea931af4a3a5fb75acb9ce6d1a4a1 (diff) | |
download | ports-27c6da3b2bdc3fd6d480637e03f1a38bb9b6d3cf.tar.gz ports-27c6da3b2bdc3fd6d480637e03f1a38bb9b6d3cf.zip |
- rc.d stlye and comments
- update to 3.23
Notes
Notes:
svn path=/head/; revision=258862
Diffstat (limited to 'irc/iroffer-dinoex')
-rw-r--r-- | irc/iroffer-dinoex/Makefile | 2 | ||||
-rw-r--r-- | irc/iroffer-dinoex/distinfo | 6 | ||||
-rw-r--r-- | irc/iroffer-dinoex/files/iroffer-dinoex.in | 12 |
3 files changed, 11 insertions, 9 deletions
diff --git a/irc/iroffer-dinoex/Makefile b/irc/iroffer-dinoex/Makefile index 89ec8f7ff7ec..d559dc58831a 100644 --- a/irc/iroffer-dinoex/Makefile +++ b/irc/iroffer-dinoex/Makefile @@ -6,7 +6,7 @@ # PORTNAME= iroffer -PORTVERSION= 3.22 +PORTVERSION= 3.23 CATEGORIES= irc MASTER_SITES= http://iroffer.dinoex.net/ PKGNAMESUFFIX= -dinoex${PKGNAMESUFFIX2} diff --git a/irc/iroffer-dinoex/distinfo b/irc/iroffer-dinoex/distinfo index 30e5570db33b..b1ebfcf5cc98 100644 --- a/irc/iroffer-dinoex/distinfo +++ b/irc/iroffer-dinoex/distinfo @@ -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 diff --git a/irc/iroffer-dinoex/files/iroffer-dinoex.in b/irc/iroffer-dinoex/files/iroffer-dinoex.in index f96a061e3fb1..c8abb47c40e9 100644 --- a/irc/iroffer-dinoex/files/iroffer-dinoex.in +++ b/irc/iroffer-dinoex/files/iroffer-dinoex.in @@ -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}" |