View | Details | Raw Unified | Return to bug 83089
Collapse All | Expand All

(-)/home/hsn/hacked/ircd-hybrid/Makefile (-1 / +1 lines)
Lines 7-13 Link Here
7
7
8
PORTNAME=	ircd-hybrid
8
PORTNAME=	ircd-hybrid
9
PORTVERSION=	7.0.2
9
PORTVERSION=	7.0.2
10
PORTREVISION=	1
10
PORTREVISION=	2
11
CATEGORIES=	irc ipv6
11
CATEGORIES=	irc ipv6
12
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE_EXTENDED}
12
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE_EXTENDED}
13
MASTER_SITE_SUBDIR=	ircd-hybrid
13
MASTER_SITE_SUBDIR=	ircd-hybrid
(-)/home/hsn/hacked/ircd-hybrid/files/include-config.h.pre-patch (-3 / +12 lines)
Lines 1-5 Link Here
1
--- include/config.h.orig	Thu Feb  6 01:46:11 2003
1
--- include/config.h.orig	Sun Oct 26 03:08:12 2003
2
+++ include/config.h	Thu Jan 29 20:16:13 2004
2
+++ include/config.h	Thu Jul  7 11:27:45 2005
3
@@ -90,7 +90,9 @@
3
@@ -90,7 +90,9 @@
4
 /*#define IRCD_PREFIX     "IRCD$BASEDIR:"*/
4
 /*#define IRCD_PREFIX     "IRCD$BASEDIR:"*/
5
 #define DPATH           "IRCD$BASEDIR:"
5
 #define DPATH           "IRCD$BASEDIR:"
Lines 10-16 Link Here
10
 #define LOGPATH         "IRCD$LOGDIR:"
10
 #define LOGPATH         "IRCD$LOGDIR:"
11
 
11
 
12
 #undef  MODPATH
12
 #undef  MODPATH
13
@@ -134,13 +136,13 @@
13
@@ -137,13 +139,13 @@
14
 /* dirs */
14
 /* dirs */
15
 #define DPATH   IRCD_PREFIX                                                     
15
 #define DPATH   IRCD_PREFIX                                                     
16
 #define BINPATH IRCD_PREFIX "/bin/"
16
 #define BINPATH IRCD_PREFIX "/bin/"
Lines 30-32 Link Here
30
 
30
 
31
 /* files */
31
 /* files */
32
 #define SPATH   BINPATH "/ircd"                 /* ircd executable */
32
 #define SPATH   BINPATH "/ircd"                 /* ircd executable */
33
@@ -158,7 +160,7 @@
34
 #define RPATH   ETCPATH "/ircd.rsa"             /* ircd rsa private keyfile */
35
 #define MPATH   ETCPATH "/ircd.motd"            /* MOTD file */
36
 #define LPATH   LOGPATH "/ircd.log"             /* ircd logfile */
37
-#define PPATH   ETCPATH "/ircd.pid"             /* pid file */
38
+#define PPATH   "/var/run/ircd.pid"             /* pid file */
39
 #define OPATH   ETCPATH "/opers.motd"           /* oper MOTD file */
40
 #define LIPATH  ETCPATH "/links.txt"            /* cached links file */
41
 #endif /* !VMS */
(-)/home/hsn/hacked/ircd-hybrid/files/ircd-hybrid.sh (-2 / +7 lines)
Lines 1-14 Link Here
1
#!/bin/sh
1
#!/bin/sh
2
PIDFILE=/var/run/ircd.pid
3
2
if [ $# -eq 0 -o x$1 = xstart ]; then
4
if [ $# -eq 0 -o x$1 = xstart ]; then
3
  if [ -x %PREFIX%/bin/ircd ]; then
5
  if [ -x %PREFIX%/bin/ircd ]; then
6
    touch $PIDFILE 
7
    chown ircd $PIDFILE  
4
    su -fm ircd -c %PREFIX%/bin/ircd && echo ' ircd'
8
    su -fm ircd -c %PREFIX%/bin/ircd && echo ' ircd'
5
  fi
9
  fi
6
fi
10
fi
7
if [ x$1 = xstop ]; then
11
if [ x$1 = xstop ]; then
8
  if [ -f %PREFIX%/etc/ircd.pid ]; then
12
  if [ -s $PIDFILE ]; then
9
    kill `cat %PREFIX%/etc/ircd.pid`
13
    kill `cat $PIDFILE`
10
  else
14
  else
11
    # oh well
15
    # oh well
12
    killall ircd
16
    killall ircd
13
  fi
17
  fi
18
  rm -f $PIDFILE
14
fi
19
fi

Return to bug 83089