summaryrefslogtreecommitdiff
path: root/app-misc/mtail
diff options
context:
space:
mode:
Diffstat (limited to 'app-misc/mtail')
-rw-r--r--app-misc/mtail/Manifest7
-rw-r--r--app-misc/mtail/files/mtail-1.1.1-remove-blanks.patch52
-rw-r--r--app-misc/mtail/metadata.xml15
-rw-r--r--app-misc/mtail/mtail-1.1.1-r3.ebuild30
4 files changed, 104 insertions, 0 deletions
diff --git a/app-misc/mtail/Manifest b/app-misc/mtail/Manifest
new file mode 100644
index 000000000000..ee79525429bb
--- /dev/null
+++ b/app-misc/mtail/Manifest
@@ -0,0 +1,7 @@
+AUX mtail-1.1.1-remove-blanks.patch 1850 SHA256 d480a148cd9c429ad4b358bbc963e844460ef07713cb6dd61d9fc9750ce8df63 SHA512 64720ec0253dfc88e58b0392bcb4c1eb2f367547d034f60722dc19b0093d5da3d40e847c69203080cd19126ab67f7fad3c2dccc7e6cc74f56c1d50f3dee805a4 WHIRLPOOL 547d5dcc6ad2d11f68889796e28ff616ade9fe06755bb2a6612d0ea435b9a11373fb93bae2210cc780e24cd0ccc8aa03d33d0e5c95346e60cc3d4d1b7b7cbe0a
+DIST mtail-1.1.1.tgz 9124 SHA256 1c82feb4ced3dc861497d4adc27a4d62d7002112bcfa24d1655348dda79bf3ab SHA512 987816ce5d12996192c881be1ac5a28c3457757e981ab35e657fb226c3980a22091c9fc85f68c13eb1c01939e08e492814b6a03c9b1f4f4bc1878c4f13ec8a0e WHIRLPOOL 2fbcbd3f3ab76dbbd801c898b8a9a32c636c02d69ddfcc505e280f7fcbb0aaa8e8f7f6c6f6fbdf05a753b460a086af573d25d5ba991ce3002d8047c9e69b5552
+DIST mtailrc-syslog.sample 1785 SHA256 3ec8e4fb26d138aab3e445d33adef5180db2a45eb65a942432c4c170840a3682 SHA512 d6bbaafa7c599f443c788697087ebef69a8e279b0715fa4e5b770531cbd254a646014fa98e5e5d444c48d23974201d36a856b34507a91e1b6abbb423f7015c75 WHIRLPOOL 40a6cf32c13aa86145570828e3cfbf2e6253ecdffc8103f86237286f170338e97aaf7087f6d3d25c6ffbbf3eb1afd1d41aa94a5266f8cd9181be756bbbe1b108
+EBUILD mtail-1.1.1-r3.ebuild 774 SHA256 1faadbb914502302545966ecab1e22f1c30b7cd7fa463bc65d12498dce86f40f SHA512 71ac79bf2bdb32e2a2f3111797c261053fd2a11211376bc7ed554e49bc7b6582a727f240af1565884949aaacf570da623694ecedf68e3ae5e93024e8befd39d0 WHIRLPOOL 37850ee6935b74351c5115be41f36dc60ccc21cffe95ac2e306585e50035333d46e24a5873f8d174d3dc42a3ab06bb6770ba4cd26665f07554710e231c35fbb8
+MISC ChangeLog 3159 SHA256 110c86e9f9ad8c48fdd352ac0cefa9195d631e793304dd1636d5bd830a0181ac SHA512 e54a0a43fda74bf3d34ea4b218948465d5bbe2f01cbf2512315d37adc137723fdf04bdd903f6dcc375681955ceb519ad1ba184a29c94a8d94d26951d8521e58f WHIRLPOOL b3d593889ae35b65dc30b2ceb98a64558c2ee0f63611f4715ce435d969839cec50f972c4d965b091bd4daff69d52dbc467076d1f931df4607df0cd4a5f13592b
+MISC ChangeLog-2015 2877 SHA256 86e4eded6c170f44695d80c1e9f89fdc9c4864a63f1080b5b0a2294055597c28 SHA512 02c3c19e090b8a80df5cfedc74261d2daa1ffb61c152549d78de0879eb9dcb97be0e0c870c8af1a9b686ce2c095a663de7c70be5cd8041e16a843686f75b7d5c WHIRLPOOL 6934fb9b2ee5adff888b489f40e5e0d621ccd417ef1b97a2e51739c95310a0a297e8a97834eb908f9b63e75f4168a8e5fa62020380667522a2aa75292c003f28
+MISC metadata.xml 642 SHA256 15f4836e5e17e670003cc3fb803741c687ae33d86faab258f345073d07d803ce SHA512 7de4bfd79c4dbd929950e191faf4ff6ab90426a0f604fddbdcbaf65d21d21d9a5ec7fb382dc95751ccda8e463bd189dbc07b4d29d92c9dab90e7eb955ace8e19 WHIRLPOOL 23579192221213a40df3f118d9233d3356c1da3bc32cc23d157c57c186446531f46915c5788c234c65b5f60f0e0d8fcc7827c5f23898761a0ad23a6bbf06ed41
diff --git a/app-misc/mtail/files/mtail-1.1.1-remove-blanks.patch b/app-misc/mtail/files/mtail-1.1.1-remove-blanks.patch
new file mode 100644
index 000000000000..9645e263deda
--- /dev/null
+++ b/app-misc/mtail/files/mtail-1.1.1-remove-blanks.patch
@@ -0,0 +1,52 @@
+--- mtail.orig 2003-11-07 19:02:34.000000000 +0000
++++ mtail 2003-11-07 19:19:18.000000000 +0000
+@@ -46,6 +46,7 @@
+ verbose = 0
+ silent = 0
+ active = 0
++remove_blanks = 0
+
+ # sets up the interrupt handler, calls processargs(), sets up and starts the
+ # tailers.
+@@ -119,6 +120,8 @@
+ if line[len(line)-1] == '\n':
+ line = line[:len(line)-1]
+ line = filter(line)
++ if remove_blanks and not line:
++ continue
+ lock.acquire()
+ try:
+ if (multiple or verbose) and (not silent) \
+@@ -138,12 +141,14 @@
+ global verbose
+ global silent
+ global config_file
++ global remove_blanks
+ filenames = []
+ lines = None
+ follow = 0
+ try:
+ opts, pargs = getopt.getopt(sys.argv[1:], 'fn:?hvq', ["follow",
+- "lines=", "help", "verbose", "quiet", "silent", "config="])
++ "lines=", "help", "verbose", "quiet", "silent", "config=",
++ "remove-blanks"])
+ except getopt.error:
+ print 'unrecognized option!'
+ print
+@@ -163,6 +168,8 @@
+ silent = 1
+ elif opt[0] in ['--config']:
+ config_file = opt[1]
++ elif opt[0] in ['--remove-blanks']:
++ remove_blanks = 1
+ if lines == None:
+ lines = 10
+ for filename in pargs:
+@@ -186,6 +193,7 @@
+ print ' -v, --verbose always output headers giving file names'
+ print ' -q, --quiet, --silent never output headers giving file names'
+ print ' --config=FILE use config file FILE instead of ~/.mtailrc'
++ print ' --remove-blanks do not display blank lines'
+ print
+ print 'with more than one filename, mtail will precede each chunk from'
+ print 'each with a header giving the file name. if no filenames are given'
diff --git a/app-misc/mtail/metadata.xml b/app-misc/mtail/metadata.xml
new file mode 100644
index 000000000000..1215b29430c5
--- /dev/null
+++ b/app-misc/mtail/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>shell-tools@gentoo.org</email>
+ <name>Gentoo Shell Tools Project</name>
+ </maintainer>
+ <longdescription lang="en">
+ mtail is a small tail workalike that performs output coloring using
+ ansi escape sequences (although the sequences are overridable, so you
+ could cause it to output something else, e.g. html font tags, if you
+ really wanted to). mtail is written in python, is fairly small, and
+ should be relatively platform-independent.
+ </longdescription>
+</pkgmetadata>
diff --git a/app-misc/mtail/mtail-1.1.1-r3.ebuild b/app-misc/mtail/mtail-1.1.1-r3.ebuild
new file mode 100644
index 000000000000..1ab1926f586f
--- /dev/null
+++ b/app-misc/mtail/mtail-1.1.1-r3.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+inherit eutils python-single-r1
+
+DESCRIPTION="Tail workalike, that performs output colourising"
+HOMEPAGE="http://matt.immute.net/src/mtail/"
+SRC_URI="http://matt.immute.net/src/mtail/mtail-${PV}.tgz
+ http://matt.immute.net/src/mtail/mtailrc-syslog.sample"
+
+LICENSE="HPND"
+SLOT="0"
+KEYWORDS="alpha amd64 ~mips ppc sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE=""
+
+RDEPEND=${PYTHON_DEPS}
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-remove-blanks.patch
+ python_fix_shebang .
+}
+
+src_install() {
+ dobin "${PN}"
+ dodoc CHANGES "${PN}rc.sample" README "${DISTDIR}"/mtailrc-syslog.sample || die
+}