summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Hanselmann <hansmi@gentoo.org>2006-07-14 21:53:01 +0000
committerMichael Hanselmann <hansmi@gentoo.org>2006-07-14 21:53:01 +0000
commit43151e201b73446d48a50a08686c43451f31b46a (patch)
treefe9dcac7e27284130e4fe9a4ac415960047c6231 /net-irc/inspircd
parentStable on alpha wrt security Bug #139319. (diff)
downloadhistorical-43151e201b73446d48a50a08686c43451f31b46a.tar.gz
historical-43151e201b73446d48a50a08686c43451f31b46a.tar.bz2
historical-43151e201b73446d48a50a08686c43451f31b46a.zip
Added to portage
Package-Manager: portage-2.1.1_pre2-r8
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..ff4a59dcb68f
--- /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 3528 RMD160 515b8ce1f7185ebf5ef24fb838bf85e1a8d8f169 SHA1 e97cceabb7dd1f1623211961343a5c06c59b4ae9 SHA256 af1e089e619dec38c1031f6173eef5b16d3d8594b7c66eb0acfd935e71f19b4f
+MD5 4e566360f117dd5844add5522bd6009a inspircd-1.0.5.ebuild 3528
+RMD160 515b8ce1f7185ebf5ef24fb838bf85e1a8d8f169 inspircd-1.0.5.ebuild 3528
+SHA256 af1e089e619dec38c1031f6173eef5b16d3d8594b7c66eb0acfd935e71f19b4f inspircd-1.0.5.ebuild 3528
+MISC ChangeLog 401 RMD160 2747ecb0e53a1ba89f0aafaeee431166f1d3034f SHA1 9c4137acd229878e8da90d2cd608e8dca8e9068f SHA256 6b610438c0bde454c912fef02b0c8c0de61a0f22e3b29f7f1798236ca3b96ee6
+MD5 2e00539d560035cdd8029732f4692f95 ChangeLog 401
+RMD160 2747ecb0e53a1ba89f0aafaeee431166f1d3034f ChangeLog 401
+SHA256 6b610438c0bde454c912fef02b0c8c0de61a0f22e3b29f7f1798236ca3b96ee6 ChangeLog 401
+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>