summaryrefslogtreecommitdiffstats
path: root/irc/ircd-hybrid/files
diff options
context:
space:
mode:
authorwg <wg@FreeBSD.org>2013-11-10 14:12:16 +0000
committerwg <wg@FreeBSD.org>2013-11-10 14:12:16 +0000
commite852ffc24ba10997a0c23aa191bf998fcebaa83c (patch)
tree730055aee6100056e9b49d3f09bd39cc27e33f75 /irc/ircd-hybrid/files
parent1666eb66e11928a1f041f7bfd1e099b98a2ab679 (diff)
downloadFreeBSD-ports-e852ffc24ba10997a0c23aa191bf998fcebaa83c.zip
FreeBSD-ports-e852ffc24ba10997a0c23aa191bf998fcebaa83c.tar.gz
irc/ircd-hybrid: update to 8.1.3
- Update to 8.1.3 [1] - Convert to options ng [1] - USES gmake - Remove leading article from COMMENT - Use options helpers - Allow staging PR: ports/180201 [1] Submitted by: Nick Hilliard <nick foobar.org> Approved by: db (maintainer timeout, 4 months)
Diffstat (limited to 'irc/ircd-hybrid/files')
-rw-r--r--irc/ircd-hybrid/files/ircd-hybrid.in14
-rw-r--r--irc/ircd-hybrid/files/pkg-message.in2
2 files changed, 9 insertions, 7 deletions
diff --git a/irc/ircd-hybrid/files/ircd-hybrid.in b/irc/ircd-hybrid/files/ircd-hybrid.in
index 608af1f..394051d 100644
--- a/irc/ircd-hybrid/files/ircd-hybrid.in
+++ b/irc/ircd-hybrid/files/ircd-hybrid.in
@@ -16,20 +16,22 @@
name="ircd_hybrid"
rcvar=ircd_hybrid_enable
-command=/usr/local/bin/ircd
-pidfile=/var/run/ircd/ircd.pid
-required_files=/usr/local/etc/ircd-hybrid/ircd.conf
+command=/usr/local/sbin/ircd
start_precmd=pid_touch
stop_postcmd=pid_rm
-[ -z "$ircd_hybrid_enable" ] && ircd_hybrid_enable=NO
-[ -z "$ircd_hybrid_user" ] && ircd_hybrid_user=ircd
+load_rc_config ${name}
-load_rc_config $name
+pidfile=${ircd_hybrid_pidfile-"/var/run/ircd/ircd.pid"}
+: ${ircd_hybrid_enable:="NO"}
+: ${ircd_hybrid_user:="ircd"}
+: ${ircd_hybrid_config:="%%PREFIX%%/etc/ircd-hybrid/ircd.conf"}
+: ${ircd_hybrid_flags=" -pidfile ${pidfile}"}
pid_touch ()
{
+ install -d -o ${ircd_hybrid_user} ${pidfile%/*} /var/log/ircd
touch $pidfile
chown $ircd_hybrid_user $pidfile
}
diff --git a/irc/ircd-hybrid/files/pkg-message.in b/irc/ircd-hybrid/files/pkg-message.in
index 38935b9..2ef2a53 100644
--- a/irc/ircd-hybrid/files/pkg-message.in
+++ b/irc/ircd-hybrid/files/pkg-message.in
@@ -3,7 +3,7 @@ ircd-hybrid has now been installed.
*** IMPORTANT: ***
Please read the INSTALL file for more information.
-You should now copy %%PREFIX%%/etc/ircd-hybrid/example.conf to
+You should now copy %%PREFIX%%/etc/ircd-hybrid/reference.conf to
%%PREFIX%%/etc/ircd-hybrid/ircd.conf, and then edit to suit your needs.
ircd-hybrid will not start without %%PREFIX%%/etc/ircd-hybrid/ircd.conf
OpenPOWER on IntegriCloud