Changeset - 78ac2809ab02
[Not reviewed]
default
0 3 0
Nathan Brink (binki) - 16 years ago 2009-03-30 16:59:16
ohnobinki@ohnopublishing.net
net-irc/unrealircd: fixed dependancy which requested newer than necessary c-ares
3 files changed with 4 insertions and 4 deletions:
0 comments (0 inline, 0 general)
net-irc/unrealircd/Manifest
Show inline comments
 
AUX unrealircd-system-cares-3.2.7.patch 5472 RMD160 d6e817e98b029c6a03e3e49fbcf636eddf6e8c64 SHA1 5b02b22ce79d8c1aa5622e967b974af274c26e3b SHA256 5ad9062bd3b2820476151f84fca810981f094f305d5eb43ca048d3f9de0d7dfe
 
AUX unrealircd-system-cares-3.2.8.patch 4850 RMD160 6bd9456bda2b1dc233cf7ad97c60c0ee11c1f99b SHA1 e9086146a7031b874e514eb2a22c06b5decb8adf SHA256 e3be39af381c12349355ed44c1bfac1a205a84728d006fd3de3cff0a564ee0d9
 
AUX unrealircd-system-tre.patch 2238 RMD160 bfac0ded81b84eed017c8fac8ee6bffaa0a6c73a SHA1 d61c537e780016dd1bf78cfac15025cfea3569a3 SHA256 91a11df3fa1db0924311cd02ba7d0cb1a0b26066e9c65bad5756226baf08e9c9
 
AUX unrealircd.confd 499 RMD160 666439c6e992d3314f8694ba58e8f3e018421f1c SHA1 5cb49d7e9a79c7f8e0b2182dff47811a2f3fb885 SHA256 ae6ce779fae68c1380a7d37950c5ef3b695e434bb435dcdc0f6d3d2282f72582
 
AUX unrealircd.rc 640 RMD160 186125558866976380eddae397aba4534a088732 SHA1 815d6950ddb79ca86fa8c887a4386ae9ddd58abe SHA256 a1ac6330e573dc5429153de98c9a8619a92d7ae3502a06e47f392dcaf90f2b07
 
DIST Unreal3.2.7.tar.gz 2801622 RMD160 49e00dbe4fdda672b20be16ceb116971f514d62b SHA1 a6c83c186008c429bc5a476fc0b9e3b174092efb SHA256 f80078da5e9efa1487ab22957aeb295f94c2d4efd144f825f1efc5ee8df72d46
 
DIST Unreal3.2.8.tar.gz 2872378 RMD160 bcf8b2bb7475aad3b25dd63b48696c39dcbd4243 SHA1 4b03254d5e19b827f0653a083c0b7f895914b8be SHA256 99fb064a356ed86aa135d2c382a3f10a9b98de6272be6a5bd0f80e2179100958
 
EBUILD unrealircd-3.2.7-r2.ebuild 4501 RMD160 f44cf29206d5b5a0d4dbabf633723c0c7d622100 SHA1 cb7bfe628c3f3a77a05f0090a0d77f115e6c7744 SHA256 aa37855ddc2bfe7af6714c854f2152ec526252bc9d2a7509f92588aaf29a01f0
 
EBUILD unrealircd-3.2.8.ebuild 4527 RMD160 6583e92094380f8b7ecb2aa69b59b415eb1a5dcd SHA1 cb32fcde9e81184a1414248eb5ce7438e16ea1ae SHA256 b3198852377e732f287f60858803d8ce0a1083605770d87f1be4dca0314a612d
 
EBUILD unrealircd-3.2.7-r2.ebuild 4498 RMD160 11c41e7eb46a1874db6c07a27d8a2f5fd6471e81 SHA1 f8da6b1dd0a50d8dd894baddecf4d771aedef964 SHA256 1109ae4a6401e0a5147999a8d8d483b2f358a3bdb9f7f4d153a9081a55920dcf
 
EBUILD unrealircd-3.2.8.ebuild 4524 RMD160 35ab5f1a60cf6372413bb50d293e4d19bf31d632 SHA1 5354ca5ea5d29af785da43ac37a3a4be0f745e10 SHA256 8ea7a8d2285486d9633042ea1109acc652ca9b9f40f8355b62f4eb64ab0932dc
 
MISC ChangeLog 10068 RMD160 2f4488a9457a3f3fcc53746e1efb1194b08ec776 SHA1 a4b6da530222840174b3500856b1b3da91c482e8 SHA256 cd1df736f0ca3facec726b324385e10103090d12fe7a6ad571c21a1f7d45ae4a
 
MISC metadata.xml 376 RMD160 62b344feca2e09d554426e39e91a36e48e6c255e SHA1 42a9ba4afb8b8d3d13c7babc13a5a66f0a41d395 SHA256 d5fe303d93d8469ffe66e09541b913847cd5a8964eb90f205898359827d4a048
net-irc/unrealircd/unrealircd-3.2.7-r2.ebuild
Show inline comments
 
