diff options
author | Manuel Rüger <mrueg@gentoo.org> | 2015-06-28 19:20:53 +0000 |
---|---|---|
committer | Manuel Rüger <mrueg@gentoo.org> | 2015-06-28 19:20:53 +0000 |
commit | b41e5ee84a81f28103f3ddfa346cdec568682053 (patch) | |
tree | 153da570d8bc6b563a8a89b1e914769fc88d2d01 /net-irc | |
parent | Fix compile issue on fbsd (bug #494740). Cleanup old. (diff) | |
download | historical-b41e5ee84a81f28103f3ddfa346cdec568682053.tar.gz historical-b41e5ee84a81f28103f3ddfa346cdec568682053.tar.bz2 historical-b41e5ee84a81f28103f3ddfa346cdec568682053.zip |
Remove old.
Package-Manager: portage-2.2.20/cvs/Linux x86_64
Diffstat (limited to 'net-irc')
-rw-r--r-- | net-irc/unrealircd/ChangeLog | 9 | ||||
-rw-r--r-- | net-irc/unrealircd/Manifest | 27 | ||||
-rw-r--r-- | net-irc/unrealircd/files/unrealircd-3.2.9-disabled-stacked-extbans.patch | 22 | ||||
-rw-r--r-- | net-irc/unrealircd/unrealircd-3.2.10.2.ebuild | 209 | ||||
-rw-r--r-- | net-irc/unrealircd/unrealircd-3.2.9.ebuild | 163 |
5 files changed, 8 insertions, 422 deletions
diff --git a/net-irc/unrealircd/ChangeLog b/net-irc/unrealircd/ChangeLog index b3129d2a4dfd..1e5f9029b155 100644 --- a/net-irc/unrealircd/ChangeLog +++ b/net-irc/unrealircd/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-irc/unrealircd -# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-irc/unrealircd/ChangeLog,v 1.121 2014/10/10 10:50:19 ago Exp $ +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-irc/unrealircd/ChangeLog,v 1.122 2015/06/28 19:20:50 mrueg Exp $ + + 28 Jun 2015; Manuel Rüger <mrueg@gentoo.org> + -files/unrealircd-3.2.9-disabled-stacked-extbans.patch, + -unrealircd-3.2.10.2.ebuild, -unrealircd-3.2.9.ebuild: + Remove old. 10 Oct 2014; Agostino Sarubbo <ago@gentoo.org> unrealircd-3.2.10.4.ebuild: Stable for x86, wrt bug #521706 diff --git a/net-irc/unrealircd/Manifest b/net-irc/unrealircd/Manifest index 915d43bd3c2a..d377b9d97198 100644 --- a/net-irc/unrealircd/Manifest +++ b/net-irc/unrealircd/Manifest @@ -1,31 +1,6 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA256 - -AUX unrealircd-3.2.9-disabled-stacked-extbans.patch 800 SHA256 b4005233ead9a7af056a4c33281ffcda3027cfd3af617e39b1de5438162863bc SHA512 586f59bf47e1fbe422979efd6219a7f8d9c1f648a342110910e26be6e8407383dc16af30a9791fde58712b21e4e216fa2f5b7ccfb001bc893f934f831031002d WHIRLPOOL 54ca41b6f129ea125f4fa23259edcb096d5eaedd0b00faf9f5a8f6254ab8085f5894881ce275a15e7a85382302ada1c04de2b1075ad4be5cab9207b9c2f58146 AUX unrealircd.confd-r1 1339 SHA256 d06a0d17b12171f7b83c8e9ab5ecb84ab5a98a0310b12f3eb969a5046a26f70a SHA512 88bff1811e86034eff6327e88fd95b6dd3cb243ee9dc6aab0d01dcf690b9d18f88ae4f3fe13e5a0728e6220e0dc7d0601a125c30cc914dbb242201a4bde2d751 WHIRLPOOL b25b05944af47b672c4603c1f11cc7e29abf2d0e9f7074815da6a8ab76650590ce0fc3d5d61bd97ec4ab283b50e2274799e1344389f6e6fc372d5ab3a9560fe6 AUX unrealircd.initd 1253 SHA256 5eb5be0b5d4d0ea3edb0b3829fe787401f3a1d8c51bbcde52fa612630b561fca SHA512 57aa1028bc2fb65894e71feb57669ec238c884475456b0a8eaac6b117835a905e5a24275bdd4400b327a662c99b06887e2c701ca077420ca6e140227d04181cd WHIRLPOOL 312f31f3c52c94f1228b955e63c79e7fbbc10eb7d6cce98a39521d8df89a5506068de7420f1d73302d801ac32ed7f6e018c29dc52e2011bec63a72fec01e516d -DIST Unreal3.2.10.2.tar.gz 3520861 SHA256 70fd18c0b0f395e0e8d33109bd838f47d6d5317423bc8ea21173fc2e0a4b3d93 SHA512 e6191bf278e1734955a151b9982820e1ecd4839d2c0c669310671ac55107e5ba2135f0209519831cbc79634cc7fac3bf6feb3f9db85cb54785af4b36b61a6fa4 WHIRLPOOL 91784905668a9ec7dd5bcc4c5be49b9e4549a751b99b9bfd641037cb1cd836d5c1684f94c83870f5e02ca928be9f7af999b774023284388c43d5c40cf612f9a6 DIST Unreal3.2.10.4.tar.gz 3540227 SHA256 5041b67745d0bd2072cf9b74c07853085b8b5b07330263f0986bdc56eda98aa8 SHA512 eeecefe79cadf3efa1b9379d4b675c0b86a2dd91e703f9e4b3998331f56b923d3719c67482f464f9b1699f801e0a83d677ada642ea7037c52a9d5db63abe6a5c WHIRLPOOL e52949bb6b20076d382825a841c8f643f1f64ac265d7f58898a6417c4853b569b8f561d5dccf198b4f006725e4be0636a2edb580023e8db62dadab8397d11975 -DIST Unreal3.2.9.tar.gz 3064571 SHA256 3f581a331825d9179f5367ea6367dd0dc71c7ba615ac3c0134332086bee0e1d8 SHA512 6f18c2e9282c2417d34fa4ace8be183394ec896abcb9f9b0d87fb61013360a6281fb151a73b03379c5fcc1f30235ba6c3420c709df273cf1887f8e7d95d6a686 WHIRLPOOL e589a4c02de158e14b9e52a4297a73b1c107a724e13526447907714d7eee4f21a7a8d70f8f301a137847dc6cb83f6424d0c128a9b9a526ef0ce0d09f675dc874 -EBUILD unrealircd-3.2.10.2.ebuild 6564 SHA256 0ade615bed714422149676ce46eb72b35d30e09bed64eafb0b71cf2b3a264779 SHA512 46f0370b8ef7342fbffefbbdc77c48526bbd2c23391d49323aee453987ab7487be800d42e9e32907df88ea7e14f127e66ee01c805cf19bf8357d81e27a78bca6 WHIRLPOOL b571dd1d4bc1a6e90d5027597476c7bf6dd824789937f78baf9da683f0ac895981bb0163fb8d66a1252e07e6e4c2047785a2e832e73ec4d20b52806152e5bc58 EBUILD unrealircd-3.2.10.4.ebuild 6698 SHA256 6e9512f69a93b5f285953450ec732a08021a26ecdc98306c880f5191abd6676e SHA512 03b23c4d1014c71386844f2bca44e63474dd19f71bf73e323d510dd9b50bb8b4285ca33207c445ae7b8df0fed2e74b4a4d87c28c95fef8652e7fca8c7e0799d1 WHIRLPOOL f18614ab351b1010af0f97599b97e1dd6c41cc6af827866a9b8740400bcf5911e889cd5b8b265eb0a63c17bc284b26185c84b810f624274fdd2a8ac0042a3a85 -EBUILD unrealircd-3.2.9.ebuild 4670 SHA256 a96cf39c778a24f73a164e50a510016d2b6b3a4e6f07e13abab645fb435bd487 SHA512 9523574db223e87c0df1faa337790f2aef75bd878cec6e8d0b3c6c019920682ac50b787ffd60bc3270d977f5a79eb6ecdfa4980121da1b0e75c2b519bdb98e9c WHIRLPOOL 15c695633a91fa955c05a4999de585920e93e2d254b252f706207e8b617fcb59cea487373a265d6b68b67f026315874d4646e92f33ed3b131691141a46ae8dbd -MISC ChangeLog 18322 SHA256 41f51ed39cfaf034852ae1078c544135b6d6a855e6f6f142c4c745ff6a225926 SHA512 09640d36a1d1f62aac013a01b746ac5da412406161b400dacd6160cb89d77e971cdfde937e1ce97ebb30b049cde1d7255c6eb9f5f4e597f7c005330509430c0b WHIRLPOOL 84e5aa0567b93a8b6c476ff18a4df7a65319a467cc6f80340c017758cec14489ab97c1992a89b84096c69cf55ca9ff8c0af5778d75b6e90499050ca13cbb4eb8 +MISC ChangeLog 18502 SHA256 220055e32b0f1bfad8c8f16014c9dec75627d3fe3d506de13951592c89a055c3 SHA512 a40bfe69bebe106e4ba6fdb73bad0989332fc388c36df8ae9469f9e40d42f4fdd9fb1c4a6ffae9f72b70363eb2fd6764be0f9d1792afbb5b5dff20acb3a6d999 WHIRLPOOL 80ca56a88c6fb4e2830afffc3761cae3d69d7e6a550547dd1b284894314ffe03c6ed019f8f56e09526a201934b1b4ea2c40ccad1ec2431ab09468db0cada1188 MISC metadata.xml 1389 SHA256 6fb19089591aac182c4b543cc64664f0753b0b015caf5ff4d65c61a2e8832d80 SHA512 8f2fd68cd0030ef72cc0282a77ea01aa7e8b474882f9dbc157ffba86e58c8d1d2c7f8411969a32cc43ee6dca9b9c94a839d03e31a1a9dab3bcd2966ed411e5bb WHIRLPOOL 8ce6cd49ec43e088314211069ec45fb205d4c141832388be1274fc538fa04f100017055de649f0c42dfe6ea2878f90ac05d38709549bc3aa41bd91f271b4a1d4 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2 - -iQIcBAEBCAAGBQJUN7nuAAoJELp701BxlEWfE5IP/2N895PA8t1dEmjcT2bG5YHb -lhf4lWceqdP3M7B8gr6d7szEyTHXx4PqRXbG6ZywT/lgUGSkhvB67+tcEJ1imnma -CbQss98J577qxzgkrosFULiFkT2zXv4szvh++kjlFBYAAjQell5RdspCqEZKzFlW -4/tMv41YsZMKS7fgJb2cUaQenXtOFWc2ZWwykWrPn8xwETSyHjr2iB3lpnLfSYwJ -is1KauRhf24hDorYpE9SBdS02x2zbjHuOtxf1GfdtAeKzkAUXKuHHd3KY7iVdPqn -4iss3iBnbp3l5GbSIWEQM5laL4NBxmTJo3EXBvap8SW7zgcPTZaCB/r3PfmXuzl9 -5C2YIjmeRvx4DXmoZRy9ZF2zxhr1Xsvl+ryR3mrng412fbsU2gPxXYBhg9P2mdhK -J52cq09vYJsyKKNQfKmm3ZU4w7K+6x9zVH7VuqteI77r4JNYaf98i3l/MnK1UtBS -awUCJ+n8JsKwQAIonnI0GSXmjqBqu2mV2TBCWrZaJkN03ZCOZXjEW3ZOZeWriJsd -QEGjPQv00ReTcMVjjvxcOp7GS3+bVyk00jIcjQgg4fD7/5rPBdNg3LjwORungq1M -ei5Eld/AUzChkB0IIFGFgVgLRYihl+3UctH0BcExGuHNkcBFOFmwDQRdR1aG+cTs -ScqSLmYBD4UxKPkmROVk -=1dwH ------END PGP SIGNATURE----- diff --git a/net-irc/unrealircd/files/unrealircd-3.2.9-disabled-stacked-extbans.patch b/net-irc/unrealircd/files/unrealircd-3.2.9-disabled-stacked-extbans.patch deleted file mode 100644 index 447f674e00ac..000000000000 --- a/net-irc/unrealircd/files/unrealircd-3.2.9-disabled-stacked-extbans.patch +++ /dev/null @@ -1,22 +0,0 @@ -# HG changeset patch -# User Nathan Phillip Brink <ohnobinki@ohnopublishing.net> -# Date 1320859299 0 -# Node ID 110ba58ecd56ad5debb00726e5e3ca8d5df135bf -# Parent a673dd0f7b377ec35ce26fffc4affc9c7563c7b1 -- Fix compilation issue when disabling stacked extbans. https://bugs.gentoo.org/389949 - -diff -r a673dd0f7b37 -r 110ba58ecd56 Changes -diff -r a673dd0f7b37 -r 110ba58ecd56 src/extbans.c ---- a/src/extbans.c Wed Nov 09 17:16:55 2011 +0000 -+++ b/src/extbans.c Wed Nov 09 17:21:39 2011 +0000 -@@ -533,9 +533,9 @@ - req.conv_param = extban_conv_param_nuh; - #else - req.conv_param = extban_conv_param_nuh_or_extban; -+ req.is_ok = extban_is_ok_nuh_extban; - #endif - req.is_banned = extban_modej_is_banned; -- req.is_ok = extban_is_ok_nuh_extban; - req.options = EXTBOPT_ACTMODIFIER; - ExtbanAdd(NULL, req); - diff --git a/net-irc/unrealircd/unrealircd-3.2.10.2.ebuild b/net-irc/unrealircd/unrealircd-3.2.10.2.ebuild deleted file mode 100644 index 4c58a4bda284..000000000000 --- a/net-irc/unrealircd/unrealircd-3.2.10.2.ebuild +++ /dev/null @@ -1,209 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-irc/unrealircd/unrealircd-3.2.10.2.ebuild,v 1.4 2013/12/07 19:11:31 ago Exp $ - -EAPI=4 - -inherit eutils ssl-cert versionator multilib user - -MY_P=Unreal${PV/_/-} - -DESCRIPTION="An advanced Internet Relay Chat daemon" -HOMEPAGE="http://www.unrealircd.com/" -SRC_URI="http://www.unrealircd.com/downloads/${MY_P}.tar.gz" - -SLOT="0" -LICENSE="GPL-2" -KEYWORDS="amd64 ppc x86 ~x86-fbsd ~amd64-linux" -IUSE="curl ipv6 +extban-stacking +operoverride operoverride-verify +prefixaq - showlistmodes shunnotices ssl topicisnuhost +usermod zlib" - -RDEPEND="ssl? ( dev-libs/openssl ) - zlib? ( sys-libs/zlib ) - curl? ( net-misc/curl[adns] ) - dev-libs/tre - >=net-dns/c-ares-1.7" -DEPEND="${RDEPEND} - >=sys-apps/sed-4 - virtual/pkgconfig" - -S=${WORKDIR}/Unreal${PV} - -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" -} - -src_configure() { - econf \ - --with-listen=5 \ - --with-dpath="${EPREFIX}"/etc/unrealircd \ - --with-spath="${EPREFIX}"/usr/bin/unrealircd \ - --with-nick-history=2000 \ - --with-sendq=3000000 \ - --with-bufferpool=18 \ - --with-permissions=0600 \ - --with-fd-setsize=1024 \ - --with-system-cares \ - --with-system-tre \ - --enable-dynamic-linking \ - $(use_enable curl libcurl "${EPREFIX}"/usr) \ - $(use_enable ipv6 inet6) \ - $(use_enable prefixaq) \ - $(use_enable ssl ssl "${EPREFIX}"/usr) \ - $(use_enable zlib ziplinks "${EPREFIX}"/usr) \ - $(use_with showlistmodes) \ - $(use_with topicisnuhost) \ - $(use_with shunnotices) \ - $(use_with !operoverride no-operoverride) \ - $(use_with operoverride-verify) \ - $(use_with !usermod disableusermod) \ - $(use_with !extban-stacking disable-extendedban-stacking) -} - -src_install() { - keepdir /var/{lib,log}/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 - - local so_suffix=so - [[ ${CHOST} == -*mingw* ]] && so_suffix=dll - sed -i \ - -e s:src/modules:"${EPREFIX}"/usr/$(get_libdir)/unrealircd/modules: \ - -e '/loadmodule.*\.'${so_suffix}'/s;^//;;' \ - -e s:ircd\\.log:"${EPREFIX}"/var/log/unrealircd/ircd.log: \ - "${ED}"/etc/unrealircd/unrealircd.conf \ - || die - - dodoc \ - Changes Donation Unreal.nfo \ - ircdcron/{ircd.cron,ircdchk} \ - || die "dodoc failed" - dohtml doc/*.html - - newinitd "${FILESDIR}"/unrealircd.initd unrealircd - newconfd "${FILESDIR}"/unrealircd.confd-r1 unrealircd - - # config should be read-only - fperms -R 0640 /etc/unrealircd{,/aliases} - fperms 0750 /etc/unrealircd{,/aliases} - # state is editable but not owned by unrealircd directly - fperms 0770 /var/{lib,log}/unrealircd - fowners -R root:unrealircd /{etc,var/{lib,log}}/unrealircd -} - -pkg_preinst() { - # Must pre-create directories; otherwise their permissions are lost - # on installation. - - # Usage: _unrealircd_dir_permissions <user> <group> <mode> <dir>[, <dir>…] - # - # Ensure that directories are created with the correct permissions - # before portage tries to merge them to the filesystem because, - # otherwise, those directories are installed world-readable. - # - # If this is a first-time install, create those directories with - # correct permissions before installing. Otherwise, update - # permissions—but only if we are replacing an unrealircd ebuild at - # least as old as net-irc/unrealircd-3.2.10. Portage handles normal - # file permissions correctly, so no need for recursive - # chmoding/chowning. - _unrealircd_dir_permissions() { - local user=${1} group=${2} mode=${3} dir v - shift 3 - while dir=${1} && shift; do - if [[ ! -d "${EROOT}${dir}" ]]; then - ebegin "Creating ${EROOT}${dir} with correct permissions" - install -d -m "${mode}" -o "${user}" -g "${group}" "${EROOT}${dir}" || die - eend ${?} - elif ! [[ ${REPLACING_VERSIONS} ]] || for v in ${REPLACING_VERSIONS}; do - # If 3.2.10 ≤ ${REPLACING_VERSIONS}, then we update - # existing permissions. - version_is_at_least "${v}" 3.2.10 && break - done; then - ebegin "Correcting permissions of ${EROOT}${dir} left by ${CATEGORY}/${PN}-${v}" - chmod "${mode}" "${EROOT}${dir}" \ - && chown ${user}:${group} "${EROOT}${dir}" \ - || die "Unable to correct permissions of ${EROOT}${dir}" - eend ${?} - fi - done - } - - # unrealircd only needs to be able to read files in /etc/unrealircd. - _unrealircd_dir_permissions root unrealircd 0750 etc/unrealircd{,/aliases} - - # unrealircd needs to be able to create files in /var/lib/unrealircd - # and /var/log/unrealircd. - _unrealircd_dir_permissions root unrealircd 0770 var/{lib,log}/unrealircd -} - -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.* - chmod 0640 "${EROOT}"/etc/unrealircd/server.cert.* - ln -snf server.cert.key "${EROOT}"/etc/unrealircd/server.key.pem - fi - fi - - local unrealircd_conf="${EROOT}"/etc/unrealircd/unrealircd.conf - # Fix up the default cloak keys. - if grep -qe '"and another one";$' "${unrealircd_conf}" && grep -qe '"aoAr1HnR6gl3sJ7hVz4Zb7x4YwpW";$' "${unrealircd_conf}"; then - ebegin "Generating cloak-keys" - local keys=( - $(unrealircd -k 2>&1 | tail -n 3) - ) - [[ -n ${keys[0]} || -n ${keys[1]} || -n ${keys[2]} ]] - eend $? - - ebegin "Substituting cloak-keys into ${unrealircd_conf}" - sed -i \ - -e '/cloak-keys/ { -n -s/"aoAr1HnR6gl3sJ7hVz4Zb7x4YwpW";/"'"${keys[0]}"'";/ -n -s/"and another one";/"'"${keys[1]}"'";/ -n -s/"and another one";/"'"${keys[2]}"'";/ -}' \ - "${unrealircd_conf}" - eend $? - fi - - 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" -} diff --git a/net-irc/unrealircd/unrealircd-3.2.9.ebuild b/net-irc/unrealircd/unrealircd-3.2.9.ebuild deleted file mode 100644 index 2478afa52ffc..000000000000 --- a/net-irc/unrealircd/unrealircd-3.2.9.ebuild +++ /dev/null @@ -1,163 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-irc/unrealircd/unrealircd-3.2.9.ebuild,v 1.11 2014/01/08 06:39:36 vapier Exp $ - -EAPI=4 - -inherit eutils ssl-cert versionator multilib user - -MY_P=Unreal${PV/_/-} - -DESCRIPTION="An advanced Internet Relay Chat daemon" -HOMEPAGE="http://www.unrealircd.com/" -SRC_URI="http://www.unrealircd.com/downloads/${MY_P}.tar.gz" - -SLOT="0" -LICENSE="GPL-2" -KEYWORDS="amd64 ppc x86 ~x86-fbsd ~amd64-linux" -IUSE="curl ipv6 +extban-stacking +operoverride +spoof operoverride-verify +prefixaq - showlistmodes shunnotices ssl topicisnuhost +usermod zlib" - -RDEPEND="ssl? ( dev-libs/openssl ) - zlib? ( sys-libs/zlib ) - curl? ( net-misc/curl[adns] ) - dev-libs/tre - >=net-dns/c-ares-1.7" -DEPEND="${RDEPEND} - >=sys-apps/sed-4 - virtual/pkgconfig" - -S=${WORKDIR}/Unreal$(get_version_component_range 1-2) - -pkg_setup() { - enewuser unrealircd -} - -src_prepare() { - epatch "${FILESDIR}"/${P}-disabled-stacked-extbans.patch - - # 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" -} - -src_configure() { - econf \ - --with-listen=5 \ - --with-dpath="${EPREFIX}"/etc/unrealircd \ - --with-spath="${EPREFIX}"/usr/bin/unrealircd \ - --with-nick-history=2000 \ - --with-sendq=3000000 \ - --with-bufferpool=18 \ - --with-permissions=0600 \ - --with-fd-setsize=1024 \ - --with-system-cares \ - --with-system-tre \ - --enable-dynamic-linking \ - $(use_enable curl libcurl "${EPREFIX}"/usr) \ - $(use_enable ipv6 inet6) \ - $(use_enable prefixaq) \ - $(use_enable spoof nospoof) \ - $(use_enable ssl ssl "${EPREFIX}"/usr) \ - $(use_enable zlib ziplinks "${EPREFIX}"/usr) \ - $(use_with showlistmodes) \ - $(use_with topicisnuhost) \ - $(use_with shunnotices) \ - $(use_with !operoverride no-operoverride) \ - $(use_with operoverride-verify) \ - $(use_with !usermod disableusermod) \ - $(use_with !extban-stacking disable-extendedban-stacking) -} - -src_install() { - keepdir /var/{lib,log}/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 - - local so_suffix=so - [[ ${CHOST} == -*mingw* ]] && so_suffix=dll - sed -i \ - -e s:src/modules:"${EPREFIX}"/usr/$(get_libdir)/unrealircd/modules: \ - -e '/loadmodule.*\.'${so_suffix}'/s;^//;;' \ - -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 - - newinitd "${FILESDIR}"/unrealircd.initd unrealircd - newconfd "${FILESDIR}"/unrealircd.confd-r1 unrealircd - - fperms 700 /etc/unrealircd - fowners -R unrealircd /{etc,var/{lib,log}}/unrealircd -} - -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 - - local unrealircd_conf="${EROOT}"/etc/unrealircd/unrealircd.conf - # Fix up the default cloak keys. - if grep -qe '"and another one";$' "${unrealircd_conf}" && grep -qe '"aoAr1HnR6gl3sJ7hVz4Zb7x4YwpW";$' "${unrealircd_conf}"; then - ebegin "Generating cloak-keys" - local keys=( - $(unrealircd -k 2>&1 | tail -n 3) - ) - [[ -n ${keys[0]} || -n ${keys[1]} || -n ${keys[2]} ]] - eend $? - - ebegin "Substituting cloak-keys into ${unrealircd_conf}" - sed -i \ - -e '/cloak-keys/ { -n -s/"aoAr1HnR6gl3sJ7hVz4Zb7x4YwpW";/"'"${keys[0]}"'";/ -n -s/"and another one";/"'"${keys[1]}"'";/ -n -s/"and another one";/"'"${keys[2]}"'";/ -}' \ - "${unrealircd_conf}" - eend $? - fi - - 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" -} |