--- fspy-0.1.1.orig/debian/dirs +++ fspy-0.1.1/debian/dirs @@ -0,0 +1 @@ +usr/bin --- fspy-0.1.1.orig/debian/control +++ fspy-0.1.1/debian/control @@ -0,0 +1,19 @@ +Source: fspy +Section: misc +Priority: optional +Maintainer: Giuseppe Iuculano +Build-Depends: quilt, debhelper (>= 7) +Standards-Version: 3.8.0 +Homepage: http://mytty.org/fspy +DM-Upload-Allowed: yes +Vcs-git: git://git.debian.org/git/users/derevko-guest/fspy.git +Vcs-Browser: http://git.debian.org/?p=users/derevko-guest/fspy.git + +Package: fspy +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: filesystem activity monitoring tool + fspy is an easy to use Linux filesystem activity monitoring tool which is + meant to be small, fast and to handle system resources conservative. + You can apply filters, use diffing and your own output format in order to get + the best results. --- fspy-0.1.1.orig/debian/rules +++ fspy-0.1.1/debian/rules @@ -0,0 +1,61 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +CFLAGS += -Wall + +include /usr/share/quilt/quilt.make + +build: build-stamp + +build-stamp: $(QUILT_STAMPFN) + dh_testdir + $(MAKE) CFLAGS="$(CFLAGS)" + touch $@ + +clean: unpatch + dh_testdir + dh_testroot + $(MAKE) clean || true + dh_clean + +install: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs + $(MAKE) DESTDIR=$(CURDIR)/debian/fspy install + + +# Build architecture-independent files here. +binary-indep: install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_install + dh_installman debian/fspy.8 + dh_link + dh_strip + dh_compress + dh_fixperms + 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 --- fspy-0.1.1.orig/debian/watch +++ fspy-0.1.1/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://mytty.org/fspy/ fspy-(.*)\.tar\.gz --- fspy-0.1.1.orig/debian/changelog +++ fspy-0.1.1/debian/changelog @@ -0,0 +1,13 @@ +fspy (0.1.1-1) unstable; urgency=low + + * New Upstream Version + + Upstream added the relevant LICENSE file and a copy of the GPL v2 and 3 + to the package, thanks! + + -- Giuseppe Iuculano Sat, 31 Jan 2009 18:31:13 +0100 + +fspy (0.1.0-1) unstable; urgency=low + + * Initial release (Closes: #513577) (LP: #323054) + + -- Giuseppe Iuculano Fri, 30 Jan 2009 13:43:35 +0100 --- fspy-0.1.1.orig/debian/compat +++ fspy-0.1.1/debian/compat @@ -0,0 +1 @@ +7 --- fspy-0.1.1.orig/debian/fspy.8 +++ fspy-0.1.1/debian/fspy.8 @@ -0,0 +1,85 @@ +.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.36. +.TH fspy "1" "January 2009" "fspy 0.1.0" "User Commands" +.SH NAME +fspy \- filesystem activity monitoring tool +.SH SYNOPSIS +.B fspy +[\fIoptions\fR] [\fIfile/dir\fR] +.SH OPTIONS +.TP +\fB\-F\fR, \fB\-\-filter\fR STRING/REGEX +a string or regular expression which will be used to filter the output. +(the regex will be matched against the whole path e.g. [/etc/passwd]) +.TP +\fB\-I\fR, \fB\-\-inverted\fR STRING/REGEX +its the same like \fB\-F\fR/\-\-filter but inverted. you can combine both. +e.g. \fB\-F\fR '.conf' \fB\-I\fR 'wvdial.conf' will filter for files with ".conf" +in its name but without "wvdial.conf" in it. +.TP +\fB\-R\fR, \fB\-\-recursive\fR NUMBER +enables the recursive engine to look at a depth of NUMBER. +.TP +\fB\-A\fR, \fB\-\-adaptive\fR +(HIGHLY\-EXPERIMENTAL) enables the adaptive mode. e.g. if new items will be added +within the path fspy will automatically add those items to the watch list. +.TP +\fB\-D\fR, \fB\-\-diff\fR VALUE +(EXPERIMENTAL) enables the diffing feature. +VALUE may be a comma separated list of: +s \- element size (byte) +A \- last access time (e.g. Mon Jul 21 21:32:31 2008) +M \- last modification time (e.g. Mon Jul 21 21:32:31 2008) +S \- last status change time (e.g. Mon Jul 21 21:32:31 2008) +O \- permissions (octal) +U \- owner (uid) +G \- group (gid) +I \- inode number +D \- device id +.TP +\fB\-T\fR, \fB\-\-type\fR VALUE +specifies the type of objects to look for. +VALUE may be a comma separated list of: +f \- regular file +d \- directory +s \- symlink +p \- FIFO/pipe +c \- character device +b \- block device +o \- socket +default is any. +.TP +\fB\-O\fR, \fB\-\-output\fR VALUE +specifies output format. +VALUE may be a comma separated list of: +f \- filename +p \- path +d \- access description +t \- element type +s \- element size (byte) +w \- watch descriptor (inotify manpage) +c \- cookie (inotify manpage) +m \- access mask (inotify manpage | src/fsevents.h) +l \- len (inotify manpage) +A \- last access time (e.g. Mon Jul 21 21:32:31 2008) +M \- last modification time (e.g. Mon Jul 21 21:32:31 2008) +S \- last status change time (e.g. Mon Jul 21 21:32:31 2008) +O \- permissions (octal) +U \- owner (uid) +G \- group (gid) +I \- inode number +D \- device id +T \- date and time (for this event) (e.g. Tue Mar 25 09:23:16 CET 2008) +e.g.: '[,T,], ,d,:,p,f' would result in: +\&'[Mon Sep 1 12:31:25 2008] file was opened:/etc/passwd' +(take a look at the README). +.TP +\fB\-h\fR, \fB\-\-help\fR +this short help. +.TP +\fB\-\-version\fR +version information. +.SH AUTHOR +fspy is Copyright 2008-2009, Richard Sammet +.PP +This manual page was written by Giuseppe Iuculano , +for the Debian project (but may be used by others). --- fspy-0.1.1.orig/debian/copyright +++ fspy-0.1.1/debian/copyright @@ -0,0 +1,40 @@ +This package was debianized by: + + Giuseppe Iuculano on Fri, 30 Jan 2009 13:43:35 +0100 + +It was downloaded from: + + http://mytty.org/fspy + +Upstream Author: + + Richard Sammet + +Copyright: + + Copyright (C) 2008-2009 Richard Sammet + +License: + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + +The Debian packaging is: + + Copyright © 2009, Giuseppe Iuculano + +and is licensed under the GPL, see above. --- fspy-0.1.1.orig/debian/patches/01_fix_makefile.patch +++ fspy-0.1.1/debian/patches/01_fix_makefile.patch @@ -0,0 +1,34 @@ +Some trivial fixes in Makefile +--- a/Makefile ++++ b/Makefile +@@ -4,17 +4,17 @@ + BUILD = $(shell date +%Y%m%d%H) + #DEBUG = -g -D_DEBUG + OPTS = -DMAJORVERSION=0 -DMINORVERSION=1 -DSUBMINORVERSION=1 -DBUILD=$(BUILD) -DCODENAME=\"25c3\" +-CFLAGS = -Wall ++CFLAGS += -Wall + SDIR = src/ + ODIR = obj/ +-INSTBINDIR = /usr/local/bin ++INSTBINDIR = $(DESTDIR)/usr/bin + SRCS = $(SDIR)fspy.c $(SDIR)enumdirs.c $(SDIR)fsevents.c $(SDIR)isnumber.c $(SDIR)stating.c $(SDIR)output.c $(SDIR)regmatch.c $(SDIR)numlen.c $(SDIR)adaptive.c $(SDIR)diff.c + OBJS = $(ODIR)fspy.o $(ODIR)enumdirs.o $(ODIR)fsevents.o $(ODIR)isnumber.o $(ODIR)stating.o $(ODIR)output.o $(ODIR)regmatch.o $(ODIR)numlen.o $(ODIR)adaptive.o $(ODIR)diff.o + CC = gcc + LD = gcc +-LDFLAGS = ++LDFLAGS += + DFLAGS = +-RM = /bin/rm ++RM = rm + PROG = fspy + + all: $(PROG) +@@ -29,7 +29,7 @@ install: + cp $(PROG) $(INSTBINDIR)/$(PROG) + + clean: +- $(RM) $(PROG) $(ODIR)*.o ++ $(RM) -f $(PROG) $(ODIR)*.o + + # DO NOT DELETE THIS LINE -- make depend depends on it. + --- fspy-0.1.1.orig/debian/patches/series +++ fspy-0.1.1/debian/patches/series @@ -0,0 +1 @@ +01_fix_makefile.patch