Commit 0e3dc39a authored by Michael-John Turner's avatar Michael-John Turner Committed by Axel Beckert

Imported Debian patch 0.3-1

parents aa1888bb ed3b33d9
Installation Instructions
-------------------------
Since has only been tested under linux/i386. Other systems which
use the same types in the fields returned by stat(2) should
be able to use since without porting. Otherwise you might
have to hack things.
To build the executable type:
Installation instructions: Su to root and type:
make
To copy the executable and manual page, become root and type:
make install
Will compile the since binary and add the following files to
your system:
The default locations are:
/usr/local/bin/since
/usr/local/man/man1/since.1
/usr/local/bin/since
/usr/local/man/man1/since.1
###########################################################################
# Compiler and Flags ######################################################
# Files ###################################################################
# Inserted for Debian GNU/Linux
DESTDIR=
NAME = since
VERSION = 0.3
SRC = $(NAME).c
OBJ = $(NAME).o
TARGET = $(NAME)
MAN = $(NAME).1
ARCHIVE = $(NAME)-$(VERSION).tar.gz
LSM = $(NAME)-$(VERSION).lsm
INTARGET = /usr/local/bin/$(TARGET)
INMAN = /usr/local/man/man1/$(MAN)
###########################################################################
# Compiler and Flags ######################################################
CC = gcc
CFLAGS = -Wall -fomit-frame-pointer
CFLAGS = -Wall -O2 -fomit-frame-pointer -DVERSION=\"$(VERSION)\"
STRIP = strip
#CFLAGS += -DTRACE
......@@ -15,29 +27,12 @@ STRIP = strip
###########################################################################
# Auxillary Programs ######################################################
LN = ln
LNFLAGS = -s
RM = rm
RMFLAGS = -f
RM = rm -f
INSTALL = install -c
LINK = ln -s
TOUCH = touch
CP = cp
CHMOD = chmod
TAR = tar
CI = ci
CO = co
###########################################################################
# Files ###################################################################
SRC = since.c
OBJ = since.o
TARGET = since
MAN = since.1
INTARGET = $(DESTDIR)/usr/bin/$(TARGET)
INMAN = $(DESTDIR)/usr/share/man/man1/$(MAN)
MKLSM = ./mklsm
###########################################################################
# Generic build all #######################################################
......@@ -48,10 +43,8 @@ all : $(TARGET)
# Install #################################################################
install : $(TARGET)
$(CP) $(TARGET) $(INTARGET)
$(CHMOD) 755 $(INTARGET)
$(CP) $(MAN) $(INMAN)
$(CHMOD) 755 $(INMAN)
$(INSTALL) -m 0755 $(TARGET) $(INTARGET)
$(INSTALL) -m 0644 $(MAN) $(INMAN)
###########################################################################
# Build since executable ##################################################
......@@ -67,18 +60,20 @@ $(TARGET) : $(OBJ)
$(CC) $(CFLAGS) -c $*.c
###########################################################################
# Transport - zip the entire thing ########################################
# Generate a package ready for distribution ###############################
transport :
$(TOUCH) -t 01010000 *
$(TOUCH) -t 01010001 since.c
$(TAR) czvf since-0.1.tar.gz since-0.1/$(SRC) since-0.1/$(MAN) since-0.1/$(TARGET) since-0.1/Makefile since-0.1/README since-0.1/INSTALL since-0.1/COPYING since-0.1/since-0.1.lsm
package :
$(TOUCH) $(SRC)
$(RM) $(NAME)-$(VERSION)
$(LINK) . $(NAME)-$(VERSION)
$(TAR) czvf $(ARCHIVE) $(NAME)-$(VERSION)/{$(SRC),$(MAN),$(TARGET),Makefile,README,INSTALL,COPYING}
$(MKLSM) $(NAME) $(VERSION)
###########################################################################
# Remove intermediate files ###############################################
clean :
$(RM) $(RMFLAGS) *.o core $(TARGET)
$(RM) *.o core $(NAME)
reallyclean : clean
$(RM) $(RMFLAGS) $(TARGET)
$(RM) $(TARGET) $(ARCHIVE)
since
-----
since 0.1
Read INSTALL for installation instructions.
since is like tail(1) with state - it allows the user to
since is a tail(1) with state - it allows the user to
view only the lines appended to a log file since the last
time since was used.
read INSTALL for installation instructions.
To understand how it works run the commands:
make
echo "First line" >> testlogfile
./since testlogfile
echo "Second line" >> testlogfile
./since testlogfile
rm testlogfile
You might want to set up the following alias:
alias dosince='since /var/log/messages /var/log/xferlog'
since is released under the terms of the GNU public
license. Click accept now... errr... sorry... just
look at COPYING.
since was hacked in half a day. So unlikely to be
bugfree. But it works for me.
since (0.3-1) unstable; urgency=low
* New upstream.
-- Michael-John Turner <mj@debian.org> Fri, 11 May 2001 22:57:46 +0200
since (0.2-1) unstable; urgency=low
* New upstream.
* Updated to policy 3.2.0 and changed build slightly.
-- Michael-John Turner <mj@debian.org> Mon, 20 Nov 2000 21:01:26 +0200
since (0.1-2) unstable; urgency=low
* Updated to policy 3.0.1
......
......@@ -2,13 +2,13 @@ Source: since
Section: text
Priority: optional
Maintainer: Michael-John Turner <mj@debian.org>
Standards-Version: 3.0.1
Standards-Version: 3.2.0
Package: since
Architecture: any
Depends: ${shlibs:Depends}
Description: A replacement for tail(1) that saves and uses state information.
since is a replacement for tail(1) that remembers how much of a file
Description: A tail(1) work-alike that saves and uses state information.
since is a tail(1) work-alike that remembers how much of a file
you have viewed and displays only what's new when you next view
that file. Ideal for viewing log files (it'll only show what's
new in the file since the last time it was run).
This package was debianized by Michael-John Turner mj@debian.org on
Wed, 19 May 1999 18:28:18 +0200.
It was downloaded from ftp://jade.cs.uct.ac.za/pub/since-0.1.tar.gz
It was downloaded from ftp://jade.cs.uct.ac.za/pub/
Upstream Author: Marc Welz <mwelz@cs.uct.ac.za>
......@@ -10,5 +10,5 @@ Copyright: (c) Marc Welz 1998
since is released under the terms of the GNU GPL.
On Debian GNU/Linux systems, the complete text of the GNU
General Public License can be found in /usr/doc/copyright/GPL.
General Public License can be found in /usr/share/common-licenses/GPL.
......@@ -32,7 +32,8 @@ install-stamp: build-stamp
dh_clean -k
dh_installdirs
$(MAKE) install DESTDIR=$(TMP)
#$(MAKE) install DESTDIR=$(TMP)
cp -a since $(TMP)/usr/bin
touch install-stamp
......@@ -57,7 +58,7 @@ binary-arch: build install
dh_strip
dh_compress
dh_fixperms
dh_suidregister
# dh_suidregister
dh_installdeb
dh_shlibdeps
dh_gencontrol
......
File added
Begin3
Title: since
Version: 0.1
Entered-date: 11JUL98
Description: Tail(1) with state. It allows the user to
view only the data appended to log files
since the last time.
Keywords: tail log viewer
Platforms: linux
Copying-policy: GPL
End
......@@ -24,7 +24,7 @@ is useful for watching over log files.
.SH EXAMPLE USAGE
.B since -v /var/log/xferlog | less
(type the command, then ftp something from localhost,
then type the command again)
then type the command again).
.SH OPTIONS
.IP -h
Print a terse help message.
......@@ -66,9 +66,12 @@ will use the file
.RE
.SH BUGS
.B since
will break when used across NFS on architectures which have different
st_* field sizes.
.B since
uses the inode of a file as its key, if that inode is recycled
.B since
might get confused.
might get confused.
.B since
is not particularly efficient when storing the
.BI stat()
......@@ -81,7 +84,7 @@ shell scripts.
.B since
may only be used, distributed and modified in accordance with
the terms of the
.B GPL (GNU Public License)
.B GPL (GNU General Public License)
as published by the
.B FSF (Free Software Foundation).
.SH "SEE ALSO"
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment