From 458c8a13c81db2b15cc48c202c0091fb5d49eabd Mon Sep 17 00:00:00 2001 From: Georg Schabel Date: Mon, 5 Jan 2015 23:59:04 +0100 Subject: [PATCH] New package: grc-1.5 --- srcpkgs/grc/files/conf.socklog | 40 ++++++++++++++++++++++++++++ srcpkgs/grc/patches/install.sh.patch | 8 ++++++ srcpkgs/grc/template | 19 +++++++++++++ 3 files changed, 67 insertions(+) create mode 100644 srcpkgs/grc/files/conf.socklog create mode 100644 srcpkgs/grc/patches/install.sh.patch create mode 100644 srcpkgs/grc/template diff --git a/srcpkgs/grc/files/conf.socklog b/srcpkgs/grc/files/conf.socklog new file mode 100644 index 0000000000..4f20200f59 --- /dev/null +++ b/srcpkgs/grc/files/conf.socklog @@ -0,0 +1,40 @@ +# configuration file for socklog + +# date +regexp=^[0-9-]+(T)[0-9:]+(\.[0-9]{5}) +colours=default,black,black +count=once +- +# facility +regexp=\ ([a-z]+)\.([a-z]+):\ (([a-z-_]+):)? +colours=default,blue,cyan,default,blue +count=once +- +# severity +regexp=\.(warn|err|crit|alert|emerg): +colours=default,red +count=once +- +# everything in parentheses +regexp=\(([^)]+)\)|\[([^\]]+)\] +colours=green +- +# everything in `' +regexp=\`.+?\' +colours=yellow +- +# process and pid +regexp=([\w/\.\-]+)(\[\d+?\]) +colours=blue,yellow +- +# ip number +regexp=\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3} +colours=magenta +- +# connect +regexp=connect +colours=on_red +- +# sec +regexp=\[[0-9\ ]+\.[0-9]{6}\] +colours=black diff --git a/srcpkgs/grc/patches/install.sh.patch b/srcpkgs/grc/patches/install.sh.patch new file mode 100644 index 0000000000..f2991fedc2 --- /dev/null +++ b/srcpkgs/grc/patches/install.sh.patch @@ -0,0 +1,8 @@ +--- install.sh 2013-06-30 16:35:13.000000000 +0200 ++++ install.sh 2014-12-17 19:46:12.973707189 +0100 +@@ -12,3 +12,5 @@ + cp -fv conf.* $LIBDIR + mkdir -p $CONFDIR || true + cp -fv grc.conf $CONFDIR ++mkdir -p $MANDIR || true ++cp -fv {grcat,grc}.1 $MANDIR diff --git a/srcpkgs/grc/template b/srcpkgs/grc/template new file mode 100644 index 0000000000..611f864949 --- /dev/null +++ b/srcpkgs/grc/template @@ -0,0 +1,19 @@ +# Template build file for 'grc'. +pkgname=grc +version=1.5 +revision=1 +short_desc="Colouriser for logfiles and output of commands" +homepage="http://korpus.juls.savba.sk/~garabik/software/grc.html" +license="GPL-2" +maintainer="Georg Schabel " + +distfiles="http://korpus.juls.savba.sk/~garabik/software/${pkgname}/${pkgname}_${version}.tar.gz" +checksum=a2581f065236868bd8b09536616a588792f60fcba4e54d69e2cad65aae73dddc +depends="python" +noarch="yes" +conf_files="/etc/${pkgname}.conf" + +do_install() { + ./install.sh ${DESTDIR} + vinstall ${FILESDIR}/conf.socklog 644 usr/share/grc +}