summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Wegener <swegener@gentoo.org>2004-08-14 22:55:05 +0000
committerSven Wegener <swegener@gentoo.org>2004-08-14 22:55:05 +0000
commit76d4a295e74b2c72ebc044ea1db3fff1f161e822 (patch)
tree3a10558089c4353eb2108e14fd1f863b916ecd6d /net-irc/ircservices/files
parentFix optimisation flags and don't run autoconf, its not needed (Manifest recom... (diff)
downloadgentoo-2-76d4a295e74b2c72ebc044ea1db3fff1f161e822.tar.gz
gentoo-2-76d4a295e74b2c72ebc044ea1db3fff1f161e822.tar.bz2
gentoo-2-76d4a295e74b2c72ebc044ea1db3fff1f161e822.zip
Made the dependency on a local ircd to be up optional via /etc/conf.d/ircservices.
Diffstat (limited to 'net-irc/ircservices/files')
-rw-r--r--net-irc/ircservices/files/ircservices.conf.d6
-rw-r--r--net-irc/ircservices/files/ircservices.init.d11
2 files changed, 14 insertions, 3 deletions
diff --git a/net-irc/ircservices/files/ircservices.conf.d b/net-irc/ircservices/files/ircservices.conf.d
new file mode 100644
index 000000000000..ee9a22073b06
--- /dev/null
+++ b/net-irc/ircservices/files/ircservices.conf.d
@@ -0,0 +1,6 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/net-irc/ircservices/files/ircservices.conf.d,v 1.1 2004/08/14 22:55:05 swegener Exp $
+
+# Se this to true to have ircservices depend on a local ircd to be up
+LOCALIRCD="false"
diff --git a/net-irc/ircservices/files/ircservices.init.d b/net-irc/ircservices/files/ircservices.init.d
index d8ff3deaf169..e9af8179c025 100644
--- a/net-irc/ircservices/files/ircservices.init.d
+++ b/net-irc/ircservices/files/ircservices.init.d
@@ -1,11 +1,16 @@
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later
-# $Header: /var/cvsroot/gentoo-x86/net-irc/ircservices/files/ircservices.init.d,v 1.2 2004/08/14 22:35:49 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-irc/ircservices/files/ircservices.init.d,v 1.3 2004/08/14 22:55:05 swegener Exp $
depend() {
- need net
- use ircd
+ if [ "${LOCALIRCD}" = true ]
+ then
+ need net ircd
+ else
+ need net
+ use ircd
+ fi
}
start() {