debian/0000775000000000000000000000000011463361377007203 5ustar debian/patches/0000775000000000000000000000000011463361020010613 5ustar debian/patches/help-format0000664000000000000000000000110111463361020012745 0ustar --- a/flog.c +++ b/flog.c @@ -93,8 +93,8 @@ int main(int argc, char** argv) if (opt >= argc) { fprintf (stderr, "Usage: pipeline| %s [options] {logfile|-} # SIGHUP will reopen logfile\n" - " -t prepend each line with \"YYYYMMDD;HH:MM:SS: \"\n" - " -T prepend each line with specified strftime(3) format\n\n" + " -t prepend each line with \"YYYYMMDD;HH:MM:SS: \"\n" + " -T prepend each line with specified strftime(3) format\n" " -l log file length limit (force truncation)\n" " -p pid file\n", argv[0]); debian/patches/manpage0000664000000000000000000000142211463357640012162 0ustar --- /dev/null +++ flog-1.8/flog.1 @@ -0,0 +1,35 @@ +.TH FLOG 1 "March 2008" +.SH NAME +flog \- dump STDIN to file and reopen on SIGHUP +.SH SYNOPSIS +.B flog +[ +.B \-t +] [ +.B \-T +.I format +] [ +.B \-l +.I number +] [ +.B \-p +.I pidfile +] +.I logfile +.SH DESCRIPTION +.B flog +(file logger) reads input from STDIN and writes to a file. When a SIGHUP +is received, the file will be reopened, allowing for log rotation. +.SH OPTIONS +.IP \-t +prepend each line with "YYYYMMDD;HH:MM:SS: " +.IP \-T\ \fIformat\fP +prepend each line with specified strftime(3) format +.IP \-l\ \fInumber\fP +log file length limit (force truncation) +.IP \-p\ \fIpidfile\fP +create pid file +.SH AUTHOR +Fredrik Sjoholm +.SH LICENSE +Licensed under the GNU General Public License debian/patches/Makefile0000664000000000000000000000053411463357636012277 0ustar --- flog-1.8.orig/Makefile +++ flog-1.8/Makefile @@ -1,13 +1,12 @@ VERSION = 1.8 DIST = flog-$(VERSION) -#DEBUG = -g +DEBUG = -g CFLAGS = -O2 $(DEBUG) -Wall -pedantic -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE=1 -CC = gcc +#CC = gcc flog: flog.c $(CC) $(CFLAGS) -o $@ $< - strip $@ clean: rm -rf *.o flog $(DIST) $(DIST).tar.gz *~ debian/patches/remove_pid_struct0000664000000000000000000000065211463357126014312 0ustar --- a/flog.c +++ b/flog.c @@ -37,7 +37,6 @@ struct Conf { char * time_format; char * pidfile_name; int max_len; - int pid; } conf; #define DEFAULT_TIME_FORMAT "%Y%m%d;%T: " @@ -77,7 +76,6 @@ int main(int argc, char** argv) opt++; if (opt < argc) { conf.pidfile = 1; - conf.pid = getpid(); conf.pidfile_name = argv[opt]; } } else if (!strcmp(argv[opt], "-l")) { debian/patches/series0000664000000000000000000000005711463357634012052 0ustar Makefile help-format remove_pid_struct manpage debian/compat0000664000000000000000000000000211463360412010366 0ustar 7 debian/control0000664000000000000000000000106011463360537010600 0ustar Source: flog Maintainer: Christoph Berg Standards-Version: 3.9.1 Section: utils Priority: extra Build-Depends: debhelper (>> 7) Vcs-Svn: svn://svn.debian.org/svn/collab-maint/deb-maint/flog/trunk Vcs-Browser: http://svn.debian.org/wsvn/collab-maint/deb-maint/flog/ Package: flog Depends: ${shlibs:Depends}, ${misc:Depends} Architecture: any Description: dump STDIN to file and reopen on SIGHUP flog (file logger) reads input from STDIN and writes to a file. When a SIGHUP is received, the file will be reopened, allowing for log rotation. debian/rules0000775000000000000000000000074111463360507010257 0ustar #!/usr/bin/make -f build-indep: build build-arch: build-stamp build-stamp: $(MAKE) touch $@ binary-indep: binary binary-arch: build-stamp dh_testroot dh_testdir dh_prep dh_installdocs README dh_installchangelogs dh_install dh_installman flog.1 dh_compress dh_strip dh_fixperms dh_shlibdeps dh_md5sums dh_installdeb dh_gencontrol dh_builddeb clean: $(MAKE) clean dh_clean build-stamp .PHONY: build build-indep build-arch binary binary-indep binary-arch clean debian/changelog0000664000000000000000000000077711463360117011057 0ustar flog (1.8-3) unstable; urgency=low * Remove duplicate pid file fopen() and redundant pid struct member. By Carlos Carvalho. Closes: #601048. * Convert to 3.0 (quilt). -- Christoph Berg Sun, 31 Oct 2010 22:30:49 +0100 flog (1.8-2) unstable; urgency=low * Initial Debian upload. -- Christoph Berg Fri, 14 Mar 2008 15:09:20 +0100 flog (1.8-1) unstable; urgency=low * Initial version. -- Christoph Berg Mon, 29 Oct 2007 16:33:36 +0100 debian/source/0000775000000000000000000000000011463357774010511 5ustar debian/source/format0000664000000000000000000000001411463357102011700 0ustar 3.0 (quilt) debian/copyright0000664000000000000000000000075511463354770011144 0ustar This package was debianized by Christoph Berg . The 1.8 tarball was provided by Manon Goo . Working on the Debian packaging was funded by Dembach Goo Informatik. Author and Copyright: Copyright (c) 2001 Fredrik Sjoholm License: GPL - The GNU General Public License With patches by dsong@teramail.com and manon@manon.de. On Debian systems, a copy of the GNU General Public License can be found in `/usr/share/common-licenses/GPL'. debian/install0000664000000000000000000000001511463354770010567 0ustar flog usr/bin