diff options
author | Tomas Chvatal <scarabeus@gentoo.org> | 2009-11-14 01:34:36 +0000 |
---|---|---|
committer | Tomas Chvatal <scarabeus@gentoo.org> | 2009-11-14 01:34:36 +0000 |
commit | 924526955bca263ca91c067af41dafb04a1933ff (patch) | |
tree | 764aee1e644170dcf14fa9ecaa7dadce55487078 /net-irc/unrealircd | |
parent | Drop mask for cmake-2.8.0 (diff) | |
download | historical-924526955bca263ca91c067af41dafb04a1933ff.tar.gz historical-924526955bca263ca91c067af41dafb04a1933ff.tar.bz2 historical-924526955bca263ca91c067af41dafb04a1933ff.zip |
QA: Version bump to fix bug #260806. Non maintainer commit.
Package-Manager: portage-2.2_rc49/cvs/Linux x86_64
Diffstat (limited to 'net-irc/unrealircd')
-rw-r--r-- | net-irc/unrealircd/ChangeLog | 10 | ||||
-rw-r--r-- | net-irc/unrealircd/Manifest | 20 | ||||
-rw-r--r-- | net-irc/unrealircd/files/unrealircd-system-cares.patch | 134 | ||||
-rw-r--r-- | net-irc/unrealircd/files/unrealircd-system-tre.patch | 64 | ||||
-rw-r--r-- | net-irc/unrealircd/metadata.xml | 10 | ||||
-rw-r--r-- | net-irc/unrealircd/unrealircd-3.2.8.1.ebuild (renamed from net-irc/unrealircd/unrealircd-3.2.7-r2.ebuild) | 93 |
6 files changed, 282 insertions, 49 deletions
diff --git a/net-irc/unrealircd/ChangeLog b/net-irc/unrealircd/ChangeLog index a59896c34984..02fc97a203d0 100644 --- a/net-irc/unrealircd/ChangeLog +++ b/net-irc/unrealircd/ChangeLog @@ -1,6 +1,14 @@ # 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.72 2009/09/18 15:10:56 betelgeuse Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-irc/unrealircd/ChangeLog,v 1.73 2009/11/14 01:34:34 scarabeus Exp $ + +*unrealircd-3.2.8.1 (14 Nov 2009) + + 14 Nov 2009; Tomáš Chvátal <scarabeus@gentoo.org> + -unrealircd-3.2.7-r2.ebuild, +unrealircd-3.2.8.1.ebuild, + +files/unrealircd-system-cares.patch, +files/unrealircd-system-tre.patch, + metadata.xml: + QA: Version bump to fix bug #260806. Non maintainer commit. 18 Sep 2009; Petteri Räty <betelgeuse@gentoo.org> unrealircd-3.2.7-r2.ebuild: diff --git a/net-irc/unrealircd/Manifest b/net-irc/unrealircd/Manifest index fcbff61f4592..827617f669bc 100644 --- a/net-irc/unrealircd/Manifest +++ b/net-irc/unrealircd/Manifest @@ -1,16 +1,8 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - +AUX unrealircd-system-cares.patch 4850 RMD160 6bd9456bda2b1dc233cf7ad97c60c0ee11c1f99b SHA1 e9086146a7031b874e514eb2a22c06b5decb8adf SHA256 e3be39af381c12349355ed44c1bfac1a205a84728d006fd3de3cff0a564ee0d9 +AUX unrealircd-system-tre.patch 2265 RMD160 16324b6639585d3c62b763f9f0f36c233ed0bbf0 SHA1 df61297ad7dd136884ff78644bd2c98b2c794578 SHA256 2a5e958a19e6b85df1a2f30cc56443f8080a0b7f2c01e6765cfe6b758c16615d 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 -EBUILD unrealircd-3.2.7-r2.ebuild 3628 RMD160 b42f6035093b369918659a103ebd212cf7ae6c61 SHA1 810e656025eb98cf3ce4049595821c331fd65d77 SHA256 e7dc5c171c70490ec273e43330c502d83452b8a0103a51bc995d74ba3a2159e5 -MISC ChangeLog 10135 RMD160 e5da29fec468f2d9f722092a12775a366a2104f0 SHA1 613cecddc240214f417b474740ec03674f4107c1 SHA256 94747cb6d8cb52ac5ac58f7f65ce9860a4eabaaa999cfe982285f751467a2142 -MISC metadata.xml 376 RMD160 62b344feca2e09d554426e39e91a36e48e6c255e SHA1 42a9ba4afb8b8d3d13c7babc13a5a66f0a41d395 SHA256 d5fe303d93d8469ffe66e09541b913847cd5a8964eb90f205898359827d4a048 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.11 (GNU/Linux) - -iEYEARECAAYFAkqzowYACgkQcxLzpIGCsLSrtQCeJJo0M6YzPd23jO0pSxY5dgai -SIEAn0xGH/icBnoaVMzbQWYKAp04Gn8I -=igPZ ------END PGP SIGNATURE----- +DIST Unreal3.2.8.1.tar.gz 2864770 RMD160 60f86a8efa9c8bf1627f30b04b45244ff4622939 SHA1 086708695ab75041adb1a61aaa1a86141f2548ea SHA256 45264abc6c4aaaa132ea735fb90aaf43185950825f0b947d6e0f6210c6e3e7c8 +EBUILD unrealircd-3.2.8.1.ebuild 4816 RMD160 337ffe0017259a539c87a0007b3cd959110f8c55 SHA1 a30eae19e2141954ad2f2eb7e3acb9c4f51eced5 SHA256 d82d48a356ec0005d846678909c5527bb667309f0c6a9820ed32ff35e3949e97 +MISC ChangeLog 10438 RMD160 25c778263f99a8dcfcd43ad89494553d940ed1ed SHA1 f7d4666104752518d22a0933ecbd738b59d43f6e SHA256 8b13553527f2324074790958429d8a1abc169d742764705d6d3e8269f5d343b5 +MISC metadata.xml 891 RMD160 db526c6aac78e08571a7a1ed8ede3b1a6dff0d77 SHA1 c1be63bf335014df1672aa63033d5094adf68a6e SHA256 0da56c8f8ea49e8c91c1281349e1fae167c897c0530959c3026410cd51976ab2 diff --git a/net-irc/unrealircd/files/unrealircd-system-cares.patch b/net-irc/unrealircd/files/unrealircd-system-cares.patch new file mode 100644 index 000000000000..2e4d5f047051 --- /dev/null +++ b/net-irc/unrealircd/files/unrealircd-system-cares.patch @@ -0,0 +1,134 @@ +Makes unrealircd-3.2.8 able to use a vanilla, system >=net-dns/c-ares-1.5.3 +Expects the unrealircd-system-tre.patch to be applied beforehand +--- autoconf/configure.in 2009-03-29 18:35:15.000000000 -0400 ++++ autoconf/configure.in 2009-03-29 18:45:54.000000000 -0400 +@@ -393,6 +393,7 @@ + AC_ARG_WITH(operoverride-verify, [AC_HELP_STRING([--with-operoverride-verify], [Require opers to invite themselves to +s/+p channels])], + AC_DEFINE(OPEROVERRIDE_VERIFY)) + AC_ARG_WITH(system-tre, [AC_HELP_STRING([--with-system-tre], [Use the system tre package instead of bundled, discovered using pkg-config])], [], [with_system_tre=no ]) ++AC_ARG_WITH(system-cares, [AC_HELP_STRING([--with-system-cares], [Use the system c-ares (at least version 1.5.3) package instead of bundled c-ares, discovered using pkg-config])], [], [with_system_cares=no ]) + CHECK_SSL + CHECK_ZLIB + CHECK_LIBCURL +@@ -462,6 +463,7 @@ + PKG_CHECK_MODULES([TRE], tre >= 0.7.5) + ]) + ++AS_IF([test "x$with_system_cares" = "xno"],[ + dnl REMEMBER TO CHANGE WITH A NEW C-ARES RELEASE! + cares_version="1.6.0" + AC_MSG_RESULT(extracting c-ares resolver library) +@@ -484,10 +486,9 @@ + $ac_cv_prog_MAKER || exit 1 + AC_MSG_RESULT(installing c-ares resolver library) + $ac_cv_prog_MAKER install || exit 1 +-CARESINCDIR="$cur_dir/extras/c-ares/include" +-AC_SUBST(CARESINCDIR) +-CARESLIBDIR="-L../extras/c-ares/lib" +-AC_SUBST(CARESLIBDIR) ++CARES_CFLAGS="$cur_dir/extras/c-ares/include" ++AC_SUBST(CARES_CFLAGS) ++CARES_LIBS="-L../extras/c-ares/lib" + + dnl Set default library parameters for when pkg-config is not available + CARESLIBSALT="-lcares" +@@ -504,15 +505,20 @@ + dnl from above. Also, if pkg-config returns an empty result (ex: on fbsd + dnl or older versions it might be missing --static) then also use defaults. + if test "x$ac_cv_path_PKGCONFIG" = "x" ; then +- CARESLIBS="$CARESLIBSALT" ++ CARES_LIBS="$CARES_LIBS $CARESLIBSALT" + else +- CARESLIBS="`$ac_cv_path_PKGCONFIG --static --libs libcares.pc`" +- if test "x$CARESLIBS" = "x" ; then +- CARESLIBS="$CARESLIBSALT" ++ CARES_LIBSPRE="$CARES_LIBS" ++ CARES_LIBS="$CARES_LIBS `$ac_cv_path_PKGCONFIG --static --libs libcares.pc`" ++ if test "$CARES_LIBS" = "$CARES_LIBSPRE " ; then ++ CARES_LIBS="$CARES_LIBS $CARESLIBSALT" + fi + fi +-AC_SUBST(CARESLIBS) ++AC_SUBST(CARES_LIBS) + cd $cur_dir ++],[ ++dnl use pkg-config for system c-ares: ++PKG_CHECK_MODULES([CARES], libcares >= 1.5.3) ++]) + + + AC_OUTPUT(Makefile src/modules/Makefile unreal ircdcron/ircdchk) + + +--- Makefile.in 2009-03-29 18:35:15.000000000 -0400 ++++ Makefile.in 2009-03-29 18:48:03.000000000 -0400 +@@ -34,11 +34,11 @@ + # + + #XCFLAGS=-O -g -export-dynamic +-IRCDLIBS=@IRCDLIBS@ @TRE_LIBS@ @CARESLIBS@ ++IRCDLIBS=@IRCDLIBS@ @TRE_LIBS@ @CARES_LIBS@ + CRYPTOLIB=@CRYPTOLIB@ + OPENSSLINCLUDES= + +-XCFLAGS=@TRE_CFLAGS@ -I@CARESINCDIR@ @CARESLIBDIR@ @CFLAGS@ ++XCFLAGS=@TRE_CFLAGS@ -I@CARES_CFLAGS@ @CFLAGS@ + # + # use the following on MIPS: + #CFLAGS= -systype bsd43 -DSYSTYPE_BSD43 -I$(INCLUDEDIR) + +--- src/res.c (revision 333) ++++ src/res.c (working copy) +@@ -49,7 +49,7 @@ + #include <res.h> + + /* Prevent crashes due to invalid prototype/ABI */ +-#if ARES_VERSION < 0x010600 ++#if ARES_VERSION < 0x010503 + #error "You have an old c-ares version on your system and/or Unreals c-ares failed to compile!" + #endif + +@@ -736,21 +736,35 @@ + } else + if (*param == 'i') /* INFORMATION */ + { +- struct ares_config_info inf; ++ struct ares_options inf; + int i; ++ int optmask; + +- ares_get_config(&inf, resolver_channel); ++ ares_save_options(resolver_channel, &inf, &optmask); + + sendtxtnumeric(sptr, "****** DNS Configuration Information ******"); + sendtxtnumeric(sptr, " c-ares version: %s",ares_version(NULL)); +- sendtxtnumeric(sptr, " timeout: %d", inf.timeout); +- sendtxtnumeric(sptr, " tries: %d", inf.tries); +- sendtxtnumeric(sptr, " # of servers: %d", inf.numservers); +- for (i = 0; i < inf.numservers; i++) +- sendtxtnumeric(sptr, " server #%d: %s", i+1, inf.servers[i] ? inf.servers[i] : "[???]"); +- ++ ++ if(optmask & ARES_OPT_TIMEOUTMS) ++ sendtxtnumeric(sptr, " timeout: %d", inf.timeout); ++ if(optmask & ARES_OPT_TRIES) ++ sendtxtnumeric(sptr, " tries: %d", inf.tries); ++ if(optmask & ARES_OPT_SERVERS) ++ { ++ sendtxtnumeric(sptr, " # of servers: %d", inf.nservers); ++ for (i = 0; i < inf.nservers; i++) ++ sendtxtnumeric(sptr, " server #%d: %s", i+1, inet_ntoa(inf.servers[i])); ++ } ++ if(optmask & ARES_OPT_DOMAINS) ++ { ++ sendtxtnumeric(sptr, " # of search domains: %d", inf.ndomains); ++ for (i = 0; i < inf.ndomains; i++) ++ sendtxtnumeric(sptr, " domain #%d: %s", i+1, inf.domains[i]); ++ } + /* TODO: free or get memleak ! */ + sendtxtnumeric(sptr, "****** End of DNS Configuration Info ******"); ++ ++ ares_destroy_options(&inf); + } else /* STATISTICS */ + { + sendtxtnumeric(sptr, "DNS CACHE Stats:"); diff --git a/net-irc/unrealircd/files/unrealircd-system-tre.patch b/net-irc/unrealircd/files/unrealircd-system-tre.patch new file mode 100644 index 000000000000..272e92c1936e --- /dev/null +++ b/net-irc/unrealircd/files/unrealircd-system-tre.patch @@ -0,0 +1,64 @@ +diff -ru ./Makefile.in /var/tmp/portage/net-irc/unrealircd-3.2.8/work/Unreal3.2/Makefile.in +--- Makefile.in 2006-06-05 19:16:34.000000000 -0400 ++++ Makefile.in 2009-03-03 18:59:32.000000000 -0500 +@@ -34,11 +34,11 @@ + # + + #XCFLAGS=-O -g -export-dynamic +-IRCDLIBS=@IRCDLIBS@ @TRELIBS@ @CARESLIBS@ ++IRCDLIBS=@IRCDLIBS@ @TRE_LIBS@ @CARESLIBS@ + CRYPTOLIB=@CRYPTOLIB@ + OPENSSLINCLUDES= + +-XCFLAGS=-I@TREINCDIR@ -I@CARESINCDIR@ @CARESLIBDIR@ @CFLAGS@ ++XCFLAGS=@TRE_CFLAGS@ -I@CARESINCDIR@ @CARESLIBDIR@ @CFLAGS@ + # + # use the following on MIPS: + #CFLAGS= -systype bsd43 -DSYSTYPE_BSD43 -I$(INCLUDEDIR) +Only in /var/tmp/portage/net-irc/unrealircd-3.2.8/work/Unreal3.2: Makefile.in.~1.1.2.23.2.6.~ +diff -ru ./configure.in /var/tmp/portage/net-irc/unrealircd-3.2.8/work/Unreal3.2/configure.in +--- autoconf/configure.in 2009-02-01 11:43:33.000000000 -0500 ++++ autoconf/configure.in 2009-03-03 19:01:23.000000000 -0500 +@@ -392,6 +392,7 @@ + AC_DEFINE(DISABLE_USERMOD)) + AC_ARG_WITH(operoverride-verify, [AC_HELP_STRING([--with-operoverride-verify], [Require opers to invite themselves to +s/+p channels])], + AC_DEFINE(OPEROVERRIDE_VERIFY)) ++AC_ARG_WITH(system-tre, [AC_HELP_STRING([--with-system-tre], [Use the system tre package instead of bundled, discovered using pkg-config])], [], [with_system_tre=no ]) + CHECK_SSL + CHECK_ZLIB + CHECK_LIBCURL +@@ -424,6 +425,7 @@ + ;; + esac + ++AS_IF([test "x$with_system_tre" = "xno"],[ + dnl REMEMBER TO CHANGE WITH A NEW TRE RELEASE! + tre_version="0.7.5" + AC_MSG_RESULT(extracting TRE regex library) +@@ -446,16 +448,20 @@ + $ac_cv_prog_MAKER || exit 1 + AC_MSG_RESULT(installing TRE regex library) + $ac_cv_prog_MAKER install || exit 1 +-TREINCDIR="$cur_dir/extras/regexp/include" +-AC_SUBST(TREINCDIR) ++TRE_CFLAGS="-I$cur_dir/extras/regexp/include" ++AC_SUBST(TRE_CFLAGS) + if test "x$ac_cv_path_PKGCONFIG" = "x" ; then +- TRELIBS="-L../extras/regexp/lib -ltre" ++ TRE_LIBS="-L../extras/regexp/lib -ltre" + else +- TRELIBS=`$ac_cv_path_PKGCONFIG --libs tre.pc` ++ TRE_LIBS=`$ac_cv_path_PKGCONFIG --libs tre.pc` + fi +-AC_SUBST(TRELIBS) ++AC_SUBST(TRE_LIBS) + cd $cur_dir +- ++],[ ++dnl use pkgconfig for tre: ++PKG_PROG_PKG_CONFIG(0.17) ++PKG_CHECK_MODULES([TRE], tre >= 0.7.5) ++]) + + dnl REMEMBER TO CHANGE WITH A NEW C-ARES RELEASE! + cares_version="1.6.0" diff --git a/net-irc/unrealircd/metadata.xml b/net-irc/unrealircd/metadata.xml index 892a7191eb19..10f64c38f3eb 100644 --- a/net-irc/unrealircd/metadata.xml +++ b/net-irc/unrealircd/metadata.xml @@ -4,8 +4,14 @@ <herd>net-irc</herd> <use> <flag name='hub'>Enable hub support</flag> + <flag name='spoof'>Enable the spoof protection</flag> <flag name='prefixaq'>Enable chanadmin and chanowner prefixes</flag> - <flag name='showlistmodes'>Support displaying channel modes during - compilation</flag> + <flag name='showlistmodes'>Support displaying channel modes during compilation</flag> + <flag name='operoverride-verify'>Enable requiring opers to invite themselves to +s/+p channels</flag> + <flag name='operoverride'>Enable OperOverride extension</flag> + <flag name='usermod'>Enable /set* and /chg* commands</flag> + <flag name='showlistmodes'>Support displaying channel modes in /list</flag> + <flag name='shunnotices'>Enable notifying a user when un-shunned</flag> + <flag name='topicisnuhost'>Enable displaying nick!user@host as topic setter</flag> </use> </pkgmetadata> diff --git a/net-irc/unrealircd/unrealircd-3.2.7-r2.ebuild b/net-irc/unrealircd/unrealircd-3.2.8.1.ebuild index d1f1c7c8c285..0486de6675ef 100644 --- a/net-irc/unrealircd/unrealircd-3.2.7-r2.ebuild +++ b/net-irc/unrealircd/unrealircd-3.2.8.1.ebuild @@ -1,43 +1,61 @@ # Copyright 1999-2009 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.6 2009/09/18 15:10:56 betelgeuse Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-irc/unrealircd/unrealircd-3.2.8.1.ebuild,v 1.1 2009/11/14 01:34:34 scarabeus Exp $ EAPI="2" -inherit eutils ssl-cert versionator multilib +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" +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 ~mips ppc sparc x86 ~x86-fbsd" -IUSE="hub ipv6 ssl zlib curl prefixaq showlistmodes" +KEYWORDS="~amd64 ~mips ~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[ares,-ipv6] )" + curl? ( net-misc/curl ) + dev-libs/tre + >=net-dns/c-ares-1.5.3" DEPEND="${RDEPEND} >=sys-apps/sed-4" -S="${WORKDIR}/Unreal${PV}" +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 + 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() { @@ -48,7 +66,13 @@ src_configure() { 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 \ @@ -60,14 +84,17 @@ src_configure() { --with-hostname=$(hostname -f) \ --with-permissions=0600 \ --with-fd-setsize=1024 \ + --with-system-cares \ + --with-system-tre \ --enable-dynamic-linking \ - ${myconf} \ - || die "econf failed" + ${myconf} + # Fix upstream poor autofoo sed -i \ - -e "s:${D}::" \ + -e "s:${D}::g" \ include/setup.h \ - ircdcron/ircdchk + ircdcron/ircdchk \ + || die } src_compile() { @@ -77,57 +104,59 @@ src_compile() { src_install() { keepdir /var/{lib,log,run}/unrealircd - newbin src/ircd unrealircd + newbin src/ircd unrealircd || die exeinto /usr/$(get_libdir)/unrealircd/modules - doexe src/modules/*.so + doexe src/modules/*.so || die dodir /etc/unrealircd - dosym /var/lib/unrealircd /etc/unrealircd/tmp + dosym /var/lib/unrealircd /etc/unrealircd/tmp || die insinto /etc/unrealircd - doins {badwords.*,help,spamfilter,dccallow}.conf - newins doc/example.conf unrealircd.conf + doins {badwords.*,help,spamfilter,dccallow}.conf || die + newins doc/example.conf unrealircd.conf || die insinto /etc/unrealircd/aliases - doins aliases/*.conf + doins aliases/*.conf || die insinto /etc/unrealircd/networks - doins networks/*.network + 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 + "${D}"/etc/unrealircd/unrealircd.conf \ + || die dodoc \ Changes Donation Unreal.nfo networks/makenet \ ircdcron/{ircd.cron,ircdchk} \ || die "dodoc failed" - dohtml doc/*.html + dohtml doc/*.html || die - newinitd "${FILESDIR}"/unrealircd.rc unrealircd + newinitd "${FILESDIR}"/unrealircd.rc unrealircd || die newconfd "${FILESDIR}"/unrealircd.confd unrealircd - fperms 700 /etc/unrealircd - chown -R unrealircd "${D}"/{etc,var/{lib,log,run}}/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 - use ssl && \ + if use ssl ; then 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 + 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}/" - elog " /usr/share/doc/${PF}/" + 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 |