diff options
author | Nathan Phillip Brink <binki@gentoo.org> | 2011-06-24 03:59:16 +0000 |
---|---|---|
committer | Nathan Phillip Brink <binki@gentoo.org> | 2011-06-24 03:59:16 +0000 |
commit | 087039866c3f061e3b64e33ab8615a5a17da329e (patch) | |
tree | 9b69cde8cd42d2f2ea11d40de68906f6df1c14f9 /net-irc/unrealircd | |
parent | Add gentoo-prefix support, tested on amd64-linux. (diff) | |
download | historical-087039866c3f061e3b64e33ab8615a5a17da329e.tar.gz historical-087039866c3f061e3b64e33ab8615a5a17da329e.tar.bz2 historical-087039866c3f061e3b64e33ab8615a5a17da329e.zip |
Add support for prefix, tested on amd64-linux (ubuntu).
Package-Manager: portage-2.2.0_alpha37-r1/cvs/Linux x86_64
Diffstat (limited to 'net-irc/unrealircd')
-rw-r--r-- | net-irc/unrealircd/ChangeLog | 8 | ||||
-rw-r--r-- | net-irc/unrealircd/Manifest | 33 | ||||
-rw-r--r-- | net-irc/unrealircd/unrealircd-3.2.8.1-r2.ebuild | 163 |
3 files changed, 187 insertions, 17 deletions
diff --git a/net-irc/unrealircd/ChangeLog b/net-irc/unrealircd/ChangeLog index 2a06d1cccd61..4922ee977659 100644 --- a/net-irc/unrealircd/ChangeLog +++ b/net-irc/unrealircd/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-irc/unrealircd # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-irc/unrealircd/ChangeLog,v 1.83 2011/06/21 11:34:42 hwoarang Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-irc/unrealircd/ChangeLog,v 1.84 2011/06/24 03:59:16 binki Exp $ + +*unrealircd-3.2.8.1-r2 (24 Jun 2011) + + 24 Jun 2011; Nathan Phillip Brink <binki@gentoo.org> + +unrealircd-3.2.8.1-r2.ebuild: + Add support for prefix, tested on amd64-linux (ubuntu). 21 Jun 2011; Markos Chandras <hwoarang@gentoo.org> unrealircd-3.2.8.1-r1.ebuild: diff --git a/net-irc/unrealircd/Manifest b/net-irc/unrealircd/Manifest index ae5d5c30c7fc..0a01b5599eb5 100644 --- a/net-irc/unrealircd/Manifest +++ b/net-irc/unrealircd/Manifest @@ -1,5 +1,5 @@ -----BEGIN PGP SIGNED MESSAGE----- -Hash: SHA512 +Hash: SHA256 AUX unrealircd-system-cares.patch 4850 RMD160 6bd9456bda2b1dc233cf7ad97c60c0ee11c1f99b SHA1 e9086146a7031b874e514eb2a22c06b5decb8adf SHA256 e3be39af381c12349355ed44c1bfac1a205a84728d006fd3de3cff0a564ee0d9 AUX unrealircd-system-tre.patch 2265 RMD160 16324b6639585d3c62b763f9f0f36c233ed0bbf0 SHA1 df61297ad7dd136884ff78644bd2c98b2c794578 SHA256 2a5e958a19e6b85df1a2f30cc56443f8080a0b7f2c01e6765cfe6b758c16615d @@ -7,22 +7,23 @@ AUX unrealircd.confd 499 RMD160 666439c6e992d3314f8694ba58e8f3e018421f1c SHA1 5c AUX unrealircd.rc 681 RMD160 a0692b5eb4bdeb8893e023b78306b55c4df1c441 SHA1 fb885a544a5c4a9e26ecb7425457d097fffb5e1f SHA256 0d9eb50d6352c6d57cb1df10f26ffd8a5204e5f5aa2ba27f441947107de655f9 DIST Unreal3.2.8.1-notrojan.tar.gz 2866456 RMD160 c8e76239e33ba170743f2ddae6bc24782064f105 SHA1 363c3c995bb38cf601f409610ce1937a0002c419 SHA256 009add8da68b6fb66608d06302e59fa9fb994f901cbd92e6f4f10963f2077741 EBUILD unrealircd-3.2.8.1-r1.ebuild 4803 RMD160 6d57d84c9115f478fbc394358d853d5062e2e213 SHA1 4ca9d055ee72ff9d6c0547ca104b97caf6d97484 SHA256 89e2a1ff11f5dfd9b6138d049ee314919a5c6531a285b5a680410c025ca467e3 -MISC ChangeLog 12049 RMD160 2221a32643aa35d41d6b182c1cf7bb8820985934 SHA1 8bf5aaa1a0c58c876f2fe49edfcb5436b27679ca SHA256 b352e39332ec422185c2f1c2231ded11c8c76cd61ce7456b51d681dcd6494e09 +EBUILD unrealircd-3.2.8.1-r2.ebuild 4805 RMD160 b8aaee5beed2b08ac82234feb1d71cbb2e24e8d3 SHA1 58547e0738cf9d5c8dc1a1ff37825f6e69e552ea SHA256 0dee22cd9405551054e806efaabc92a5b6f9b5d073e8568280d2a6ff1caef0af +MISC ChangeLog 12231 RMD160 c6b6ce8269c81db0098076d3ff93aa631fda75b5 SHA1 34e86c7d4058862c755e2028bced03d4daa18dc0 SHA256 60b041a64ca88c7f4db6cad57d1d59902406647a981c5b9ec632b7b913b6f207 MISC metadata.xml 891 RMD160 db526c6aac78e08571a7a1ed8ede3b1a6dff0d77 SHA1 c1be63bf335014df1672aa63033d5094adf68a6e SHA256 0da56c8f8ea49e8c91c1281349e1fae167c897c0530959c3026410cd51976ab2 -----BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.17 (GNU/Linux) +Version: GnuPG v2.0.14 (GNU/Linux) -iQIcBAEBCgAGBQJOAIIUAAoJEPqDWhW0r/LC0w0QAIEqI2ShpmKoTyBHMrJMd+9N -39/Ojrag5/2viWKbZgr23K61pZ6slUd19OhsQaJuKaWEstSA2SPNSJk5AK/vSsHV -NFqg+X6VsX94L+P7BQ1JedVJqYDJWqsHvxt9Tub8v9P7FrI/beujaMYv5/HBzxzR -PgvkfVQOjbEI9sdRQ8W9pEBM7T0iGy+2iErOj65GSr3SNbt1tcPItwxJz7gIcSgZ -hQforzZXhNLRczNi6+nlUlAoq4fAgJ39MzbgjO7MqvagZSivU8YOWIO9v+0NHSVI -8lMYRxAbPwCcqS87lMjn7x2AkKRq6n5WkSG8myOTyTO2pux2NRf5AEYQnuz5az9P -KuoZ9SKAQmsu2QdfNcHt4JJl/r85Py8zxzSZElZts04Vh4VSo48O5ZpmYYYa7k1C -2Ms2R6IHHLxOwESEDeuy+Tm2wc9QGWJWjHeTQ3lhsTabvv6ajynt7FnkTn2VCLDH -H1zqqJhmbGhg+k79N89jt+uzvACR7DmF8S8UkCZy+LcN4ws3Fs5yEunjhHekklt1 -08vL0ZJeZZTGJdD9ha7yp7DG/LNUzQ+3Hi+p0pVf8Bv1Z1vG9QB1Oan8kWyRB3jX -wCUIa3wFskD5YEN6dxj74UDheyLte2+8MXx8FWpm9J737qTO9sgk4VeQD98Orva3 -rt6TthMJOY/cwYrZBCx5 -=qbct +iQIcBAEBCAAGBQJOBAvBAAoJEHQ6UuhrqBBQrPYQAKFqu8cxznJ2uDvxG7jsLRcB +anwDgnW92q810DCLyue8PL3sAFTg8Q1RaYktNOSkTm2LILmYLUx6EVmRpBZX2b1D +KGc9QBaRLO8nEreLNMGjmIxpvV0TwObEsC06EC+kGlALuJZPX9MsuP5KK/pWW7N7 +4dNE9LoUjvbhsLz1/0Kpz0kuH+wiU8ijj/ZHhvQX99FXg0tFFk8SLr7TiYWP+Cqa +E7XRAUzZ2uWEevuhwMBnp/wVHfiQPOP2i0RYhN0b/Qd2sxbQEI8X818tbcnmCuhl +NKq792W7e4YZGSgBDJyBb0tKt2GkdgKQ8zUSpXYsjKoLyuOb2msAEDuRRoAUKkEq +im3O2hwhg0xD0K4i/ogDM37o0jVZgBVrLG2wrhSZUHYNRLUp5j/CvVDPVc5aHZP/ +lkJcTSk/gAZBKpWVUjPfXoKYOydnwLTIRKv3ihbgc+R5xLjJQRb2UJ3jJcS6lQAS ++OJhIn1ZtgEgTVWM8sVuW7hPf8HFdM7zJhChAnSpyOpg4f6tAOaZamRcxAAXgGHM +hFRKKzoN9TlGZcJ+yV8QGxwLi1pXxraPA8Cu5pcq6F+1IbHGIvG9disetWIu63YC +s6ErtkS930P8CaO0qmklHx8pxUqPEhz/is3laPDmoh0JHnRg2Uc92wWtFz4MX5Q2 +l2qbSffPPFXEhH4fB4n+ +=44k7 -----END PGP SIGNATURE----- diff --git a/net-irc/unrealircd/unrealircd-3.2.8.1-r2.ebuild b/net-irc/unrealircd/unrealircd-3.2.8.1-r2.ebuild new file mode 100644 index 000000000000..4e042a1a7496 --- /dev/null +++ b/net-irc/unrealircd/unrealircd-3.2.8.1-r2.ebuild @@ -0,0 +1,163 @@ +# Copyright 1999-2011 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-r2.ebuild,v 1.1 2011/06/24 03:59:16 binki 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="mirror://gentoo/${MY_P}-notrojan.tar.gz" +#SRC_URI="http://www.unrealircd.com/downloads/${MY_P}.tar.gz" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~x86-fbsd ~amd64-linux" +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[ares] ) + dev-libs/tre + >=net-dns/c-ares-1.5.3" +DEPEND="${RDEPEND} + >=sys-apps/sed-4 + >=dev-util/pkgconfig-0.25" + +S="${WORKDIR}/Unreal$(get_version_component_range 1-2)" + +pkg_setup() { + enewuser unrealircd +} + +src_prepare() { + #QA check against bundled pkgs + rm extras/*.gz || die + + sed -i \ + -e "s:ircd\.pid:${EPREFIX}/var/run/unrealircd/ircd.pid:" \ + -e "s:ircd\.log:${EPREFIX}/var/log/unrealircd/ircd.log:" \ + -e "s:debug\.log:${EPREFIX}/var/log/unrealircd/debug.log:" \ + -e "s:ircd\.tune:${EPREFIX}/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+=(--enable-libcurl="${EPREFIX}"/usr) + use ipv6 && myconf+=(--enable-inet6) + use zlib && myconf+=(--enable-ziplinks="${EPREFIX}"/usr) + use hub && myconf+=(--enable-hub) + use ssl && myconf+=(--enable-ssl="${EPREFIX}"/usr) + use prefixaq && myconf+=(--enable-prefixaq) + use spoof && myconf+=(--enable-nospoof) + use showlistmodes && myconf+=(--with-showlistmodes) + use topicisnuhost && myconf+=(--with-topicisnuhost) + use shunnotices && myconf+=(--with-shunnotices) + use operoverride || myconf+=(--with-no-operoverride) + use operoverride-verify && myconf+=(--with-operoverride-verify) + use usermod || myconf+=(--with-disableusermod) + + econf \ + --with-listen=5 \ + --with-dpath="${ED}"/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:"${EPREFIX}"/usr/$(get_libdir)/unrealircd/modules: \ + -e s:ircd\\.log:"${EPREFIX}"/var/log/unrealircd/ircd.log: \ + "${ED}"/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 + fowners -R unrealircd /{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 "${EROOT}"/etc/unrealircd/server.cert.key ]]; then + install_cert /etc/unrealircd/server.cert + chown unrealircd "${EROOT}"/etc/unrealircd/server.cert.* + ln -snf server.cert.key "${EROOT}"/etc/unrealircd/server.key.pem + 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 +} |