diff options
author | Michael Hanselmann <hansmi@gentoo.org> | 2006-07-30 17:08:21 +0000 |
---|---|---|
committer | Michael Hanselmann <hansmi@gentoo.org> | 2006-07-30 17:08:21 +0000 |
commit | 4b844ded08d10e59bb612cbb33847e5325de51ff (patch) | |
tree | 93f2ad06ff07d037113ac591422c8a7b83d347b7 /net-irc/inspircd | |
parent | force automake-1.9+ #141427 (diff) | |
download | historical-4b844ded08d10e59bb612cbb33847e5325de51ff.tar.gz historical-4b844ded08d10e59bb612cbb33847e5325de51ff.tar.bz2 historical-4b844ded08d10e59bb612cbb33847e5325de51ff.zip |
Bumped due to a security bug, #142185.
Package-Manager: portage-2.1-r1
Diffstat (limited to 'net-irc/inspircd')
-rw-r--r-- | net-irc/inspircd/ChangeLog | 8 | ||||
-rw-r--r-- | net-irc/inspircd/files/digest-inspircd-1.0.6 | 3 | ||||
-rw-r--r-- | net-irc/inspircd/inspircd-1.0.6.ebuild | 135 |
3 files changed, 145 insertions, 1 deletions
diff --git a/net-irc/inspircd/ChangeLog b/net-irc/inspircd/ChangeLog index 43505e308059..ec86aab4bc37 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.3 2006/07/30 16:27:26 swegener Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-irc/inspircd/ChangeLog,v 1.4 2006/07/30 17:08:21 hansmi Exp $ + +*inspircd-1.0.6 (30 Jul 2006) + + 30 Jul 2006; Michael Hanselmann <hansmi@gentoo.org> + -inspircd-1.0.5.ebuild, +inspircd-1.0.6.ebuild: + Bumped due to a security bug, #142185. 15 Jul 2006; Michael Hanselmann <hansmi@gentoo.org> +files/init.d_inspircd: diff --git a/net-irc/inspircd/files/digest-inspircd-1.0.6 b/net-irc/inspircd/files/digest-inspircd-1.0.6 new file mode 100644 index 000000000000..8a94d1f4cdac --- /dev/null +++ b/net-irc/inspircd/files/digest-inspircd-1.0.6 @@ -0,0 +1,3 @@ +MD5 982543b1e0e1592613307270f2a2088a InspIRCd-1.0.6.tar.bz2 334304 +RMD160 783c7351a0ad6ee609a41a50b18f404003358f89 InspIRCd-1.0.6.tar.bz2 334304 +SHA256 7f2f51c97f8fd7ac5e278a6266ffea408a0c4c25db04940b3ca59107f7b07a6d InspIRCd-1.0.6.tar.bz2 334304 diff --git a/net-irc/inspircd/inspircd-1.0.6.ebuild b/net-irc/inspircd/inspircd-1.0.6.ebuild new file mode 100644 index 000000000000..0f6325341178 --- /dev/null +++ b/net-irc/inspircd/inspircd-1.0.6.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.6.ebuild,v 1.1 2006/07/30 17:08:21 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 ~ppc" +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 +} |