diff --git a/net-irc/unrealircd/Manifest b/net-irc/unrealircd/Manifest --- a/net-irc/unrealircd/Manifest +++ b/net-irc/unrealircd/Manifest @@ -8,7 +8,7 @@ DIST Unreal3.2.7.tar.gz 2801622 RMD160 4 DIST Unreal3.2.8.1.tar.gz 2866456 RMD160 c8e76239e33ba170743f2ddae6bc24782064f105 SHA1 363c3c995bb38cf601f409610ce1937a0002c419 SHA256 009add8da68b6fb66608d06302e59fa9fb994f901cbd92e6f4f10963f2077741 DIST Unreal3.2.8.tar.gz 2872378 RMD160 bcf8b2bb7475aad3b25dd63b48696c39dcbd4243 SHA1 4b03254d5e19b827f0653a083c0b7f895914b8be SHA256 99fb064a356ed86aa135d2c382a3f10a9b98de6272be6a5bd0f80e2179100958 EBUILD unrealircd-3.2.7-r2.ebuild 4498 RMD160 11c41e7eb46a1874db6c07a27d8a2f5fd6471e81 SHA1 f8da6b1dd0a50d8dd894baddecf4d771aedef964 SHA256 1109ae4a6401e0a5147999a8d8d483b2f358a3bdb9f7f4d153a9081a55920dcf -EBUILD unrealircd-3.2.8.1.ebuild 5518 RMD160 72364da341733351dc3c051f7e201b7200480fa5 SHA1 ed1f9ab462871a943174f59b8c1c482c24d6c80b SHA256 11adefd62553e4dcb63ac963ae0e1f361e11e51eaea758a35d03340c63112c21 +EBUILD unrealircd-3.2.8.1.ebuild 4712 RMD160 a8561237381a95230aaf4060ca26437d223c6e83 SHA1 2ce6709ec30d97ae860f90d35fe4d16cdabab88c SHA256 41ff02bb09d34ea691b7217823cb95d8266be7ba6ee1a9313e16ab2306e2eea6 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 831 RMD160 1c4d3c26f080417af9af3b86d92315febfa31549 SHA1 f0697d35ac29692f18153216d46f3439a3c95410 SHA256 b71bc394366c609646cf3f371e9956ac27b854a4bda17cf6c934f1e95aa0a844 diff --git a/net-irc/unrealircd/unrealircd-3.2.8.1.ebuild b/net-irc/unrealircd/unrealircd-3.2.8.1.ebuild --- a/net-irc/unrealircd/unrealircd-3.2.8.1.ebuild +++ b/net-irc/unrealircd/unrealircd-3.2.8.1.ebuild @@ -2,6 +2,8 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: net-irc/unrealircd/unrealircd-3.2.8.1.ebuild,v 1.5 2009/04/15 08:57:36 j0inty Exp $ +EAPI="2" + inherit eutils autotools ssl-cert versionator multilib MY_P=Unreal${PV} @@ -15,50 +17,23 @@ SRC_URI="http://unrealircd.icedslash.com SLOT="0" LICENSE="GPL-2" KEYWORDS="~amd64 ~mips ~ppc ~sparc ~x86 ~x86-fbsd" - -## USE Flags +IUSE="-curl disableusermod +hub -ipv6 no-operoverride -nospoof operoverride-verify +prefixaq showlistmodes shunnotices -ssl topicisnuhost -zlib" -# nospoof Enable spoofing protection -# prefixaq Enable chanadmin and chanowner prefixes -# hub Compile as a hub server -# ssl= enable ssl will check /usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr -# zlib enable ziplinks will check /usr/local /usr /usr/pkg -# curl enable libcurl (remote include) support -# static --disable-dynamic-linking Make the IRCd dynamically link shared objects rather than statically (NOTE: Not avalaible atm) -# ipv6 Make the IRCd support IPv6 -# showlistmodes Specify whether modes are shown in /list -# topicisnuhost Display nick!user@host as the topic setter -# shunnotices Notify a user when he/she is no longer shunned -# no-operoverride Disable OperOverride -# disableusermod Disable /set* and /chg* -# operoverride-verify Require opers to invite themselves to +s/+p channels -IUSE="hub ipv6 ssl zlib curl prefixaq nospoof disableusermod no-operoverride operoverride-verify showlistmodes topicisnuhost shunnotices" - -DEPEND="ssl? ( dev-libs/openssl ) +RDEPEND="ssl? ( dev-libs/openssl ) zlib? ( sys-libs/zlib ) - curl? ( net-misc/curl ) + curl? ( net-misc/curl[ares,-ipv6] ) dev-libs/tre - >=net-dns/c-ares-1.6.0 + >=net-dns/c-ares-1.5.3" +DEPEND="${RDEPEND} >=sys-apps/sed-4" -S="${WORKDIR}/Unreal3.2" +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}" - +src_prepare() { #QA check against bundled pkgs: rm extras/*.gz @@ -71,7 +46,7 @@ src_unpack() { # 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 ./ @@ -81,7 +56,21 @@ src_unpack() { eautoconf || die "eautoconf failed" } -src_compile() { +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 nospoof && myconf="${myconf} --enable-nospoof" + use showlistmodes && myconf="${myconf} --enable-showlistmodes" + use topicisnuhost && myconf="${myconf} --enable-topicisnuhost" + use shunnotices && myconf="${myconf} --with-shunnotices" + use no-operoverride && myconf="${myconf} --with-no-operoverride" + use operoverride-verify && myconf="${myconf} --with-operoverride-verify" + use disableusermod && myconf="${myconf} --with-disableusermod" econf \ --with-listen=5 \ @@ -96,26 +85,16 @@ src_compile() { --with-system-cares \ --with-system-tre \ --enable-dynamic-linking \ - $(use_enable curl libcurl /usr) \ - $(use_enable ipv6 inet6) \ - $(use_enable zlib ziplinks) \ - $(use_enable ssl) \ - $(use_enable hub) \ - $(use_enable prefixaq) \ - $(use_enable nospoof) \ - $(use_with showlistmodes) \ - $(use_with topicisnuhost) \ - $(use_with shunnotices) \ - $(use_with no-operoverride) \ - $(use_with operoverride-verify) \ - $(use_with disableusermod) \ + ${myconf} \ || die "econf failed" sed -i \ -e "s:${D}::" \ include/setup.h \ ircdcron/ircdchk +} +src_compile() { emake MAKE=make IRCDDIR=/etc/unrealircd || die "emake failed" }