From c5283d322accc6097afec74eab24550829788bab Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 23 Mar 2018 04:19:44 +0000 Subject: gentoo resync : 23.03.2018 --- net-irc/emech/Manifest | 5 +- net-irc/emech/emech-3.0.99_p3.ebuild | 89 ++++++++++++++++++++++ net-irc/emech/files/emech-3.0.99_p3-buildfix.patch | 70 +++++++++++++++++ net-irc/emech/metadata.xml | 9 ++- 4 files changed, 171 insertions(+), 2 deletions(-) create mode 100644 net-irc/emech/emech-3.0.99_p3.ebuild create mode 100644 net-irc/emech/files/emech-3.0.99_p3-buildfix.patch (limited to 'net-irc/emech') diff --git a/net-irc/emech/Manifest b/net-irc/emech/Manifest index 52b078614ffd..59c3352b86f7 100644 --- a/net-irc/emech/Manifest +++ b/net-irc/emech/Manifest @@ -1,3 +1,6 @@ +AUX emech-3.0.99_p3-buildfix.patch 2732 BLAKE2B b5af908f431049c8e3f5d631477a62769ef578ec1b610182a71fdf0811d0da37b77601c4d2de78d4f78de6a7330488a5878b7c11612c85263fef1573a807a0c4 SHA512 40119107c596f29838474fd3828c08736abdbf0fdf069556da6842393e64a3514d2fbb31dbe8c267649e12bf9ec678295b07c725f11161da852dc285ef3c6151 DIST emech-3.0.3.tar.gz 228709 BLAKE2B 596c2d757438e1ed08ecb96927258cbd1afcc6105831c336b5df4b22716fdeb2a3215678589c6d9898ad39979d6039cccb12f0af88183ac5fa1c9c1ce86c5102 SHA512 ffe478c0c1800c8afb7afca62dbe08fce6af25a5878ca5fb44bb1271a302d11b96263c51a3848996db8f33f1cdab60d86c26d571d6342fe1505d4dcff83803a3 +DIST emech-3.0.99p3.tar.gz 249209 BLAKE2B 8ff0806275f7b1c9e49bb2eeda2afa0ac94b894426a2f56508492f970070e4141f14f88ffb3c1c46855817c405d29454cf85ebba53c85b4038d7d9d079f4dff6 SHA512 8ce6f8889e060791ab3af6fa63623469a457c436b4e23c51dcd1833fd09e7692270a324ad1d15beb4ad390e9d481267a8ea60eb17c9fd3195b5ad0daf7341165 EBUILD emech-3.0.3-r1.ebuild 1744 BLAKE2B bd0fb4258a8715b1e34a0f9c556fbdedf93693982cebcd298a7b599d0bf727ba3a756b7276e2b0af1f8258fcdd576cd355c34a17580107eb05e96490c0f04a08 SHA512 539b9210d9a03e16c3350d706fa6042fd3d16de8b57397b1c28ce39ef88f7d526d2c89da51ddb41085c915fc6a378a3bc7e705417aca88e177112563b6cd09a2 -MISC metadata.xml 166 BLAKE2B c254f1fb642881aba57637be14fb0a89b10384f91a128feaec3a8c870d76efc2cbacb92caccc0dee2dd19a5ac5eaf8643080dafa05c4e2ac96a68568927e5afd SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 +EBUILD emech-3.0.99_p3.ebuild 1812 BLAKE2B 5f039acb2b736b7127b241bf56076dad6f9da55a1fea1726c7ae4630acab3ce79db938b20676c4430652b6cc61f26bc33396cd2e24b0adfba4cf32eed1407435 SHA512 ad3644c25d6c63b43a98e716044c59430e0c8bcb8db5307d14d0a3d03b81ed2386762628857cfdb12792fb73d4299c465c857fc74fc167817dbf48dfd6550632 +MISC metadata.xml 375 BLAKE2B 62804e73401c54751bf6394037337c2c93f95caedc8ada8ce64ff872e6c59622fb64ceabdd47df9f636de180c6bc08a75804be3a90791b6b646120470096a52a SHA512 19c676648690f2f4eac811f15d774ec9a85b9e1ce475944fd2d4dd9cca253bc10efd74f6988479f3d95828e56b790b1759002db272e8918768fba7b70f9f48a5 diff --git a/net-irc/emech/emech-3.0.99_p3.ebuild b/net-irc/emech/emech-3.0.99_p3.ebuild new file mode 100644 index 000000000000..f083ab026f89 --- /dev/null +++ b/net-irc/emech/emech-3.0.99_p3.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit readme.gentoo-r1 toolchain-funcs + +DESCRIPTION="UNIX compatible IRC bot programmed in the C language" +HOMEPAGE="http://www.energymech.net/" +SRC_URI="http://www.energymech.net/files/${P/_/}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" + +IUSE="debug session tcl" +S="${WORKDIR}/${P/_/}" + +DOC_CONTENTS="You can find a compressed sample config file at /usr/share/doc/${PF}" + +src_prepare() { + eapply "${FILESDIR}/${P}-buildfix.patch" + + sed -i \ + -e 's: "help/":"/usr/share/energymech/help/":' \ + -e 's: "messages/":"/usr/share/energymech/messages/":' \ + src/config.h.in || die + # Respect CFLAGS and LDFLAGS + sed -i \ + -e '/^LFLAGS/s/\$(PIPEFLAG)/\0 \$(OPTIMIZE) \$(LDFLAGS)/' \ + -e '/^GDBFLAG/d' \ + -e '/^PIPEFLAG/d' \ + src/Makefile.in || die + + eapply_user +} + +myconf() { + echo ./configure $* + ./configure $* || die "./configure failed" +} + +src_configure() { + myconf \ + --with-alias \ + --with-botnet \ + --with-bounce \ + --with-ctcp \ + --with-dccfile \ + --with-dynamode \ + --with-dyncmd \ + --with-greet \ + --with-ircd_ext \ + --with-md5 \ + --with-newbie \ + --with-note \ + --with-notify \ + --with-rawdns \ + --with-redirect \ + --with-seen \ + --with-stats \ + --with-telnet \ + --with-toybox \ + --with-trivia \ + --without-uptime \ + --with-web \ + --with-wingate \ + --without-profiling \ + $(use_with tcl) \ + $(use_with session) \ + $(use_with debug) +} + +src_compile() { + emake -C src CC="$(tc-getCC)" OPTIMIZE="${CFLAGS}" +} + +src_install() { + dobin src/energymech + + insinto /usr/share/energymech + doins -r help + + insinto /usr/share/energymech/messages + doins messages/*.txt + + dodoc sample.* README* TODO VERSIONS CREDITS checkmech + readme.gentoo_create_doc +} diff --git a/net-irc/emech/files/emech-3.0.99_p3-buildfix.patch b/net-irc/emech/files/emech-3.0.99_p3-buildfix.patch new file mode 100644 index 000000000000..de1dee6ed673 --- /dev/null +++ b/net-irc/emech/files/emech-3.0.99_p3-buildfix.patch @@ -0,0 +1,70 @@ +diff -Naur emech-3.0.99p3.org/src/gencmd.c emech-3.0.99p3/src/gencmd.c +--- emech-3.0.99p3.org/src/gencmd.c 2009-05-13 08:51:09.000000000 -0000 ++++ emech-3.0.99p3/src/gencmd.c 2018-03-16 22:52:42.591033854 -0000 +@@ -316,7 +316,7 @@ + } + if (pass == __struct_acces) + { +- printf("\t%i,\t/""* %s *""/\n", ++ printf("\t%li,\t/""* %s *""/\n", + pre_mcmd[wh].flags & CLEVEL, + pt); + } +@@ -390,7 +390,7 @@ + } + pass--; + } +- printf("#define LOCALHOST_ULONG %lu\n",inet_addr("127.1")); ++ printf("#define LOCALHOST_ULONG %u\n",inet_addr("127.1")); + printf("#else /""* MAIN_C *""/\n\n"); + printf("extern OnMsg mcmd[];\n"); + printf("extern OnMsg_access acmd[];\n\n"); +@@ -404,29 +404,29 @@ + + #ifdef BOTNET + combo.comboflags = 0; combo.x.noshare = 1; +- fprintf(of,"#define COMBO_NOSHARE\t0x%x\n",combo.comboflags); ++ fprintf(of,"#define COMBO_NOSHARE\t0x%lx\n",combo.comboflags); + combo.comboflags = 0; combo.x.readonly = 1; +- fprintf(of,"#define COMBO_READONLY\t0x%x\n",combo.comboflags); ++ fprintf(of,"#define COMBO_READONLY\t0x%lx\n",combo.comboflags); + #endif /* BOTNET */ + + #ifdef GREET + combo.comboflags = 0; combo.x.greetfile = 1; +- fprintf(of,"#define COMBO_GREETFILE\t0x%x\n",combo.comboflags); ++ fprintf(of,"#define COMBO_GREETFILE\t0x%lx\n",combo.comboflags); + combo.comboflags = 0; combo.x.randline = 1; +- fprintf(of,"#define COMBO_RANDLINE\t0x%x\n",combo.comboflags); ++ fprintf(of,"#define COMBO_RANDLINE\t0x%lx\n",combo.comboflags); + #endif /* GREET */ + + #ifdef BOUNCE + combo.comboflags = 0; combo.x.bounce = 1; +- fprintf(of,"#define COMBO_BOUNCE\t0x%x\n",combo.comboflags); ++ fprintf(of,"#define COMBO_BOUNCE\t0x%lx\n",combo.comboflags); + #endif /* BOUNCE */ + + combo.comboflags = 0; combo.x.echo = 1; +- fprintf(of,"#define COMBO_ECHO\t0x%x\n",combo.comboflags); ++ fprintf(of,"#define COMBO_ECHO\t0x%lx\n",combo.comboflags); + combo.comboflags = 0; combo.x.aop = 1; +- fprintf(of,"#define COMBO_AOP\t0x%x\n",combo.comboflags); ++ fprintf(of,"#define COMBO_AOP\t0x%lx\n",combo.comboflags); + combo.comboflags = 0; combo.x.avoice = 1; +- fprintf(of,"#define COMBO_AVOICE\t0x%x\n",combo.comboflags); ++ fprintf(of,"#define COMBO_AVOICE\t0x%lx\n",combo.comboflags); + + fclose(of); + return(0); +diff -Naur emech-3.0.99p3.org/src/function.c emech-3.0.99p3/src/function.c +--- emech-3.0.99p3.org/src/function.c 2009-05-17 20:25:29.000000000 -0000 ++++ emech-3.0.99p3/src/function.c 2018-03-17 11:41:15.224075216 -0000 +@@ -26,6 +26,7 @@ + #include "global.h" + #include "h.h" + #include "text.h" ++#include "linux/limits.h" + + LS char timebuf[24]; /* max format lentgh == 20+1, round up to nearest longword -> 24 */ + LS char idlestr[36]; /* max format lentgh == 24+1, round up to nearest longword -> 28 */ diff --git a/net-irc/emech/metadata.xml b/net-irc/emech/metadata.xml index 6f49eba8f496..d376f2bcd4b1 100644 --- a/net-irc/emech/metadata.xml +++ b/net-irc/emech/metadata.xml @@ -1,5 +1,12 @@ - + + dawid.weglinski@gmail.com + Dawid Węgliński + + + proxy-maint@gentoo.org + Proxy Maintainers + -- cgit v1.2.3