diff options
author | wiz <wiz> | 2007-02-01 23:19:56 +0000 |
---|---|---|
committer | wiz <wiz> | 2007-02-01 23:19:56 +0000 |
commit | f4d66a08b93ff8fee59e2fc7d9bcfef8dabadb9b (patch) | |
tree | 6b4edab0a6bd80b4e4a6c4936eb5d6ffc946b1bd /chat | |
parent | e78a961d227db465ba5420e23cbf779274c5df16 (diff) | |
download | pkgsrc-f4d66a08b93ff8fee59e2fc7d9bcfef8dabadb9b.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 |