--- lwatch-0.5.orig/debian/control +++ lwatch-0.5/debian/control @@ -0,0 +1,16 @@ +Source: lwatch +Section: admin +Priority: optional +Maintainer: Artur R. Czechowski +DM-Upload-Allowed: yes +Build-Depends: debhelper (>= 7.0.0), libpcre3-dev, docbook-to-man +Standards-Version: 3.8.3 + +Package: lwatch +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: A simple log colorizer + Lwatch is a program to split syslog or syslog-ng messages with regexps + (PCREs), colorize and display them in a way that important + informations can be seen at a glance. It is a small, useful tool for + system administrators. --- lwatch-0.5.orig/debian/rules +++ lwatch-0.5/debian/rules @@ -0,0 +1,98 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +#CFLAGS = -Wall -g -Werror +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +config.status: configure + dh_testdir + # Add here commands to configure the package. + CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --sysconfdir=/etc/lwatch --localstatedir=/var --enable-input=/var/lib/lwatch/syslog.fifo + +build: build-stamp + +build-stamp: config.status + dh_testdir + + $(MAKE) + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + [ ! -f Makefile ] || $(MAKE) distclean +#ifneq "$(wildcard /usr/share/misc/config.sub)" "" +# cp -f /usr/share/misc/config.sub config.sub +#endif +#ifneq "$(wildcard /usr/share/misc/config.guess)" "" +# cp -f /usr/share/misc/config.guess config.guess +#endif + dh_clean + +install: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs + + $(MAKE) install DESTDIR=$(CURDIR)/debian/lwatch + + # We do not want to create this fifo here + rm $(CURDIR)/debian/lwatch/var/lib/lwatch/syslog.fifo + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs ChangeLog + dh_installdocs + dh_installexamples + dh_install +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_perl +# dh_python +# dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- lwatch-0.5.orig/debian/postrm +++ lwatch-0.5/debian/postrm @@ -0,0 +1,41 @@ +#! /bin/sh +# postrm script for lwatch +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' overwrit>r> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + rm -f /var/lib/lwatch/syslog.fifo + ;; + remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + + + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- lwatch-0.5.orig/debian/install +++ lwatch-0.5/debian/install @@ -0,0 +1 @@ +debian/lintian/lwatch usr/share/lintian/overrides --- lwatch-0.5.orig/debian/watch +++ lwatch-0.5/debian/watch @@ -0,0 +1,2 @@ +version=2 +http://sf.net/lwatch/lwatch-(.+)\.tar\.gz debian uupdate --- lwatch-0.5.orig/debian/changelog +++ lwatch-0.5/debian/changelog @@ -0,0 +1,29 @@ +lwatch (0.5-1) unstable; urgency=low + + * New upstream release + + autotools stuff is updated (Closes: #533692) + * debian/watch uses sf.net redirector + * Update Standards-Version yo 3.8.3 (no changes required) + * Use debhelper 7 + * debian/rules: replace dh_clean -k with dh_prep + + -- Artur R. Czechowski Sat, 28 Nov 2009 16:54:48 +0000 + +lwatch (0.4.1-2) unstable; urgency=low + + * don't remove yparse.c on clean (Closes: #424562), the same change + has been made in upstream's CVS + * lwatch's distclean target is run via [ ! -f Makefile ] || $(MAKE) distclean + instead of -$(MAKE) distclean to cool out lintian + * Bump up the Standards-Version (nothing to change) + * lintian override: mknod-in-maintainer-script, FIFO is created, not device + * update debian/compat from 4 to 5, Build-Depends on debhelper (>= 5.0.0) + + -- Artur R. Czechowski Sat, 07 Jul 2007 21:08:59 +0200 + +lwatch (0.4.1-1) unstable; urgency=low + + * Initial Debian Release (Closes: #187282) + + -- Artur R. Czechowski Sat, 20 Aug 2005 20:14:55 +0200 + --- lwatch-0.5.orig/debian/docs +++ lwatch-0.5/debian/docs @@ -0,0 +1,4 @@ +AUTHORS +NEWS +README +TODO --- lwatch-0.5.orig/debian/postinst +++ lwatch-0.5/debian/postinst @@ -0,0 +1,52 @@ +#! /bin/sh +# postinst script for lwatch +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# +# quoting from the policy: +# Any necessary prompting should almost always be confined to the +# post-installation script, and should be protected with a conditional +# so that unnecessary prompting doesn't happen if a package's +# installation fails and the `postinst' is called with `abort-upgrade', +# `abort-remove' or `abort-deconfigure'. + +case "$1" in + configure) + if [ ! -p /var/lib/lwatch/syslog.fifo ]; then + rm -f /var/lib/lwatch/syslog.fifo + mknod /var/lib/lwatch/syslog.fifo p + fi + + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- lwatch-0.5.orig/debian/compat +++ lwatch-0.5/debian/compat @@ -0,0 +1 @@ +7 --- lwatch-0.5.orig/debian/dirs +++ lwatch-0.5/debian/dirs @@ -0,0 +1,2 @@ +usr/bin +usr/sbin --- lwatch-0.5.orig/debian/copyright +++ lwatch-0.5/debian/copyright @@ -0,0 +1,13 @@ +This package was debianized by Artur R. Czechowski on +Mon, 13 Jun 2005 00:38:20 +0200. + +It was downloaded from http://sourceforge.net/project/showfiles.php?group_id=55979 + +Upstream Author: Artur R. Czechowski + +This software is copyright (c) 2002-2005 by Artur R. Czechowski + +You are free to distribute this software under the terms of +the GNU General Public License. +On Debian systems, the complete text of the GNU General Public +License can be found in the file `/usr/share/common-licenses/GPL'. --- lwatch-0.5.orig/debian/lintian/lwatch +++ lwatch-0.5/debian/lintian/lwatch @@ -0,0 +1 @@ +lwatch: mknod-in-maintainer-script