summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-irc/inspircd')
-rw-r--r--net-irc/inspircd/ChangeLog9
-rw-r--r--net-irc/inspircd/Manifest16
-rw-r--r--net-irc/inspircd/files/digest-inspircd-1.0.53
-rw-r--r--net-irc/inspircd/inspircd-1.0.5.ebuild135
-rw-r--r--net-irc/inspircd/metadata.xml10
5 files changed, 173 insertions, 0 deletions
diff --git a/net-irc/inspircd/ChangeLog b/net-irc/inspircd/ChangeLog
new file mode 100644
index 000000000000..6a4d10e036fc
--- /dev/null
+++ b/net-irc/inspircd/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for mail-mta/netqmail
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-irc/inspircd/ChangeLog,v 1.1 2006/07/14 21:53:01 hansmi Exp $
+
+*inspircd-1.0.5 (14 Jul 2006)
+
+ 14 Jul 2006; Michael Hanselmann <hansmi@gentoo.org> +metadata.xml,
+ +inspircd-1.0.5.ebuild:
+ Added to portage, ebuild by William Pitcock <nenolod@nenolod.net>.
diff --git a/net-irc/inspircd/Manifest b/net-irc/inspircd/Manifest
new file mode 100644
index 000000000000..04fe48a374dc
--- /dev/null
+++ b/net-irc/inspircd/Manifest
@@ -0,0 +1,16 @@
+DIST InspIRCd-1.0.5.tar.bz2 337550 RMD160 20c594ad5ff00fb8bb78e9922d8682e25ed85769 SHA1 335d82862945fec25a14499901282815f9c86e8f SHA256 bfff3efa9a5191d1f402adddc2339ad5984432f0a4b4e0a6f4eae6b883659d37
+EBUILD inspircd-1.0.5.ebuild 3427 RMD160 fe62e7182276bf5d707d0ee869be7efe58e7ac83 SHA1 e6741ec140e6ecfbe1bb3f4b90b12330913ca53f SHA256 d7e0b5240f6a80d73eb0fd9a55c1809400a1decc4568723b23230c4414f184f1
+MD5 2fc0d6e4014db909134c0d2f9ffca1a5 inspircd-1.0.5.ebuild 3427
+RMD160 fe62e7182276bf5d707d0ee869be7efe58e7ac83 inspircd-1.0.5.ebuild 3427
+SHA256 d7e0b5240f6a80d73eb0fd9a55c1809400a1decc4568723b23230c4414f184f1 inspircd-1.0.5.ebuild 3427
+MISC ChangeLog 403 RMD160 db43e69feabcd08cb731146873e5ac5e6a74ab3d SHA1 2ab9de7c2285bd6204a7d4d47f7b4424d6c8b933 SHA256 50566dc0a09883b964e9e855814794cc7762f2b9eeba2b77dadc6223d5210489
+MD5 2fc28f5c792ddf4f5a3da4c14ef7ff09 ChangeLog 403
+RMD160 db43e69feabcd08cb731146873e5ac5e6a74ab3d ChangeLog 403
+SHA256 50566dc0a09883b964e9e855814794cc7762f2b9eeba2b77dadc6223d5210489 ChangeLog 403
+MISC metadata.xml 351 RMD160 6a04fe543a2a59ca8b727f2f801d04fcef2199e8 SHA1 ced5b767dcbbcb58f5795f89be30336ed7b503ea SHA256 4a9690b4793f1693e49ee85c34a2c34efba4362d3590bf5c612c95bc24f642eb
+MD5 6a06ee83b3346203820c72af04ba29cf metadata.xml 351
+RMD160 6a04fe543a2a59ca8b727f2f801d04fcef2199e8 metadata.xml 351
+SHA256 4a9690b4793f1693e49ee85c34a2c34efba4362d3590bf5c612c95bc24f642eb metadata.xml 351
+MD5 dc05214123f8bdf71f2c25e0fe6bcab5 files/digest-inspircd-1.0.5 247
+RMD160 8f2fc4321fa44ac683a107b3ffac90a6b961b963 files/digest-inspircd-1.0.5 247
+SHA256 6a1969d43c82517c5f4ea66c2efb0811b6983d55c941daec3ad59950d8e54c57 files/digest-inspircd-1.0.5 247
diff --git a/net-irc/inspircd/files/digest-inspircd-1.0.5 b/net-irc/inspircd/files/digest-inspircd-1.0.5
new file mode 100644
index 000000000000..3e890dc645bb
--- /dev/null
+++ b/net-irc/inspircd/files/digest-inspircd-1.0.5
@@ -0,0 +1,3 @@
+MD5 17c0d253ab7c8a90ab63b9f1b23c5c03 InspIRCd-1.0.5.tar.bz2 337550
+RMD160 20c594ad5ff00fb8bb78e9922d8682e25ed85769 InspIRCd-1.0.5.tar.bz2 337550
+SHA256 bfff3efa9a5191d1f402adddc2339ad5984432f0a4b4e0a6f4eae6b883659d37 InspIRCd-1.0.5.tar.bz2 337550
diff --git a/net-irc/inspircd/inspircd-1.0.5.ebuild b/net-irc/inspircd/inspircd-1.0.5.ebuild
new file mode 100644
index 000000000000..c5ece2dc0ecd
--- /dev/null
+++ b/net-irc/inspircd/inspircd-1.0.5.ebuild
@@ -0,0 +1,135 @@
+# 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.5.ebuild,v 1.1 2006/07/14 21:53:01 hansmi Exp $
+
+inherit eutils toolchain-funcs multilib
+
+IUSE="ssl"
+
+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="~x86 ~amd64"
+DEPEND="ssl? ( >=dev-libs/openssl-0.9.7d )"
+RDEPEND=""
+
+S="${WORKDIR}/inspircd"
+
+pkg_setup() {
+ enewgroup inspircd
+ enewuser inspircd -1 -1 -1 inspircd
+}
+
+# ============================================================
+# inspircd_use_enable ()
+#
+# If something is in our USE flags, then append it to
+# my_conf in the valid format as used by inspircd's configure
+# script.
+#
+# $1 = pkg name
+# $2 = USE flag
+# $3 = inspircd variable
+# $4 = inspircd value if yes
+# $5 = inspircd value if no
+inspircd_use_enable() {
+ if built_with_use $1 $2 ; then
+ echo "$3=\"$4\"" >> .config.cache
+ else
+ echo "$3=\"$5\"" >> .config.cache
+ fi
+}
+
+# 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."
+ 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_
+
+ # for a rainy day: USE="ssl" could be gnutls too?
+ inspircd_use_enable openssl ssl HAS_OPENSSL y n
+
+ # 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
+}
diff --git a/net-irc/inspircd/metadata.xml b/net-irc/inspircd/metadata.xml
new file mode 100644
index 000000000000..50a7771a1b0d
--- /dev/null
+++ b/net-irc/inspircd/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>no-herd</herd>
+ <maintainer>
+ <email>nenolod@nenolod.net</email>
+ <name>William Pitcock</name>
+ <description>Indirectly maintaining through hansmi@gentoo.org</description>
+ </maintainer>
+</pkgmetadata>