diff options
author | Markus Ullmann <jokey@gentoo.org> | 2006-06-05 19:45:35 +0000 |
---|---|---|
committer | Markus Ullmann <jokey@gentoo.org> | 2006-06-05 19:45:35 +0000 |
commit | 40e5725574636b0dd4a3f2bac6e288431ed06145 (patch) | |
tree | 20ebe2c5c83e76d7d1d407b519708f74a40f065b /net-irc/ircd-hybrid/files | |
parent | Adding contrib useflag for net-irc/ircd-hybrid (diff) | |
download | gentoo-2-40e5725574636b0dd4a3f2bac6e288431ed06145.tar.gz gentoo-2-40e5725574636b0dd4a3f2bac6e288431ed06145.tar.bz2 gentoo-2-40e5725574636b0dd4a3f2bac6e288431ed06145.zip |
Version bump, thanks to Jan Boysen for providing the needed patch
(Portage version: 2.1_rc3-r5)
Diffstat (limited to 'net-irc/ircd-hybrid/files')
-rw-r--r-- | net-irc/ircd-hybrid/files/7.2.1-default-config.patch | 101 | ||||
-rw-r--r-- | net-irc/ircd-hybrid/files/digest-ircd-hybrid-7.2.1 | 3 | ||||
-rw-r--r-- | net-irc/ircd-hybrid/files/init.d_ircd-7.2.1 | 28 |
3 files changed, 132 insertions, 0 deletions
diff --git a/net-irc/ircd-hybrid/files/7.2.1-default-config.patch b/net-irc/ircd-hybrid/files/7.2.1-default-config.patch new file mode 100644 index 000000000000..fcd90360c84d --- /dev/null +++ b/net-irc/ircd-hybrid/files/7.2.1-default-config.patch @@ -0,0 +1,101 @@ +diff -urN ircd-hybrid-7.2.1.orig/contrib/Makefile.in ircd-hybrid-7.2.1/contrib/Makefile.in +--- ircd-hybrid-7.2.1.orig/contrib/Makefile.in 2006-03-27 01:36:56.000000000 +0200 ++++ ircd-hybrid-7.2.1/contrib/Makefile.in 2006-06-04 22:00:40.000000000 +0200 +@@ -17,7 +17,7 @@ + INSTALL = @INSTALL@ + INSTALL_DATA = @INSTALL_DATA@ + +-prefix = $(DESTDIR)@prefix@ ++prefix = $(DESTDIR)@prefix@/lib/ircd-hybrid-7 + + AUTOMODULEDIR = ${prefix}/modules + +diff -urN ircd-hybrid-7.2.1.orig/contrib/help/Makefile.in ircd-hybrid-7.2.1/contrib/help/Makefile.in +--- ircd-hybrid-7.2.1.orig/contrib/help/Makefile.in 2006-03-27 01:36:56.000000000 +0200 ++++ ircd-hybrid-7.2.1/contrib/help/Makefile.in 2006-06-04 21:49:59.000000000 +0200 +@@ -5,7 +5,7 @@ + INSTALL_DATA= @INSTALL_DATA@ + RM= @RM@ + +-prefix= @prefix@ ++prefix= ${DESTDIR}/usr/share/ircd-hybrid-7 + exec_prefix= @execprefix@ + uhelpdir= ${prefix}/help/users + ohelpdir= ${prefix}/help/opers +diff -urN ircd-hybrid-7.2.1.orig/help/Makefile.in ircd-hybrid-7.2.1/help/Makefile.in +--- ircd-hybrid-7.2.1.orig/help/Makefile.in 2006-03-27 01:36:55.000000000 +0200 ++++ ircd-hybrid-7.2.1/help/Makefile.in 2006-06-04 21:58:23.000000000 +0200 +@@ -5,7 +5,7 @@ + INSTALL_DATA= @INSTALL_DATA@ + RM= @RM@ + +-prefix= @prefix@ ++prefix= ${DESTDIR}/usr/share/ircd-hybrid-7 + exec_prefix= @execprefix@ + uhelpdir= ${prefix}/help/users + ohelpdir= ${prefix}/help/opers +@@ -22,12 +22,12 @@ + install: + @echo installing help files... + -@if test ! -d $(prefix)/help; then \ +- echo "mkdir $(prefix)/help"; \ +- mkdir $(prefix)/help; \ +- echo "mkdir $(prefix)/help/users"; \ +- mkdir $(prefix)/help/users; \ +- echo "mkdir $(prefix)/help/opers"; \ +- mkdir $(prefix)/help/opers; \ ++ echo "mkdir -p $(prefix)/help"; \ ++ mkdir -p $(prefix)/help; \ ++ echo "mkdir -p $(prefix)/help/users"; \ ++ mkdir -p $(prefix)/help/users; \ ++ echo "mkdir -p $(prefix)/help/opers"; \ ++ mkdir -p $(prefix)/help/opers; \ + fi + @for help in opers/*; do \ + if [ -f $$help ]; then \ +diff -urN ircd-hybrid-7.2.1.orig/include/defaults.h ircd-hybrid-7.2.1/include/defaults.h +--- ircd-hybrid-7.2.1.orig/include/defaults.h 2006-03-27 01:36:51.000000000 +0200 ++++ ircd-hybrid-7.2.1/include/defaults.h 2006-06-04 16:04:45.000000000 +0200 +@@ -48,13 +48,13 @@ + */ + + /* dirs */ +-#define DPATH IRCD_PREFIX ++#define DPATH IRCD_PREFIX + #define BINPATH IRCD_PREFIX "/bin/" +-#define MSGPATH IRCD_PREFIX "/messages/" +-#define ETCPATH IRCD_PREFIX "/etc" +-#define LOGPATH IRCD_PREFIX "/logs" +-#define MODPATH IRCD_PREFIX "/modules/" +-#define AUTOMODPATH IRCD_PREFIX "/modules/autoload/" ++#define MSGPATH IRCD_PREFIX "/share/ircd-hybrid-7/messages/" ++#define ETCPATH "/etc/ircd" ++#define LOGPATH "/var/log/ircd" ++#define MODPATH IRCD_PREFIX "/lib/ircd-hybrid-7/modules/" ++#define AUTOMODPATH IRCD_PREFIX "/lib/ircd-hybrid-7/modules/autoload" + + /* files */ + #define SPATH BINPATH "/ircd" /* ircd executable */ +@@ -70,7 +70,7 @@ + #define RKPATH ETCPATH "/rkline.conf" + #define MPATH ETCPATH "/ircd.motd" /* MOTD file */ + #define LPATH LOGPATH "/ircd.log" /* ircd logfile */ +-#define PPATH ETCPATH "/ircd.pid" /* pid file */ ++#define PPATH "/var/run/ircd/ircd.pid" /* pid file */ + #define OPATH ETCPATH "/opers.motd" /* oper MOTD file */ + #define LIPATH ETCPATH "/links.txt" /* cached links file */ + +diff -urN ircd-hybrid-7.2.1.orig/modules/m_help.c ircd-hybrid-7.2.1/modules/m_help.c +--- ircd-hybrid-7.2.1.orig/modules/m_help.c 2006-03-27 01:37:02.000000000 +0200 ++++ ircd-hybrid-7.2.1/modules/m_help.c 2006-06-04 16:07:18.000000000 +0200 +@@ -36,8 +36,8 @@ + #include "modules.h" + #include "irc_string.h" + +-#define HPATH IRCD_PREFIX "/help/opers" +-#define UHPATH IRCD_PREFIX "/help/users" ++#define HPATH IRCD_PREFIX "/share/ircd-hybrid-7/help/opers" ++#define UHPATH IRCD_PREFIX "/share/ircd-hybrid-7/help/users" + #define HELPLEN 400 + + static void m_help(struct Client *, struct Client *, int, char *[]); diff --git a/net-irc/ircd-hybrid/files/digest-ircd-hybrid-7.2.1 b/net-irc/ircd-hybrid/files/digest-ircd-hybrid-7.2.1 new file mode 100644 index 000000000000..677a019db4a2 --- /dev/null +++ b/net-irc/ircd-hybrid/files/digest-ircd-hybrid-7.2.1 @@ -0,0 +1,3 @@ +MD5 00901c5e2e9bf44ab37a28596af6608e ircd-hybrid-7.2.1.tgz 1013005 +RMD160 c8f859f7e6e956c6d738641b1993423212fbd377 ircd-hybrid-7.2.1.tgz 1013005 +SHA256 66479aa1aaf6fbca79c90789e8dae1b04ffe66dbd2aba72e9906deebbb4e7938 ircd-hybrid-7.2.1.tgz 1013005 diff --git a/net-irc/ircd-hybrid/files/init.d_ircd-7.2.1 b/net-irc/ircd-hybrid/files/init.d_ircd-7.2.1 new file mode 100644 index 000000000000..84b4ea7df28c --- /dev/null +++ b/net-irc/ircd-hybrid/files/init.d_ircd-7.2.1 @@ -0,0 +1,28 @@ +#!/sbin/runscript +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-irc/ircd-hybrid/files/init.d_ircd-7.2.1,v 1.1 2006/06/05 19:45:35 jokey Exp $ + +opts="${opts} rehash" + +depend() { + need net +} + +start() { + ebegin "Starting IRCd-Hybrid7 daemon" + start-stop-daemon --start --quiet --chuid hybrid --exec /usr/bin/ircd + eend $? +} + +stop() { + ebegin "Stopping IRCd-Hybrid7 daemon" + start-stop-daemon --stop --quiet --pidfile /var/run/ircd/ircd.pid + eend $? +} + +rehash() { + ebegin "Rehashing IRCd-Hybrid7 IPv4 daemon" + kill -s SIGHUP $(</var/run/ircd/ircd.pid) + eend $? +} |