diff options
author | wiz <wiz@pkgsrc.org> | 2007-02-01 23:19:56 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2007-02-01 23:19:56 +0000 |
commit | 5bed3a43406566e840ec413aece63190d2ab2b48 (patch) | |
tree | 6b4edab0a6bd80b4e4a6c4936eb5d6ffc946b1bd /chat | |
parent | bcb5a8262d6ee61a8a78ac7fc4a29b653b3cbfdd (diff) | |
download | pkgsrc-5bed3a43406566e840ec413aece63190d2ab2b48.tar.gz |
Make sure the directory for the pidfile exists (/var/run is cleaned on
some machines...).
Bump PKGREVISION.
Diffstat (limited to 'chat')
-rw-r--r-- | chat/ircd-hybrid/Makefile | 3 | ||||
-rw-r--r-- | chat/ircd-hybrid/files/ircd-hybrid.sh | 9 |
2 files changed, 9 insertions, 3 deletions
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 |