# Copyright 1999-2008 Gentoo Foundation
 
# Distributed under the terms of the GNU General Public License v2
 
# $Header: /var/cvsroot/gentoo-x86/net-irc/unrealircd/unrealircd-3.2.7-r2.ebuild,v 1.4 2008/08/11 21:31:36 ricmm Exp $
 

	
 
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://unreal.brueggisite.de/${MY_P}.tar.gz
 
	http://www.blurryfox.com/unreal/${MY_P}.tar.gz
 
	mirror://gentoo/${MY_P}.tar.gz"
 

	
 
SLOT="0"
 
LICENSE="GPL-2"
 
KEYWORDS="~amd64 ~mips ~ppc ~sparc ~x86 ~x86-fbsd"
 
IUSE="hub ipv6 ssl zlib curl prefixaq showlistmodes"
 

	
 
RDEPEND="ssl? ( dev-libs/openssl )
 
	zlib? ( sys-libs/zlib )
 
	curl? ( net-misc/curl )
 
	dev-libs/tre
 
	>=net-dns/c-ares-1.5.3-r1"
 
	>=net-dns/c-ares-1.5.3"
 
DEPEND="${RDEPEND}
 
	>=sys-apps/sed-4"
 

	
 
S="${WORKDIR}/Unreal${PV}"
 

	
 
pkg_setup() {
 
	if use curl && ( ! built_with_use net-misc/curl ares || built_with_use net-misc/curl ipv6 )
 
	then
 
		eerror "You need net-misc/curl compiled with the ares USE flag to be able to use"
 
		eerror "net-irc/unrealircd with the curl USE flag. Please note that ares support"
 
		eerror "for net-misc/curl is incompatible with the ipv6 USE flag."
 
		die "need net-misc/curl with ares support"
 
	fi
 

	
 
	enewuser unrealircd
 
}
 

	
 
src_unpack() {
 
	unpack ${A}
 
	cd "${S}"
 

	
 
#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
 

	
 
	epatch "${FILESDIR}"/unrealircd-system-tre.patch
 
	epatch "${FILESDIR}"/unrealircd-system-cares-3.2.7.patch
 

	
 
	mv autoconf/configure.in ./
 
	mv autoconf/aclocal.m4 ./acinclude.m4
 
	#can't call eautoreconf because aclocal's source files aren't even in unearlircd's svn!
 
	eaclocal || die "eaclocal failed"
 
	eautoconf || die "eautoconf failed"
 
}
 

	
 
src_compile() {
 
	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 showlistmodes && myconf="${myconf} --with-showlistmodes"
 

	
 
	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-tre \
 
		--with-system-cares \
 
		--enable-dynamic-linking \
 
		${myconf} \
 
		|| die "econf failed"
 

	
 
	sed -i \
 
		-e "s:${D}::" \
 
		include/setup.h \
 
		ircdcron/ircdchk
 

	
 
	emake MAKE=make IRCDDIR=/etc/unrealircd || die "emake failed"
 
}
 

	
 
