summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Hanselmann <hansmi@gentoo.org>2006-11-28 18:46:18 +0000
committerMichael Hanselmann <hansmi@gentoo.org>2006-11-28 18:46:18 +0000
commita081a08226d43b7a847b8834a9b8a5858a4248e0 (patch)
tree18f1e3268f05776c8faf2eeb95c3a95e4216f692 /net-irc
parentmoved tcltk USE flag over to separate tk and tcl flags, see bug #17808 (diff)
downloadgentoo-2-a081a08226d43b7a847b8834a9b8a5858a4248e0.tar.gz
gentoo-2-a081a08226d43b7a847b8834a9b8a5858a4248e0.tar.bz2
gentoo-2-a081a08226d43b7a847b8834a9b8a5858a4248e0.zip
New ebuild from William Pitcock in bug 150542 (comment 28). Drops SSL support.
(Portage version: 2.1.2_rc2-r2)
Diffstat (limited to 'net-irc')
-rw-r--r--net-irc/inspircd/ChangeLog8
-rw-r--r--net-irc/inspircd/files/digest-inspircd-1.0.7-r13
-rw-r--r--net-irc/inspircd/inspircd-1.0.7-r1.ebuild123
3 files changed, 133 insertions, 1 deletions
diff --git a/net-irc/inspircd/ChangeLog b/net-irc/inspircd/ChangeLog
index 8781b68dcab4..f847bfd657b7 100644
--- a/net-irc/inspircd/ChangeLog
+++ b/net-irc/inspircd/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-irc/inspircd
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-irc/inspircd/ChangeLog,v 1.6 2006/10/22 19:34:56 hansmi Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-irc/inspircd/ChangeLog,v 1.7 2006/11/28 18:46:18 hansmi Exp $
+
+*inspircd-1.0.7-r1 (28 Nov 2006)
+
+ 28 Nov 2006; Michael Hanselmann <hansmi@gentoo.org>
+ +inspircd-1.0.7-r1.ebuild:
+ New ebuild from William Pitcock in bug 150542 (comment 28). Drops SSL support.
*inspircd-1.0.7 (22 Oct 2006)
diff --git a/net-irc/inspircd/files/digest-inspircd-1.0.7-r1 b/net-irc/inspircd/files/digest-inspircd-1.0.7-r1
new file mode 100644
index 000000000000..701d53b28937
--- /dev/null
+++ b/net-irc/inspircd/files/digest-inspircd-1.0.7-r1
@@ -0,0 +1,3 @@
+MD5 64c98e5b0724d544904100df9e699c52 InspIRCd-1.0.7.tar.bz2 337187
+RMD160 a7387cf88f08f0e9487d25db79d88cde9e9c8283 InspIRCd-1.0.7.tar.bz2 337187
+SHA256 0ce029e92a0a1713de1d0665d1143295a054a8d925fa724795d709493a8b8d7f InspIRCd-1.0.7.tar.bz2 337187
diff --git a/net-irc/inspircd/inspircd-1.0.7-r1.ebuild b/net-irc/inspircd/inspircd-1.0.7-r1.ebuild
new file mode 100644
index 000000000000..eb5de73c3c9b
--- /dev/null
+++ b/net-irc/inspircd/inspircd-1.0.7-r1.ebuild
@@ -0,0 +1,123 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-irc/inspircd/inspircd-1.0.7-r1.ebuild,v 1.1 2006/11/28 18:46:18 hansmi Exp $
+
+inherit eutils toolchain-funcs multilib
+
+IUSE="openssl gnutls"
+
+DESCRIPTION="InspIRCd - The Modular C++ IRC Daemon"
+HOMEPAGE="http://www.inspircd.org"
+SRC_URI="mirror://sourceforge/${PN}/InspIRCd-${PV}.tar.bz2"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+RDEPEND="
+ openssl? ( >=dev-libs/openssl-0.9.7d )
+ gnutls? ( >=net-libs/gnutls-1.3.0 )"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/inspircd"
+
+pkg_setup() {
+ enewgroup inspircd
+ enewuser inspircd -1 -1 -1 inspircd
+}
+
+# Determines the appropriate value for the
+# GCC34= configuration option.
+inspircd-determine-gcc34() {
+ if [[ $(gcc-major-version) -gt 3 ]] ; then
+ echo "4"
+ else
+ if [[ $(gcc-minor-version) -lt 4 ]] ; then
+ echo "3"
+ else
+ echo "4"
+ fi
+ fi
+}
+
+src_compile() {
+ local myconf=""
+
+ # Write a configuration file
+ einfo "Building configuration parameters file."
+
+ if use openssl; then
+ einfo "Enabling OpenSSL SSL engine module."
+ fi
+
+ if use gnutls; then
+ einfo "Enabling GnuTLS SSL engine module."
+ fi
+
+ cat << _EOF_ > .config.cache
+CC="$(tc-getCXX)"
+MAKEPROG="make $MFLAGS"
+GCCVER="$(gcc-major-version)"
+GCC34="$(inspircd-determine-gcc34)"
+OPTIMISATI=""
+FLAGS="$CXXFLAGS"
+CONFIG_DIR="/etc/inspircd"
+MODULE_DIR="/usr/$(get_libdir)/inspircd/modules"
+BASE_DIR="/"
+LIBRARY_DIR="/usr/$(get_libdir)/inspircd"
+OSNAME="$(uname)"
+BINARY_DIR="/usr/bin"
+LDLIBS="-ldl -lstdc++"
+CHANGE_COMPILER="n"
+HAS_STRLCPY="false"
+MAKEORDER="ircd mods"
+
+# User defined parameters.
+MAX_KICK="${INSPIRCD_KICKLEN:-255}"
+MAX_IDENT="${INSPIRCD_IDENTLEN:-12}"
+MAX_GECOS="${INSPIRCD_GECOSLEN:-128}"
+MAX_CLIENT_T="${INSPIRCD_MAX_CLIENTS:-512}"
+MAXI_MODES="${INSPIRCD_MAX_MODES:-20}"
+MAX_CLIENT="${INSPIRCD_MAX_CLIENTS:-512}"
+MAX_CHANNE="${INSPIRCD_MAX_CHANNELS:-20}"
+NICK_LENGT="${INSPIRCD_NICKLEN:-31}"
+MAX_OPERCH="${INSPIRCD_MAX_OPERCHANS:-60}"
+MAX_AWAY="${INSPIRCD_AWAYLEN:-200}"
+MAX_TOPIC="${INSPIRCD_TOPICLEN:-307}"
+MAX_QUIT="${INSPIRCD_QUITLEN:-255}"
+_EOF_
+
+ # build makefiles based on our configure params
+ # Please note that it's not the autoconf configure script, thus
+ # we don't use econf.
+ ./configure -update || die "configure failed"
+
+ emake DESTDIR="${D}" || die "emake failed"
+}
+
+src_install() {
+ # the inspircd buildsystem does not create these, it's configure script
+ # does. so, we have to at this point to make sure they are there.
+ dodir /usr/$(get_libdir)/inspircd
+ dodir /usr/$(get_libdir)/inspircd/modules
+ dodir /etc/inspircd
+ dodir /usr/bin/ircd
+
+ emake \
+ LIBPATH="${D}/usr/$(get_libdir)/inspircd" \
+ MODPATH="${D}/usr/$(get_libdir)/inspircd/modules" \
+ CONPATH="${D}/etc/inspircd" \
+ BINPATH="${D}/usr/bin" \
+ BASE="${D}/usr/bin/inspircd.launcher" \
+ install
+
+ newinitd "${FILESDIR}"/init.d_inspircd inspircd
+}
+
+pkg_postinst() {
+ chown -R inspircd:inspircd "${ROOT}"/etc/inspircd
+ chmod 700 "${ROOT}"/etc/inspircd
+
+ chown -R inspircd:inspircd "${ROOT}"/usr/$(get_libdir)/inspircd
+ chmod -R 755 "${ROOT}"/usr/$(get_libdir)/inspircd
+
+ chmod -R 755 /usr/bin/inspircd
+}