diff options
author | root <root@rshg054.dnsready.net> | 2012-02-09 23:14:54 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-02-09 23:14:54 +0000 |
commit | 4bc61018eec54dbe50e7556ce01d2ef2859b2c9f (patch) | |
tree | 3ea5705a573fd320639395f484fc12335e0a1b88 /community-testing/ccze | |
parent | 54b7119c36756b86ea463649ee972cd6c1ce5863 (diff) |
Thu Feb 9 23:14:54 UTC 2012
Diffstat (limited to 'community-testing/ccze')
-rw-r--r-- | community-testing/ccze/PKGBUILD | 35 | ||||
-rw-r--r-- | community-testing/ccze/ccze-fix-segfault.diff | 11 |
2 files changed, 46 insertions, 0 deletions
diff --git a/community-testing/ccze/PKGBUILD b/community-testing/ccze/PKGBUILD new file mode 100644 index 000000000..909f73b7e --- /dev/null +++ b/community-testing/ccze/PKGBUILD @@ -0,0 +1,35 @@ +# $Id: PKGBUILD 64055 2012-02-08 23:51:14Z allan $ +# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org> + +pkgname=ccze +pkgver=0.2.1 +pkgrel=6 +pkgdesc="Robust and modular log colorizer with many plugins" +arch=('i686' 'x86_64') +url="http://freshmeat.net/projects/ccze/" +license=('GPL') +depends=('ncurses' 'pcre') +makedepends=('patch') +source=(ftp://ftp.debian.org/debian/pool/main/c/$pkgname/${pkgname}_${pkgver}.orig.tar.gz \ + $pkgname-fix-segfault.diff) +md5sums=('221966bce7c5f011eca38157241a0432' + '294e82702d179264abc43596da955358') + +build() { + cd ${srcdir}/$pkgname-$pkgver + + patch -Np0 -i ${srcdir}/$pkgname-fix-segfault.diff + + #killing a bug + sed -e 's/-Wswitch -Wmulticharacter/-Wswitch/' -i src/Makefile.in + sed -e '/#undef error_t/d' -i system.h.in + + ./configure --prefix=/usr --mandir=/usr/share/man + make +} + +package() { + cd ${srcdir}/$pkgname-$pkgver + + make DESTDIR=${pkgdir} install +} diff --git a/community-testing/ccze/ccze-fix-segfault.diff b/community-testing/ccze/ccze-fix-segfault.diff new file mode 100644 index 000000000..b2ca7d815 --- /dev/null +++ b/community-testing/ccze/ccze-fix-segfault.diff @@ -0,0 +1,11 @@ +--- src/ccze.c.orig 2003-05-13 20:09:30.000000000 +0200 ++++ src/ccze.c 2010-08-29 18:14:53.000000000 +0200 +@@ -212 +212 @@ +- plugin = strtok (optarg, "="); ++ plugin = strtok (arg, "="); +@@ -252 +252 @@ +- subopts = optarg; ++ subopts = arg; +@@ -276 +276 @@ +- subopts = optarg; ++ subopts = arg; |