From 0bb660ceba82895d31e259f79b4d6776f057244f Mon Sep 17 00:00:00 2001 From: wiz Date: Thu, 1 Feb 2007 23:19:56 +0000 Subject: Make sure the directory for the pidfile exists (/var/run is cleaned on some machines...). Bump PKGREVISION. --- chat/ircd-hybrid/Makefile | 3 ++- chat/ircd-hybrid/files/ircd-hybrid.sh | 9 +++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) (limited to 'chat/ircd-hybrid') diff --git a/chat/ircd-hybrid/Makefile b/chat/ircd-hybrid/Makefile index 9ec92e08f80..1abdc758a22 100644 --- a/chat/ircd-hybrid/Makefile +++ b/chat/ircd-hybrid/Makefile @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.33 2006/11/05 17:48:16 adrianp Exp $ +# $NetBSD: Makefile,v 1.34 2007/02/01 23:19:56 wiz Exp $ DISTNAME= ircd-hybrid-7.2.2 +PKGREVISION= 1 CATEGORIES= chat MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ircd-hybrid/} EXTRACT_SUFX= .tgz diff --git a/chat/ircd-hybrid/files/ircd-hybrid.sh b/chat/ircd-hybrid/files/ircd-hybrid.sh index c802e3c098b..386e9833333 100644 --- a/chat/ircd-hybrid/files/ircd-hybrid.sh +++ b/chat/ircd-hybrid/files/ircd-hybrid.sh @@ -1,6 +1,6 @@ #!@RCD_SCRIPTS_SHELL@ # -# $NetBSD: ircd-hybrid.sh,v 1.3 2005/11/13 22:40:00 adrianp Exp $ +# $NetBSD: ircd-hybrid.sh,v 1.4 2007/02/01 23:19:56 wiz Exp $ # # PROVIDE: ircdhybrid # REQUIRE: DAEMON @@ -12,7 +12,8 @@ fi name="ircdhybrid" rcvar=$name -pidfile="@VARBASE@/run/ircd-hybrid/ircd.pid" +piddir="@VARBASE@/run/ircd-hybrid" +pidfile="$piddir/ircd.pid" command="@PREFIX@/bin/ircd" conffile="@PKG_SYSCONFDIR@/ircd.conf" required_files="$conffile" @@ -21,6 +22,10 @@ ircdhybrid_group="@IRCD_HYBRID_IRC_GROUP@" start_precmd="set_pid_file" set_pid_file () { + @MKDIR@ $piddir + @CHOWN@ @IRCD_HYBRID_IRC_USER@ $piddir + @CHGRP@ @IRCD_HYBRID_IRC_GROUP@ $piddir + @CHMOD@ 0770 $piddir @TOUCH@ $pidfile @CHOWN@ @IRCD_HYBRID_IRC_USER@ $pidfile @CHGRP@ @IRCD_HYBRID_IRC_GROUP@ $pidfile -- cgit v1.2.3