Revision bump wrt security #323691.
authorSamuli Suominen <ssuominen@gentoo.org>
Sat, 12 Jun 2010 16:34:41 +0000 (16:34 +0000)
committerSamuli Suominen <ssuominen@gentoo.org>
Sat, 12 Jun 2010 16:34:41 +0000 (16:34 +0000)
Package-Manager: portage-2.2_rc67/cvs/Linux x86_64

net-irc/unrealircd/ChangeLog
net-irc/unrealircd/Manifest
net-irc/unrealircd/unrealircd-3.2.8.1-r1.ebuild [new file with mode: 0644]

index a0cd086b2e6ad4b9489068c3aa8778bbe156801d..cb4d422d144e2d8b08aeef5fc4b51bf494f0353e 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for net-irc/unrealircd
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-irc/unrealircd/ChangeLog,v 1.78 2009/12/22 01:01:06 vostorga Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-irc/unrealircd/ChangeLog,v 1.79 2010/06/12 16:34:41 ssuominen Exp $
+
+*unrealircd-3.2.8.1-r1 (12 Jun 2010)
+
+  12 Jun 2010; Samuli Suominen <ssuominen@gentoo.org>
+  +unrealircd-3.2.8.1-r1.ebuild:
+  Revision bump wrt security #323691.
 
   22 Dec 2009; VĂ­ctor Ostorga <vostorga@gentoo.org> files/unrealircd.rc:
   Fixing stop sequence in init script, patch thanks to Lars Wendler
index a37d22ece3ba77c6e4a5870c4698fbdfafc7e1bc..cd48d576394b44358e718ba6ba101600145e2c1c 100644 (file)
@@ -3,8 +3,10 @@ AUX unrealircd-system-tre.patch 2265 RMD160 16324b6639585d3c62b763f9f0f36c233ed0
 AUX unrealircd.confd 499 RMD160 666439c6e992d3314f8694ba58e8f3e018421f1c SHA1 5cb49d7e9a79c7f8e0b2182dff47811a2f3fb885 SHA256 ae6ce779fae68c1380a7d37950c5ef3b695e434bb435dcdc0f6d3d2282f72582
 AUX unrealircd.rc 681 RMD160 a0692b5eb4bdeb8893e023b78306b55c4df1c441 SHA1 fb885a544a5c4a9e26ecb7425457d097fffb5e1f SHA256 0d9eb50d6352c6d57cb1df10f26ffd8a5204e5f5aa2ba27f441947107de655f9
 DIST Unreal3.2.7.tar.gz 2801622 RMD160 49e00dbe4fdda672b20be16ceb116971f514d62b SHA1 a6c83c186008c429bc5a476fc0b9e3b174092efb SHA256 f80078da5e9efa1487ab22957aeb295f94c2d4efd144f825f1efc5ee8df72d46
+DIST Unreal3.2.8.1-no_trojan.tar.gz 2870612 RMD160 141657e8f5cf8fe2cbc4d8655b02eae92eec651b SHA1 43ef2a2ac7029ddd0b7027f7e571358a572e2131 SHA256 a3f70a22908392a9541b44c1f1885d1de405d336b6131d7e612becb7ab607957
 DIST Unreal3.2.8.1.tar.gz 2864770 RMD160 60f86a8efa9c8bf1627f30b04b45244ff4622939 SHA1 086708695ab75041adb1a61aaa1a86141f2548ea SHA256 45264abc6c4aaaa132ea735fb90aaf43185950825f0b947d6e0f6210c6e3e7c8
 EBUILD unrealircd-3.2.7-r2.ebuild 3621 RMD160 fead4400e6412b2d4c8155545f44e2320e26d8be SHA1 0ba69720dab1fd14b7666173d4135a20a68311aa SHA256 0d5d6e32237e98e40d52607519df0e375c173571a8ff1da7914b66c414a72e75
+EBUILD unrealircd-3.2.8.1-r1.ebuild 4884 RMD160 c6a356184ca4f1bdfaba234ff28cf8befbe2302b SHA1 fc32938614d1eeecbe14f6804cc4422f25805df9 SHA256 ae8c30674a1a4101178d2910396b1cfef8839fb42db0ba0d20f454c1a92061ad
 EBUILD unrealircd-3.2.8.1.ebuild 4806 RMD160 7357f096c2b19a607830c3e20b3381e5d87c55ff SHA1 ccd4021208605bbf94cee7ad4ce3670a0f33c0a8 SHA256 532500a32b341084daa2839009029141b485c3aa2d467be21a2de1e25607072e
