diff options
Diffstat (limited to 'net-irc/eggdrop')
-rw-r--r-- | net-irc/eggdrop/Manifest | 3 | ||||
-rw-r--r-- | net-irc/eggdrop/eggdrop-1.8.4-r1.ebuild | 77 | ||||
-rw-r--r-- | net-irc/eggdrop/files/eggdrop-1.8.4-fix-array-bounds-warning.patch | 24 | ||||
-rw-r--r-- | net-irc/eggdrop/files/eggdrop-1.8.4-respect-ldflags.patch | 39 |
4 files changed, 143 insertions, 0 deletions
diff --git a/net-irc/eggdrop/Manifest b/net-irc/eggdrop/Manifest index 9566f4e0b578..fe1daf7402b7 100644 --- a/net-irc/eggdrop/Manifest +++ b/net-irc/eggdrop/Manifest @@ -1,6 +1,9 @@ +AUX eggdrop-1.8.4-fix-array-bounds-warning.patch 864 BLAKE2B d35686e21c7a531b25ba6b06420dfd45914d4aff5321ccd9129239e7f66182d91800371f14c81ee4ac6eb39ad96063d7750a40a25e1eccb9dcebbe50502f0bc9 SHA512 de10ae6d6328da636afd8ec0de187b3f29677c3854e111a64df9b15c9d41ef8ec92f2efd65bc361b2fb6b879016b44e2ce9639da937370d71781aca569991d75 +AUX eggdrop-1.8.4-respect-ldflags.patch 1316 BLAKE2B 43c0ca341a328f08fe8beb735c678bcf0c8fd547acbc7c1614995d5fc75261924cb435b0c0fc4d9f94c2fee3781aba407f3cb09e26958d1e09e1338e7e1781fb SHA512 f0d7c699d648f4a89d622f3f2238b967cae7ff139f25390853b195efd3a76c74af80389c20fcd2c1203fc33d006e7e27d9bdfcab4772c7a688fce7d0649d28be AUX eggdrop-installer 2149 BLAKE2B a9b2d7887732f1b6cabb6998ea7c128b52308a70fc46521521d92c1c3bb9f78fd2b32866c62fd0e67b360cfb32921ea900983e2892a9e37d3316364bdaabe26f SHA512 e9a99daff0e73344ab6cf73bb28fa26309b6ec85bcb5cfb84c343fe439a7e1e927960462b5f500af077a7470809d8fe4a2771f34c0727728121d9ba06792c715 DIST eggdrop-1.8.3.tar.gz 1756536 BLAKE2B c2693bc383e1d857fe784d54f34479e73902064196021788ddf21f0bb2910977c643d820d2f6b640bb459b2acbfad8158fc0b29b4d76c588dfd76fee09a6fa25 SHA512 ad3b93d18aaa05d0eb00f1089b68d1f077f316042e64fff511ad1bbac06d35105adcb503490faaac4c9fe720dd45a9f350115b6c5d0f41fe198f228213a7a3a3 DIST eggdrop-1.8.4.tar.gz 1784738 BLAKE2B a86cdc681ebd9c779b7da20f80ff312e4fc848e0cb0a0b9fa34941c91e1b89db1430126e3d0b94c7b4346c0bde099a6ddd343270943570744c46fc4ddd451540 SHA512 d08af09dc83045bf89eae957e7817591f16456f83ba3efe6b361fd421a3d4068348543275c26b27b006f09f06344c04cdf58ee4231f1aee0e7537ec39bc24b49 EBUILD eggdrop-1.8.3.ebuild 1720 BLAKE2B c10f202e1ef55e875b1182d50240f2f1555e13d7d357202dd682d55866eabee4660695f5711139b11ada087dfb47e1367b7ddc55ff6bbee9f4a303b0b177e165 SHA512 8ebf2205e9bbd244a99bd3b9af23ec423bd773f77978d2cf9cf46e174cdd3a01868aad71781175e97d27d5fd5ce609d0aff872e217a4eeafc5acdd8ff70883ba +EBUILD eggdrop-1.8.4-r1.ebuild 1601 BLAKE2B 0e2fce2a0939ac790860f8ad8eb5c41cd64111bba9a6fc6372d21301b9372ee791b87057375cafd03bad37a8824edc28a75e7768c44a9e0eed98b53a36124cdd SHA512 1ff8ae7165dee88c9c8ca0af807d86e2bcc6bbfacfc74e31d89fa90396045f41741b380a2ec060fd83210734f79d7761f8578b237afffca69774f2ab29b65673 EBUILD eggdrop-1.8.4.ebuild 1399 BLAKE2B f9815ed0c9b1fa803c0816ff4628af510623f9ca042b1ce76db6d197723c55a8ea96e681a0b2fb1dd175807f3c29925dcd814740d09791ed3d38039020dc3822 SHA512 bd6df9a7c19e318b210720a5669d142646ac18116a483509decf72468c47bfd81d3a024d4de92987fdd6218990d8a4efe02fb300c62edb0ac134802a1d57f61f MISC metadata.xml 390 BLAKE2B 1eb2981f9dc0339c56fd6a88c09b16c4ceeea6cecb6635f31c7b89d714a529d14ca8a9431d4003075e13a061fd8121e4d654299f2e5c48f6b12311f6f2b9371f SHA512 50fea1a13e327df7612a08b8ac6c5f8cd3ff76a69640ff045cc11e4da482ba6c67d893179d434106f4c739184be0de40a7e20b5717ac51b281ec728595f12708 diff --git a/net-irc/eggdrop/eggdrop-1.8.4-r1.ebuild b/net-irc/eggdrop/eggdrop-1.8.4-r1.ebuild new file mode 100644 index 000000000000..1ddb84ab8e16 --- /dev/null +++ b/net-irc/eggdrop/eggdrop-1.8.4-r1.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit readme.gentoo-r1 + +DESCRIPTION="An IRC bot extensible with C or TCL" +HOMEPAGE="https://www.eggheads.org/" +SRC_URI="https://ftp.eggheads.org/pub/eggdrop/source/${PV:0:3}/${P}.tar.gz" + +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~sparc ~x86" +LICENSE="GPL-2+" +SLOT="0" +IUSE="debug doc ipv6 ssl static" + +DEPEND=" + dev-lang/tcl:0= + ssl? ( dev-libs/openssl:0= ) +" +RDEPEND=" + sys-apps/gentoo-functions + ${DEPEND} +" + +PATCHES=( + # https://github.com/eggheads/eggdrop/pull/986 + "${FILESDIR}/${P}-respect-ldflags.patch" + # https://github.com/eggheads/eggdrop/pull/841 + "${FILESDIR}/${P}-fix-array-bounds-warning.patch" +) + +DOCS=( AUTHORS FEATURES INSTALL NEWS README THANKS UPGRADING ) + +src_configure() { + econf $(use_enable ssl tls) \ + $(use_enable ipv6 ipv6) + + emake config +} + +src_compile() { + local target + + if use static && use debug; then + target="sdebug" + elif use static; then + target="static" + elif use debug; then + target="debug" + fi + + emake ${target} +} + +src_install() { + emake DEST="${D}"/opt/eggdrop install + + use doc && HTML_DOCS=( doc/html/. ) + rm -r "${D}"/opt/eggdrop/doc/html || die + DOC_CONTENTS=" + Additional documentation can be found + in ${EPREFIX}/opt/eggdrop/doc + " + readme.gentoo_create_doc + einstalldocs + + dobin "${FILESDIR}"/eggdrop-installer + doman doc/man1/eggdrop.1 +} + +pkg_postinst() { + # Only display this for new installs + if [[ -z ${REPLACING_VERSIONS} ]]; then + elog "Please run ${EPREFIX}/usr/bin/eggdrop-installer to install your eggdrop bot." + fi +} diff --git a/net-irc/eggdrop/files/eggdrop-1.8.4-fix-array-bounds-warning.patch b/net-irc/eggdrop/files/eggdrop-1.8.4-fix-array-bounds-warning.patch new file mode 100644 index 000000000000..7c6c2d6dae69 --- /dev/null +++ b/net-irc/eggdrop/files/eggdrop-1.8.4-fix-array-bounds-warning.patch @@ -0,0 +1,24 @@ +diff --git a/src/flags.c b/src/flags.c +index 8cecd2898..3f0a7ea32 100644 +--- a/src/flags.c ++++ b/src/flags.c +@@ -403,7 +403,10 @@ void break_down_flags(const char *string, struct flag_record *plus, + which = plus; + mode++; + if ((mode == 2) && !(flags & (FR_CHAN | FR_BOT))) +- string = ""; ++ goto breakout; /* string = ""; does not work here because we need to ++ break out of while() / nested switch(), see ++ "string++;" below and string = "\0"; is worse than ++ goto */ + else if (mode == 3) + mode = 1; + break; +@@ -447,6 +450,7 @@ void break_down_flags(const char *string, struct flag_record *plus, + } + string++; + } ++breakout: + for (which = plus; which; which = (which == plus ? minus : 0)) { + which->global &=USER_VALID; + diff --git a/net-irc/eggdrop/files/eggdrop-1.8.4-respect-ldflags.patch b/net-irc/eggdrop/files/eggdrop-1.8.4-respect-ldflags.patch new file mode 100644 index 000000000000..e41dbd664c51 --- /dev/null +++ b/net-irc/eggdrop/files/eggdrop-1.8.4-respect-ldflags.patch @@ -0,0 +1,39 @@ +From 36f2df10c6c39290f6896f9ad5eb9d1419a1abe3 Mon Sep 17 00:00:00 2001 +From: Michael Ortmann <41313082+michaelortmann@users.noreply.github.com> +Date: Tue, 26 May 2020 01:08:03 +0200 +Subject: [PATCH] Respect LDFLAGS + +--- + src/Makefile.in | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/src/Makefile.in b/src/Makefile.in +index 6757bbc8c..c9605a049 100644 +--- a/src/Makefile.in ++++ b/src/Makefile.in +@@ -16,6 +16,7 @@ LD = @CC@ + STRIP = @STRIP@ + CFLAGS = @CFLAGS@ -I.. -I$(top_srcdir) @SSL_INCLUDES@ @DEFS@ $(CFLGS) + CPPFLAGS = @CPPFLAGS@ ++LDFLAGS = @LDFLAGS@ + + eggdrop_objs = bg.o botcmd.o botmsg.o botnet.o chanprog.o cmds.o dcc.o \ + dccutil.o dns.o flags.o language.o match.o main.o mem.o misc.o misc_file.o \ +@@ -41,7 +42,7 @@ linkstart: + touch mod/mod.xlibs + + link: +- $(LD) $(CFLAGS) -o ../$(EGGEXEC) $(eggdrop_objs) $(MODOBJS) $(XLIBS) md5/md5c.o compat/*.o `cat mod/mod.xlibs` ++ $(LD) $(CFLAGS) $(LDFLAGS) -o ../$(EGGEXEC) $(eggdrop_objs) $(MODOBJS) $(XLIBS) md5/md5c.o compat/*.o `cat mod/mod.xlibs` + + linkfinish: + @$(STRIP) ../$(EGGEXEC) && \ +@@ -63,7 +64,7 @@ clean: + main.o: + $(CC) $(CFLAGS) $(CPPFLAGS) \ + '-DCCFLAGS="$(CC) $(CFLAGS) $(CPPFLAGS)"' \ +- '-DLDFLAGS="$(LD)"' \ ++ '-DLDFLAGS="$(LD) $(LDFLAGS)"' \ + '-DSTRIPFLAGS="$(STRIP)"' -c $(srcdir)/main.c + + compatibility: |