diff options
Diffstat (limited to 'app-admin/ccze')
-rw-r--r-- | app-admin/ccze/Manifest | 10 | ||||
-rw-r--r-- | app-admin/ccze/ccze-0.2.1-r3.ebuild | 44 | ||||
-rw-r--r-- | app-admin/ccze/ccze-0.2.1-r4.ebuild | 47 | ||||
-rw-r--r-- | app-admin/ccze/files/ccze-0.2.1-tinfo.patch | 10 | ||||
-rw-r--r-- | app-admin/ccze/files/ccze-fbsd.patch | 25 | ||||
-rw-r--r-- | app-admin/ccze/files/ccze-ldflags.patch | 11 | ||||
-rw-r--r-- | app-admin/ccze/files/ccze-segfault.patch | 29 | ||||
-rw-r--r-- | app-admin/ccze/metadata.xml | 11 |
8 files changed, 187 insertions, 0 deletions
diff --git a/app-admin/ccze/Manifest b/app-admin/ccze/Manifest new file mode 100644 index 000000000000..19df783cf995 --- /dev/null +++ b/app-admin/ccze/Manifest @@ -0,0 +1,10 @@ +AUX ccze-0.2.1-tinfo.patch 369 SHA256 0d39f8d775bbba749ab2a3fbd6813744fc9e36b8d1a3470e8a7c4734010182cf SHA512 8dd3d7a66807782fef49119e380eec9230d4d0708ef8b20cb9606740015f96f024b22967fae348bc59b3334a3b110dc1cacc8792a9a3402ddfdf600ccd71a62d WHIRLPOOL 08cada088cc6b28ec451db288af0a2cff6376806983064fccbf31d892a1ccd4086e05b87090a161fc985a395d13e917d0d15061ec660612bd858bf687f296af5 +AUX ccze-fbsd.patch 531 SHA256 38707e4cc95fabdcc4a89d07f5bc7f5c4ef723674ae43e481800ab7d112a04d4 SHA512 c94926f907b054b84df8c1887183fc44024d4a4b4e9cb4a91ce34adf25857cc30d9572673a3869fa1affacda047fa30f9d73ba198cdebecf40ae86b5fc9dceec WHIRLPOOL dfcff266a8b70f2b8305c6f3e791d75e30df8321ab2a04b39438f6576a064508bcc7d33a9a714e2ddb715981ad06c39b983d43c4cdc35f983e7baf4fd25de24d +AUX ccze-ldflags.patch 424 SHA256 68cd44dd51f43d690760b809f962b74195a5f919719c7c34bfcb30cf6ce8d687 SHA512 7dff2e235acc665abcc3ed35744776e60a336b45cafbd80e3f4707f61d3746821e63949e73c32ee4fc5ca43b5639a816c42bb5e0b08912a7c617744dff39ec07 WHIRLPOOL 52bac605ae70d46a0fadd6e524283a41fcd57a04ba57da2b89ab330a12118672af78334694d6e2fda6f2976f0308efa1fddf1fe63f3e17c480657cc333ad326b +AUX ccze-segfault.patch 660 SHA256 69db1dbe844d21846b351ad5fa39714336db0372d25a96a096479dfe33da12d5 SHA512 e8ebdbc8293b4d765d683bbdd222c0af3aaf0668ea8376ed830efac3cdb4a99dfc75dda6e59b95e7a36b7ab4fc521a9a1937e4ab9a48218acc76d2b02844b900 WHIRLPOOL 15dd26f2c8acdf7e277cdb95808e22ec0110f669c767ed92e25219f7cf6a14fac314cf4e855266d07002b31969690a1c250d575358aef87cea2352a3d445b987 +DIST ccze-0.2.1.tar.gz 139795 SHA256 8263a11183fd356a033b6572958d5a6bb56bfd2dba801ed0bff276cfae528aa3 SHA512 1704da8d4c97a3403a57d7841db8a6e4ba6116e401f91d9ecf1b1371cc18b40641e5665c9414740d6a523874be6b6527f5c0d4f3a3796c7b96ed83192146b2b7 WHIRLPOOL 93f8891c3a7885ca264f7269493893e6555865c89dee5cf5c890754f55db0ac60dce26d76318c8f838d7ee6ff6fe8e2454e9b4490ab607e496a5fdc0ef4f7685 +EBUILD ccze-0.2.1-r3.ebuild 946 SHA256 180b85dad48f64b953696aaf25b7468176d63c531717c0e504e5991dc2627336 SHA512 2aba3653cce66c2a95a960b0cbdcd7cf24e60b6340fe2f5b03cd2d0fe98fd5f52be1ae6691b184b594d6377f442b136fb0b95459fb4b2634658c62ca3c5a1b59 WHIRLPOOL d2691d7ab51f0caf371f4cbf2b7c8fb9ea746cc6739129ef4988cbf66c722bbc27b11085bd07640489dbd3918edecd13b0b9c2b718632975ee1fad25a4668a5f +EBUILD ccze-0.2.1-r4.ebuild 942 SHA256 93cdf41d7d0f6f588941bfcb77e9a4752d5d7d336443fa7ea9711ac12d236925 SHA512 89175fcd5e332bfca5bafa3106b0e39b0cd786038d748faaa745e13eafc4d2a69d5bc6a08d4302eb5e0acea84265cab67f69ea148470b56d659103815cb4dddd WHIRLPOOL eba511971c3d475e09981a58c3fbe9bc49f66d15d3cf482c9834796b8b7dc7c647cef7aac91650dc2c9b6dce306ad424c2c0ef1823f46a1515d80500c34d21e1 +MISC ChangeLog 2633 SHA256 1fc05940fec2b6336841568afe9543308e8d4146073e6381256ed84ff5236bfc SHA512 a8be866098fe28d9915e9fa50adc97861aee2271a2144c4d11feac8bd2d0104bf6b9dbf1c5c300468b0b8a0476d6a9736d15f6e82f41d40b6ea685ab33de7df9 WHIRLPOOL d16fabbe6efc6999781577b06a473ca6a127ccf94fb056e4818518952d7859562973825f68fa14ea0b63301ce115a1135e43ce750b41640c373c30c4960c2126 +MISC ChangeLog-2015 4131 SHA256 fa5be6c17c89031f666ae73f74cbe09cd227d0947961da65e823ce01266c75e4 SHA512 9cf521076e71a6058e0d4f6882cf5167b2f23bbfeedd59b689c4c03b40465362513a8f149f68c866926ddf45079d32a8bf7de443aac637e3b7c3f549ae3a99b2 WHIRLPOOL 5302e930b42b15a1331e324f1fdc05484b90422d7593189739b1d4fb6ab4bc5d12012548db52a9a44d5dc4eac402f8591919c4f0920a8134f5a2bc2f9083ddef +MISC metadata.xml 492 SHA256 2f2375bd9bfefe338069ba07bebe6505704dc5b3706399dc56827a330722da7f SHA512 96d871b02eee0348e6d62f01bd25deca9044248f0f495be24fc8cadd30c16ef933a285e250f58d58b47f64eec8f964de2ef243617f66266a655cb83f02acd8d8 WHIRLPOOL 36e2583ff602b39ae323f602cf96fe93d334d91470cf38c4826c4b3b5a235e92cf8a661d08f44d32c14f53371a06b49ec7378a72366a05ad2070697c90bc62e3 diff --git a/app-admin/ccze/ccze-0.2.1-r3.ebuild b/app-admin/ccze/ccze-0.2.1-r3.ebuild new file mode 100644 index 000000000000..94fa5efed7b1 --- /dev/null +++ b/app-admin/ccze/ccze-0.2.1-r3.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit fixheadtails autotools eutils toolchain-funcs + +DESCRIPTION="A flexible and fast logfile colorizer" +HOMEPAGE="https://dev.gentoo.org/~joker/ccze/ccze.txt" +SRC_URI="mirror://gentoo/${P}.tar.gz" + +RESTRICT="test" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~arm ppc x86 ~x86-fbsd" +IUSE="" + +DEPEND="dev-libs/libpcre + sys-libs/ncurses:0=" + +RDEPEND="${DEPEND}" + +DOCS=( AUTHORS ChangeLog ChangeLog-0.1 NEWS THANKS README FAQ ) + +src_prepare() { + + epatch "${FILESDIR}"/ccze-fbsd.patch + epatch "${FILESDIR}"/ccze-segfault.patch + epatch "${FILESDIR}"/ccze-ldflags.patch + epatch "${FILESDIR}"/${P}-tinfo.patch + + # GCC 4.x fixes + sed -e 's/-Wswitch -Wmulticharacter/-Wswitch/' \ + -i src/Makefile.in || die + sed -e '/AC_CHECK_TYPE(error_t, int)/d' \ + -i configure.ac || die + + eautoreconf + + ht_fix_file Rules.mk.in + + tc-export CC +} diff --git a/app-admin/ccze/ccze-0.2.1-r4.ebuild b/app-admin/ccze/ccze-0.2.1-r4.ebuild new file mode 100644 index 000000000000..e2677e5eeb1f --- /dev/null +++ b/app-admin/ccze/ccze-0.2.1-r4.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit fixheadtails autotools eutils toolchain-funcs + +DESCRIPTION="A flexible and fast logfile colorizer" +HOMEPAGE="https://dev.gentoo.org/~joker/ccze/ccze.txt" +SRC_URI="mirror://gentoo/${P}.tar.gz" + +RESTRICT="test" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~x86 ~x86-fbsd" +IUSE="" + +DEPEND="dev-libs/libpcre + sys-libs/ncurses:0=" + +RDEPEND="${DEPEND}" + +DOCS=( AUTHORS ChangeLog ChangeLog-0.1 NEWS THANKS README FAQ ) + +PATCHES=( + "${FILESDIR}"/ccze-fbsd.patch + "${FILESDIR}"/ccze-segfault.patch + "${FILESDIR}"/ccze-ldflags.patch + "${FILESDIR}"/${P}-tinfo.patch +) + +src_prepare() { + default + + # GCC 4.x fixes + sed -e 's/-Wswitch -Wmulticharacter/-Wswitch/' \ + -i src/Makefile.in || die + sed -e '/AC_CHECK_TYPE(error_t, int)/d' \ + -i configure.ac || die + + eautoreconf + + ht_fix_file Rules.mk.in + + tc-export CC +} diff --git a/app-admin/ccze/files/ccze-0.2.1-tinfo.patch b/app-admin/ccze/files/ccze-0.2.1-tinfo.patch new file mode 100644 index 000000000000..d0d7550e3337 --- /dev/null +++ b/app-admin/ccze/files/ccze-0.2.1-tinfo.patch @@ -0,0 +1,10 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -100,6 +100,7 @@ + strndup strstr]) + + AC_CHECK_LIB(ncurses, initscr, [], [AC_ERROR(NCurses library not found)]) ++AC_SEARCH_LIBS(stdscr, tinfo,,[AC_ERROR([Cannot find a library providing stdscr])]) + AC_CHECK_FUNC(dlopen, [], [AC_CHECK_LIB(dl, dlopen)]) + AC_CHECK_FUNC(getopt_long, [], [AC_CHECK_LIB(gnugetopt, getopt_long)]) + diff --git a/app-admin/ccze/files/ccze-fbsd.patch b/app-admin/ccze/files/ccze-fbsd.patch new file mode 100644 index 000000000000..ae694e0e4423 --- /dev/null +++ b/app-admin/ccze/files/ccze-fbsd.patch @@ -0,0 +1,25 @@ +--- a/src/ccze-compat.h ++++ b/src/ccze-compat.h +@@ -29,6 +29,11 @@ + #include <stddef.h> + #include <stdio.h> + ++# ifndef __error_t_defined ++typedef int error_t; ++# define __error_t_defined 1 ++# endif ++ + #ifndef HAVE_STRNDUP + char *strndup (const char *s, size_t size); + #endif +--- a/src/ccze-compat.c ++++ b/src/ccze-compat.c +@@ -275,7 +275,7 @@ + char **valuep) + { + int i = getsubopt (optionp, tokens, valuep); +-#if HAVE_SUBOPTARg ++#if HAVE_SUBOPTARG + if (!*valuep && suboptarg) + *valuep = strdup (suboptarg); + #endif diff --git a/app-admin/ccze/files/ccze-ldflags.patch b/app-admin/ccze/files/ccze-ldflags.patch new file mode 100644 index 000000000000..4f8c8f207209 --- /dev/null +++ b/app-admin/ccze/files/ccze-ldflags.patch @@ -0,0 +1,11 @@ +--- a/src/Makefile.in ++++ b/src/Makefile.in +@@ -75,7 +75,7 @@ + ${PROGRAM}: ${OBJECTS} ${PLUGIN_SOBJS} + ${CC} -rdynamic ${ALL_CFLAGS} -o $@ $^ ${ALL_LDFLAGS} + ccze-dump ccze-cssdump: %: %.o ccze-compat.o ccze-color.c +- ${CC} ${ALL_CFLAGS} -o $@ $@.o ccze-compat.o ++ ${CC} ${ALL_CFLAGS} ${ALL_LDFLAGS} -o $@ $@.o ccze-compat.o + ccze-builtins.c: Makefile + echo '#include <ccze.h>' >$@ + echo '#include "ccze-private.h"' >>$@ diff --git a/app-admin/ccze/files/ccze-segfault.patch b/app-admin/ccze/files/ccze-segfault.patch new file mode 100644 index 000000000000..5bdd823e4120 --- /dev/null +++ b/app-admin/ccze/files/ccze-segfault.patch @@ -0,0 +1,29 @@ +--- a/src/ccze.c ++++ b/src/ccze.c +@@ -209,7 +209,7 @@ + } + break; + case 'a': +- plugin = strtok (optarg, "="); ++ plugin = strtok (arg, "="); + value = strtok (NULL, "\n"); + ccze_plugin_argv_set (plugin, value); + break; +@@ -249,7 +249,7 @@ + ccze_config.remfac = 1; + break; + case 'm': +- subopts = optarg; ++ subopts = arg; + while (*subopts != '\0') + { + switch (getsubopt (&subopts, m_subopts, &value)) +@@ -273,7 +273,7 @@ + } + break; + case 'o': +- subopts = optarg; ++ subopts = arg; + while (*subopts != '\0') + { + switch (getsubopt (&subopts, o_subopts, &value)) diff --git a/app-admin/ccze/metadata.xml b/app-admin/ccze/metadata.xml new file mode 100644 index 000000000000..49a6829d2fd1 --- /dev/null +++ b/app-admin/ccze/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<!-- maintainer-needed --> +<longdescription> + CCZE is my C port of RASZi's colorize, with a set of bug fixes and enhancements. + It uses PCRE to do the matching, and NCurses for the output. The goal was to + create a log coloriser, that is fast and light on resources. Also, being extensible + via plug-ins is an important feature too. +</longdescription> +</pkgmetadata> |