src_install() {
 
	keepdir /var/{lib,log,run}/unrealircd
 

	
 
	newbin src/ircd unrealircd
 

	
 
	exeinto /usr/$(get_libdir)/unrealircd/modules
 
	doexe src/modules/*.so
 

	
 
	dodir /etc/unrealircd
 
	dosym /var/lib/unrealircd /etc/unrealircd/tmp
 

	
 
	insinto /etc/unrealircd
 
	doins {badwords.*,help,spamfilter,dccallow}.conf
 
	newins doc/example.conf unrealircd.conf
 

	
 
	insinto /etc/unrealircd/aliases
 
	doins aliases/*.conf
 
	insinto /etc/unrealircd/networks
 
	doins networks/*.network
 

	
 
	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
 

	
 
	dodoc \
 
		Changes Donation Unreal.nfo networks/makenet \
 
		ircdcron/{ircd.cron,ircdchk} \
 
		|| die "dodoc failed"
 
	dohtml doc/*.html
 

	
 
	newinitd "${FILESDIR}"/unrealircd.rc unrealircd
 
	newconfd "${FILESDIR}"/unrealircd.confd unrealircd
 

	
 
	fperms 700 /etc/unrealircd
 
	chown -R unrealircd "${D}"/{etc,var/{lib,log,run}}/unrealircd
 
}
 

	
 
pkg_postinst() {
 
	# Move docert call from scr_install() to install_cert in pkg_postinst for
 
	# bug #201682
 
	use ssl && \
 
		if [[ ! -f "${ROOT}"/etc/unrealircd/server.cert.key ]]; then
 
			install_cert /etc/unrealircd/server.cert
 
			chown unrealircd "${ROOT}"/etc/unrealircd/server.cert.*
 
			ln -snf server.cert.key "${ROOT}"/etc/unrealircd/server.key.pem
 
		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
 
}
net-irc/unrealircd/unrealircd-3.2.8.ebuild
Show inline comments
 
# Copyright 1999-2008 Gentoo Foundation
 
# Distributed under the terms of the GNU General Public License v2
 
# $Header: /var/cvsroot/gentoo-x86/net-irc/unrealircd/unrealircd-3.2.7-r2.ebuild,v 1.4 2008/08/11 21:31:36 ricmm Exp $
 

	
 
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://unreal.brueggisite.de/${MY_P}.tar.gz
 
	http://www.blurryfox.com/unreal/${MY_P}.tar.gz
 
	mirror://gentoo/${MY_P}.tar.gz"
 

	
 
SLOT="0"
 
LICENSE="GPL-2"
 
KEYWORDS="~amd64 ~mips ppc sparc x86 ~x86-fbsd"
 
IUSE="hub ipv6 ssl zlib curl prefixaq showlistmodes"
 

	
 
RDEPEND="ssl? ( dev-libs/openssl )
 
	zlib? ( sys-libs/zlib )
 
	curl? ( net-misc/curl )
 
	dev-libs/tre
 
	>=net-dns/c-ares-1.5.3-r1"
 
	>=net-dns/c-ares-1.5.3"
 
DEPEND="${RDEPEND}
 
	>=sys-apps/sed-4"
 

	
 
S="${WORKDIR}/Unreal$(get_version_component_range 1-2)"
 

	
 
pkg_setup() {
 
	if use curl && ( ! built_with_use net-misc/curl ares || built_with_use net-misc/curl ipv6 )
 
	then
 
		eerror "You need net-misc/curl compiled with the ares USE flag to be able to use"
 
		eerror "net-irc/unrealircd with the curl USE flag. Please note that ares support"
 
		eerror "for net-misc/curl is incompatible with the ipv6 USE flag."
 
		die "need net-misc/curl with ares support"
 
	fi
 

	
 
	enewuser unrealircd
 
}
 

	
 
src_unpack() {
 
	unpack ${A}
 
	cd "${S}"
 

	
 
#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
 

	
 
	epatch "${FILESDIR}"/unrealircd-system-tre.patch
 
	epatch "${FILESDIR}"/unrealircd-system-cares-3.2.8.patch
 

	
 
	mv autoconf/configure.in ./
 
	mv autoconf/aclocal.m4 ./acinclude.m4
 
	#can't call eautoreconf because aclocal's source files aren't even in unearlircd's svn!
 
	eaclocal || die "eaclocal failed"
 
	eautoconf || die "eautoconf failed"
 
}
 

	
 
src_compile() {
 
	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 showlistmodes && myconf="${myconf} --with-showlistmodes"
 

	
 
	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-tre \
 
		--with-system-cares \
 
		--enable-dynamic-linking \
 
		${myconf} \
 
		|| die "econf failed"
 

	
 
	sed -i \
 
		-e "s:${D}::" \
 
		include/setup.h \
 
		ircdcron/ircdchk
 

	
 
	emake MAKE=make IRCDDIR=/etc/unrealircd || die "emake failed"
 
}
 

	
 
src_install() {
 
	keepdir /var/{lib,log,run}/unrealircd
 

	
 
	newbin src/ircd unrealircd
 

	
 
	exeinto /usr/$(get_libdir)/unrealircd/modules
 
	doexe src/modules/*.so
 

	
 
	dodir /etc/unrealircd
 
	dosym /var/lib/unrealircd /etc/unrealircd/tmp
 

	
 
	insinto /etc/unrealircd
 
	doins {badwords.*,help,spamfilter,dccallow}.conf
 
	newins doc/example.conf unrealircd.conf
 

	
 
	insinto /etc/unrealircd/aliases
 
	doins aliases/*.conf
 
	insinto /etc/unrealircd/networks
 
	doins networks/*.network
 

	
 
	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
 

	
 
	dodoc \
 
		Changes Donation Unreal.nfo networks/makenet \
 
		ircdcron/{ircd.cron,ircdchk} \
 
		|| die "dodoc failed"
 
	dohtml doc/*.html
 

	
 
	newinitd "${FILESDIR}"/unrealircd.rc unrealircd
 
	newconfd "${FILESDIR}"/unrealircd.confd unrealircd
 

	
 
	fperms 700 /etc/unrealircd
 
	chown -R unrealircd "${D}"/{etc,var/{lib,log,run}}/unrealircd
 
}
 

	
 
pkg_postinst() {
 
	# Move docert call from scr_install() to install_cert in pkg_postinst for
 
	# bug #201682
 
	use ssl && \
 
		if [[ ! -f "${ROOT}"/etc/unrealircd/server.cert.key ]]; then
 
			install_cert /etc/unrealircd/server.cert
 
			chown unrealircd "${ROOT}"/etc/unrealircd/server.cert.*
 
			ln -snf server.cert.key "${ROOT}"/etc/unrealircd/server.key.pem
 
		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
 
}
0 comments (0 inline, 0 general)