-MISC ChangeLog 11134 RMD160 744f849657e3c2aef7edea88863aca6d2e3c0c4e SHA1 20551416f802688a5f84b592e66e93f3be7aeb9a SHA256 8158ee6e7734c912d7a80a3cf25a7205d6895c45cf64fe5c8e5f4a60796e310d
+MISC ChangeLog 11299 RMD160 a26828f7cd9b0794da431c48785ec7418fa113b2 SHA1 f95d9e52bfe0f48b1d278f187326430aad24a47f SHA256 1509930f01ece410f13c68135049098849f898d4b893575ebbef5f81a3f1f96c
 MISC metadata.xml 891 RMD160 db526c6aac78e08571a7a1ed8ede3b1a6dff0d77 SHA1 c1be63bf335014df1672aa63033d5094adf68a6e SHA256 0da56c8f8ea49e8c91c1281349e1fae167c897c0530959c3026410cd51976ab2
diff --git a/net-irc/unrealircd/unrealircd-3.2.8.1-r1.ebuild b/net-irc/unrealircd/unrealircd-3.2.8.1-r1.ebuild
new file mode 100644 (file)
index 0000000..fc6edf5
--- /dev/null
@@ -0,0 +1,164 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-irc/unrealircd/unrealircd-3.2.8.1-r1.ebuild,v 1.1 2010/06/12 16:34:41 ssuominen Exp $
+
+EAPI="2"
+
+inherit eutils autotools ssl-cert versionator multilib
+
+MY_P=Unreal${PV}
+
+DESCRIPTION="aimed to be an advanced (not easy) IRCd"
+HOMEPAGE="http://www.unrealircd.com/"
+SRC_URI="http://dev.gentoo.org/~ssuominen/${MY_P}-no_trojan.tar.gz"
+#SRC_URI="http://unrealircd.icedslash.com/${MY_P}.tar.gz
+#      http://unreal.brueggisite.de/${MY_P}.tar.gz
+#      http://www.blurryfox.com/unreal/${MY_P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~x86-fbsd"
+IUSE="curl +hub ipv6 +operoverride +spoof operoverride-verify +prefixaq
+showlistmodes shunnotices ssl topicisnuhost +usermod zlib"
+
+RDEPEND="ssl? ( dev-libs/openssl )
+       zlib? ( sys-libs/zlib )
+       curl? ( net-misc/curl )
+       dev-libs/tre
+       >=net-dns/c-ares-1.5.3"
+DEPEND="${RDEPEND}
+       >=sys-apps/sed-4"
+
+S="${WORKDIR}/Unreal$(get_version_component_range 1-2)"
+
+pkg_setup() {
+       enewuser unrealircd
+}
+
+src_prepare() {
+       #QA check against bundled pkgs
+       rm extras/*.gz
+
+       sed -i \
+               -e "s:ircd\.pid:/var/run/unrealircd/ircd.pid:" \
+               -e "s:ircd\.log:/var/log/unrealircd/ircd.log:" \
+               -e "s:debug\.log:/var/log/unrealircd/debug.log:" \
+               -e "s:ircd\.tune:/var/lib/unrealircd/ircd.tune:" \
+               include/config.h \
+               || die "sed failed"
+
+       # http://bugs.unrealircd.org/view.php?id=3842
+       epatch "${FILESDIR}"/unrealircd-system-tre.patch || die "epatch failed"
+
+       epatch "${FILESDIR}"/unrealircd-system-cares.patch || die "epatch failed"
+
+       mv autoconf/configure.in ./ || die
+       mv autoconf/aclocal.m4 ./acinclude.m4 || die
+       #can't call eautoreconf because aclocal's source files aren't even in unearlircd's svn!
+       eaclocal
+       eautoconf
+}
+
+src_configure() {
+       local myconf=""
+       use curl     && myconf="${myconf} --enable-libcurl=/usr"
+       use ipv6     && myconf="${myconf} --enable-inet6"
+       use zlib     && myconf="${myconf} --enable-ziplinks"
+       use hub      && myconf="${myconf} --enable-hub"
+       use ssl      && myconf="${myconf} --enable-ssl"
+       use prefixaq && myconf="${myconf} --enable-prefixaq"
+       use spoof  && myconf="${myconf} --enable-nospoof"
+       use showlistmodes && myconf="${myconf} --with-showlistmodes"
+       use topicisnuhost && myconf="${myconf} --with-topicisnuhost"
+       use shunnotices && myconf="${myconf} --with-shunnotices"
+       use operoverride || myconf="${myconf} --with-no-operoverride"
+       use operoverride-verify && myconf="${myconf} --with-operoverride-verify"
+       use usermod || myconf="${myconf} --with-disableusermod"
+
+       econf \
+               --with-listen=5 \
+               --with-dpath="${D}"/etc/unrealircd \
+               --with-spath=/usr/bin/unrealircd \
+               --with-nick-history=2000 \
+               --with-sendq=3000000 \
+               --with-bufferpool=18 \
+               --with-hostname=$(hostname -f) \
+               --with-permissions=0600 \
+               --with-fd-setsize=1024 \
+               --with-system-cares \
+               --with-system-tre \
+               --enable-dynamic-linking \
+               ${myconf}
+
+       # Fix upstream poor autofoo
+       sed -i \
+               -e "s:${D}::g" \
+               include/setup.h \
+               ircdcron/ircdchk \
+               || die
+}
+
+src_compile() {
+       emake MAKE=make IRCDDIR=/etc/unrealircd || die "emake failed"
+}
+
+src_install() {
+       keepdir /var/{lib,log,run}/unrealircd
+
+       newbin src/ircd unrealircd || die
+
+       exeinto /usr/$(get_libdir)/unrealircd/modules
+       doexe src/modules/*.so || die
+
+       dodir /etc/unrealircd
+       dosym /var/lib/unrealircd /etc/unrealircd/tmp || die
+
+       insinto /etc/unrealircd
+       doins {badwords.*,help,spamfilter,dccallow}.conf || die
+       newins doc/example.conf unrealircd.conf || die
+
+       insinto /etc/unrealircd/aliases
+       doins aliases/*.conf || die
+       insinto /etc/unrealircd/networks
+       doins networks/*.network || die
+
+       sed -i \
+               -e s:src/modules:/usr/$(get_libdir)/unrealircd/modules: \
+               -e s:ircd\\.log:/var/log/unrealircd/ircd.log: \
+               "${D}"/etc/unrealircd/unrealircd.conf \
+               || die
+
+       dodoc \
+               Changes Donation Unreal.nfo networks/makenet \
+               ircdcron/{ircd.cron,ircdchk} \
+               || die "dodoc failed"
+       dohtml doc/*.html || die
+
+       newinitd "${FILESDIR}"/unrealircd.rc unrealircd || die
+       newconfd "${FILESDIR}"/unrealircd.confd unrealircd
+
+       fperms 700 /etc/unrealircd || die
+       chown -R unrealircd "${D}"/{etc,var/{lib,log,run}}/unrealircd ||die
+}
+
+pkg_postinst() {
+       # Move docert call from scr_install() to install_cert in pkg_postinst for
+       # bug #201682
+       if use ssl ; then
+               if [[ ! -f "${ROOT}"/etc/unrealircd/server.cert.key ]]; then
+                       install_cert /etc/unrealircd/server.cert || die
+                       chown unrealircd "${ROOT}"/etc/unrealircd/server.cert.* || die
+                       ln -snf server.cert.key "${ROOT}"/etc/unrealircd/server.key.pem || die
+               fi
+       fi
+
+       elog
+       elog "UnrealIRCd will not run until you've set up /etc/unrealircd/unrealircd.conf"
+       elog
+       elog "You can find example cron scripts here:"
+       elog "   /usr/share/doc/${PF}/ircd.cron.gz"
+       elog "   /usr/share/doc/${PF}/ircdchk.gz"
+       elog
+       elog "You can also use /etc/init.d/unrealircd to start at boot"
+       elog
+}