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
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')
-rw-r--r--net-irc/ircservices/ChangeLog7
-rw-r--r--net-irc/ircservices/files/ircservices.conf.d6
-rw-r--r--net-irc/ircservices/files/ircservices.init.d11
-rw-r--r--net-irc/ircservices/ircservices-5.0.37.ebuild4
4 files changed, 23 insertions, 5 deletions
diff --git a/net-irc/ircservices/ChangeLog b/net-irc/ircservices/ChangeLog
index fb900478a442..3d91bf5e5d5f 100644
--- a/net-irc/ircservices/ChangeLog
+++ b/net-irc/ircservices/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-irc/ircservices
# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-irc/ircservices/ChangeLog,v 1.2 2004/08/14 22:35:49 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-irc/ircservices/ChangeLog,v 1.3 2004/08/14 22:55:05 swegener Exp $
+
+ 15 Aug 2004; Sven Wegener <swegener@gentoo.org> +files/ircservices.conf.d,
+ files/ircservices.init.d, ircservices-5.0.37.ebuild:
+ Made the dependency on a local ircd to be up optional via
+ /etc/conf.d/ircservices.
15 Aug 2004; Sven Wegener <swegener@gentoo.org> files/ircservices.init.d:
Fixed init script.
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() {
diff --git a/net-irc/ircservices/ircservices-5.0.37.ebuild b/net-irc/ircservices/ircservices-5.0.37.ebuild
index bdff3780b6cb..7f5fa8f323d8 100644
--- a/net-irc/ircservices/ircservices-5.0.37.ebuild
+++ b/net-irc/ircservices/ircservices-5.0.37.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-irc/ircservices/ircservices-5.0.37.ebuild,v 1.1 2004/08/14 21:38:26 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-irc/ircservices/ircservices-5.0.37.ebuild,v 1.2 2004/08/14 22:55:05 swegener Exp $
inherit eutils fixheadtails flag-o-matic
@@ -71,6 +71,8 @@ src_install() {
exeinto /etc/init.d
newexe ${FILESDIR}/ircservices.init.d ircservices
+ insinto /etc/conf.d
+ newins ${FILESDIR}/ircservices.conf.d ircservices
doman docs/ircservices.8
newman docs/convert-db.8 ircservices-convert-db.8