diff options
Diffstat (limited to 'net-irc/eggdrop')
-rw-r--r-- | net-irc/eggdrop/Manifest | 9 | ||||
-rw-r--r-- | net-irc/eggdrop/eggdrop-1.6.21-r1.ebuild | 111 | ||||
-rw-r--r-- | net-irc/eggdrop/files/eggdrop-1.6.21-fix-gcc5-remove-inline.patch | 52 | ||||
-rw-r--r-- | net-irc/eggdrop/files/eggdrop-1.6.21-fix-memset.patch | 11 | ||||
-rw-r--r-- | net-irc/eggdrop/files/eggdrop-installer | 83 | ||||
-rw-r--r-- | net-irc/eggdrop/metadata.xml | 17 |
6 files changed, 283 insertions, 0 deletions
diff --git a/net-irc/eggdrop/Manifest b/net-irc/eggdrop/Manifest new file mode 100644 index 000000000000..607991063334 --- /dev/null +++ b/net-irc/eggdrop/Manifest @@ -0,0 +1,9 @@ +AUX eggdrop-1.6.21-fix-gcc5-remove-inline.patch 1551 SHA256 f8ae1d7973e17e3890aacc9fae0c9184af45623c0f3cc1e1bce797df6c81271c SHA512 66c4bc3a632736cdef4d6b641e9ff30ce4e479114067901c208e26379f21e563c515b381690b3204c2437ae8a71ea756103185fe8bb508f0b22d9a907c5622ff WHIRLPOOL 6a66c1e6b73e64ba0bc726ba277f85992ae6ea9dfd463c79b36f308d8489acd2f0a64688603d5a86dbe9bdeabbff67771a1f3c96788c3b566d524a5558625023 +AUX eggdrop-1.6.21-fix-memset.patch 323 SHA256 36eadc8f6f67ed946946536200e5fa66ec1dd9c6cbd790f6a0166dd130c0965c SHA512 91f422c7af4d3f5dd11d770eb6f6495f321fa8be2d51bbcb7b39756e8e3137a397175a997ea8fdcd74783b72bebcac052866f297c2ae70a4f649c5fb9b4b6c04 WHIRLPOOL 53e3e8230b422ec0819112aab6bd5feee5281c3186f2f1a28294b3afcace32007668dd028b2ac4b89aff29b3c65e31e75a23760ac0c3a0a86123afd8efc941e2 +AUX eggdrop-installer 2149 SHA256 5df6d951add6d42dac6d1b4238b72cb917af2e9647100a457124251ea75eb898 SHA512 e9a99daff0e73344ab6cf73bb28fa26309b6ec85bcb5cfb84c343fe439a7e1e927960462b5f500af077a7470809d8fe4a2771f34c0727728121d9ba06792c715 WHIRLPOOL cdf0ab7b7437d70fc84ef9b333b85935dee25e39887ea1ae4a11d2c267848ff0c0948c3da891a4ceaae95debec94aaceaad397fe64309555970e26c0d80a338f +DIST eggdrop-1.6.21-patches-1.0.tar.bz2 322608 SHA256 78b3107b711ce2df1e7752eb60d517774f104ba1ba0623bb116b824ab8d069d7 SHA512 d7d5d740c68997101f360096612700919c890c4254708102e962427de5929ce98f0f2eb5ad8dc8a56de60e8b610d502edeae7de2ac762fe0981134da379b6e64 WHIRLPOOL 202294f941d064b89348b270823d6b5f6e61483d56d32bde699857efe03c9aafec3ad4a9b6d503ffd97eefe6c6d4912e95546bd12f028e95c52d0e31e2086a1d +DIST eggdrop1.6.21.tar.bz2 999211 SHA256 75bd5573a609eac3940c0b6ca8251c3f38ea5d54b520e1cad93c650b4bc21754 SHA512 9fd9a86c1c4b59a47a5eed4e2306e829a01bac2ad29e990ca9c0ec630d5814fd649a9216dae9ce49f734e3ac1728beb4f479ca10af583bd513f43bbbea23a653 WHIRLPOOL fc8115d6c5f1ac2878bb3811f303fe797f7b813d74f2c5c0be5a703a7e29d652b791a0a5e98842792f2466443c8571c983cd89fd516f36136f62a394060b052d +EBUILD eggdrop-1.6.21-r1.ebuild 2464 SHA256 b4e0495da485b27163b0304fa60d7c3b292d4cb4728e31c2ad6cdcc2aabbb06a SHA512 509f82d3d4ce3a1c9762f212d254e488d501f358172df9fc2982b1f8b1cd69436494d02815940059aaa2b3e9c25b6c2b2878666af74bb2684557a55c92b6364e WHIRLPOOL e800d37d04227c244994fd2c3bd4d51fb63fd79b5d83a2aba78c5f66cab2c9e89d8ef84129acbeca1c72f8d973e49fc772cd36a6707edc96532ef36c2a457ded +MISC ChangeLog 3376 SHA256 87713a5a96bec258a469d09209955ca36837c570f3f3fcaf513bb5df2e9c1fee SHA512 b250d1299f3bfd717a10f699de9182bed915332b259783c7d71cff007f42b1fbf38b497a2c44d5b81b24131603d602138598be81998534624a63fd4147d1e1ad WHIRLPOOL 8a6e9118bdd8f6132e11e94586c6d28207974770cc726e9deeb4f4b55ce58d131e38babeda71ef1ae47576ef86df9593c90efe7de50175da19440acc525cc8c9 +MISC ChangeLog-2015 14465 SHA256 84ee79e75edb4638cb31d423259d800b8d64a222bfa70084b371e98a375d5c82 SHA512 ea51a43a6a64d26931d4b441ac1834f8be338f466089f90435454bbf2bb6db7a46ca2b23478ecabe4a01c3f086f699ed4856017c5032b67425ba39c7167f94c0 WHIRLPOOL 6e9009b64b1621de0735179077c97eec24f8195763449b1db67f13d2020856702aa9a04aead4946968351698e0acf1d3a76e0c0b4380687b3aa34b1fe135d0f8 +MISC metadata.xml 591 SHA256 f86303553c1a4171548919f3af9279581a7c2061f7315e392c5ca946348c5dfc SHA512 45c78eafa22ba72fa30290dd18da85c6bdd677d623ccced725b20690b5822dbc55888fe0d09364cf4e81f04fda50377368fed966f0251704db30932ea9defbe2 WHIRLPOOL 8e9c6faa86c1b14e149859bc03c261743ff39513be1a4d3c0e42fc4f405166aace69646d508270e3759fc02c40d71691a0b27e9a0dbeb5d7304f0490f275bfb1 diff --git a/net-irc/eggdrop/eggdrop-1.6.21-r1.ebuild b/net-irc/eggdrop/eggdrop-1.6.21-r1.ebuild new file mode 100644 index 000000000000..b9e9aed74280 --- /dev/null +++ b/net-irc/eggdrop/eggdrop-1.6.21-r1.ebuild @@ -0,0 +1,111 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils + +MY_P="eggdrop${PV}" +PATCHSET_V="1.0" + +DESCRIPTION="An IRC bot extensible with C or TCL" +HOMEPAGE="http://www.eggheads.org/" +SRC_URI=" + ftp://ftp.eggheads.org/pub/eggdrop/source/1.6/${MY_P}.tar.bz2 + https://dev.gentoo.org/~binki/distfiles/${CATEGORY}/${PN}/${P}-patches-${PATCHSET_V}.tar.bz2" + +KEYWORDS="alpha amd64 ia64 ~mips ppc sparc x86" +LICENSE="GPL-2" +SLOT="0" +IUSE="debug mysql postgres ssl static vanilla" + +REQUIRED_USE="vanilla? ( !mysql !postgres !ssl )" + +DEPEND=" + dev-lang/tcl:0 + sys-apps/gentoo-functions + !vanilla? ( + mysql? ( virtual/mysql ) + postgres? ( dev-db/postgresql:*[server] ) + ssl? ( dev-libs/openssl:0= ) + )" +RDEPEND="${DEPEND}" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + # fix bug 571004 and a QA warning + epatch "${FILESDIR}/${P}-fix-gcc5-remove-inline.patch" \ + "${FILESDIR}/${P}-fix-memset.patch" + if use vanilla; then + rm -f "${WORKDIR}"/patch/[1-6]*.patch || die + fi + + EPATCH_SUFFIX="patch" epatch + + # fix bug #335230 + sed -i \ + -e '/\$(LD)/s/-o/$(CFLAGS) $(LDFLAGS) &/' \ + src/mod/*.mod/Makefile* src/Makefile.in || die + default +} + +src_configure() { + use mysql || ( echo mysql ; echo mystats ) >>disabled_modules + use postgres || echo pgstats >>disabled_modules + use static && ( echo rijndael ; echo twofish ) >>disabled_modules + + econf $(use_with ssl) + + 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 -j1 ${target} # fixes #533490 +} + +src_install() { + local a b + emake DEST="${D}"/opt/eggdrop install + + for a in doc/*; do + [ -f ${a} ] && dodoc ${a} + done + + for a in src/mod/*.mod; do + for b in README UPDATES INSTALL TODO CONTENTS; do + [[ -f ${a}/${b} ]] && newdoc ${a}/${b} ${b}.${a##*/} + done + done + + dodoc text/motd.* + + use vanilla || dodoc \ + src/mod/botnetop.mod/botnetop.conf \ + src/mod/gseen.mod/gseen.conf \ + src/mod/mc_greet.mod/mc_greet.conf \ + src/mod/stats.mod/stats.conf \ + src/mod/away.mod/away.doc \ + src/mod/rcon.mod/matchbot.tcl \ + src/mod/mystats.mod/tools/mystats.{conf,sql} \ + src/mod/pgstats.mod/tools/{pgstats.conf,setup.sql} + + dodoc -r doc/html + + dobin "${FILESDIR}"/eggdrop-installer + doman doc/man1/eggdrop.1 +} + +pkg_postinst() { + elog "Please run /usr/bin/eggdrop-installer to install your eggdrop bot." +} diff --git a/net-irc/eggdrop/files/eggdrop-1.6.21-fix-gcc5-remove-inline.patch b/net-irc/eggdrop/files/eggdrop-1.6.21-fix-gcc5-remove-inline.patch new file mode 100644 index 000000000000..f7bcd8b80bca --- /dev/null +++ b/net-irc/eggdrop/files/eggdrop-1.6.21-fix-gcc5-remove-inline.patch @@ -0,0 +1,52 @@ +diff --git a/src/net.c b/src/net.c +index 68c245c..e48fb76 100644 +--- a/src/net.c ++++ b/src/net.c +@@ -564,7 +564,7 @@ int open_address_listen(IP addr, int *port) + /* Returns a socket number for a listening socket that will accept any + * connection -- port # is returned in port + */ +-inline int open_listen(int *port) ++int open_listen(int *port) + { + return open_address_listen(myip[0] ? getmyip() : INADDR_ANY, port); + } +diff --git a/src/proto.h b/src/proto.h +index 117347e..e80e30b 100644 +--- a/src/proto.h ++++ b/src/proto.h +@@ -271,7 +271,7 @@ int getsock(int); + void killsock(int); + void killtclsock(int); + int answer(int, char *, unsigned long *, unsigned short *, int); +-inline int open_listen(int *); ++int open_listen(int *); + int open_address_listen(IP addr, int *); + int open_telnet(char *, int); + int open_telnet_dcc(int, char *, char *); +diff --git a/src/tclhash.c b/src/tclhash.c +index 822f920..7281ceb 100644 +--- a/src/tclhash.c ++++ b/src/tclhash.c +@@ -109,7 +109,7 @@ static inline void tcl_bind_list_delete(tcl_bind_list_t *tl) + nfree(tl); + } + +-inline void garbage_collect_tclhash(void) ++void garbage_collect_tclhash(void) + { + tcl_bind_list_t *tl, *tl_next, *tl_prev; + tcl_bind_mask_t *tm, *tm_next, *tm_prev; +diff --git a/src/tclhash.h b/src/tclhash.h +index 4069014..3bd85a7 100644 +--- a/src/tclhash.h ++++ b/src/tclhash.h +@@ -75,7 +75,7 @@ typedef struct tcl_bind_list_b { + + #ifndef MAKING_MODS + +-inline void garbage_collect_tclhash(void); ++void garbage_collect_tclhash(void); + + void init_bind(void); + void kill_bind(void); diff --git a/net-irc/eggdrop/files/eggdrop-1.6.21-fix-memset.patch b/net-irc/eggdrop/files/eggdrop-1.6.21-fix-memset.patch new file mode 100644 index 000000000000..f4d60f322dac --- /dev/null +++ b/net-irc/eggdrop/files/eggdrop-1.6.21-fix-memset.patch @@ -0,0 +1,11 @@ +diff --git a/src/md5/md5c.c b/src/md5/md5c.c +index 4dce058..cfdf97c 100644 +--- a/src/md5/md5c.c ++++ b/src/md5/md5c.c +@@ -267,5 +267,5 @@ void MD5_Final(unsigned char *result, MD5_CTX *ctx) + result[14] = ctx->d >> 16; + result[15] = ctx->d >> 24; + +- egg_memset(ctx, 0, sizeof(ctx)); ++ egg_memset(ctx, 0, sizeof(*ctx)); + } diff --git a/net-irc/eggdrop/files/eggdrop-installer b/net-irc/eggdrop/files/eggdrop-installer new file mode 100644 index 000000000000..3f18376269ea --- /dev/null +++ b/net-irc/eggdrop/files/eggdrop-installer @@ -0,0 +1,83 @@ +#!/bin/bash +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +source /lib/gentoo/functions.sh || { + echo "${0}: Could not source /lib/gentoo/functions.sh!" + exit 1 +} + +# Checks to see if user is trying to install eggdrop as root. +root_check() { + if [ "${HOME}" = "/root" ] || [ "$(whoami)" = "root" ] + then + ewarn "You should not be installing eggdrop as root." + ewarn + ewarn "Installing eggdrop as root leaves your computer vulnerable" + ewarn "to attack from other irc clients. Please use the eggdrop-installer" + ewarn "script as the user who you wish to run eggdrop with" + exit 1 + fi +} + +# Usage information +usage() { + cat <<USAGE_END +Usage: eggdrop-installer <bot-name> +Install eggdrop for a specific user, creating the directories and files +needed for eggdrop to run securely and safely. +USAGE_END + exit 1 +} + +# Install eggdrop +install_eggdrop() { + einfo "Installing Eggdrop" + einfo + + root_check + + if [ -d "${bot_dir}" ] + then + einfo "Already found a bot home directory for ${bot_name}" + exit 1 + fi + + einfo "Creating directories for your eggdrop..." + for dir in logs filesys/incoming text tmp scripts var + do + mkdir -p "${bot_dir}/${dir}" + done + + einfo "Creating symlinks to required files for your bot to run..." + for file in help language modules eggdrop + do + ln -s "/opt/eggdrop/${file}" "${bot_dir}/${file}" + done + + einfo "Copying motd, banner, scripts and config file..." + cp /opt/eggdrop/text/* "${bot_dir}/text" + cp /opt/eggdrop/scripts/* "${bot_dir}/scripts" + cp /opt/eggdrop/eggdrop.conf "${bot_dir}/eggdrop.conf" + + einfo "Finished..." + einfo + einfo "Please edit your ${bot_dir}/eggdrop.conf!" + einfo + einfo "The bot needs to be run from the ${bot_dir} directory." + einfo "Run 'cd ${bot_dir} && ./eggdrop -m eggdrop.conf'" + einfo "to create the user file and then remove the -m command line option" + einfo "to start your eggdrop bot." + einfo + einfo "If you need any help please refer to the man page, or" + einfo "eggdrop website at http://www.egghelp.org/" +} + +if [ -z "${1}" ] +then + usage +else + bot_name="${1}" + bot_dir="${HOME}/.eggdrop/${bot_name}" + install_eggdrop +fi diff --git a/net-irc/eggdrop/metadata.xml b/net-irc/eggdrop/metadata.xml new file mode 100644 index 000000000000..ec93e5973015 --- /dev/null +++ b/net-irc/eggdrop/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>sautier.louis@gmail.com</email> + <name>Louis Sautier</name> + <description>Proxied maintainer; set to assignee in all bugs</description> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <upstream> + <remote-id type="github">eggheads/eggdrop</remote-id> + <bugs-to>https://github.com/eggheads/eggdrop/issues</bugs-to> + </upstream> +</pkgmetadata> |