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
commitad93f39464b90ee929b45642e5959121b7f0b863 (patch)
tree7c146ee719c4e623cda62f82ed584fec424f561d /net-irc/ircservices/files
parentFix optimisation flags and don't run autoconf, its not needed (diff)
downloadhistorical-ad93f39464b90ee929b45642e5959121b7f0b863.tar.gz
historical-ad93f39464b90ee929b45642e5959121b7f0b863.tar.bz2
historical-ad93f39464b90ee929b45642e5959121b7f0b863.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() {