Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Mar 2001 02:22:43 +0000 (GMT)
From:      George Reid <greid@dogma.freebsd-uk.eu.org>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/25504: New port: installwatch: A file creation/modification logger
Message-ID:  <Pine.BSF.4.21.0103030222220.43589-100000@sobek.openirc.co.uk>

next in thread | raw e-mail | index | archive | help

>Number:         25504
>Category:       ports
>Synopsis:       New port: installwatch: A file creation/modification logger
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 02 18:20:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     George Reid
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
FreeBSD UKUG
>Environment:
n/a
>Description:
Installwatch is a simple utility which keeps track of which files are
created and modified during the installation of a new program. It's
fast and easy to use. It doesn't require a "pre-install" phase because
it monitors processes while they run. Installwatch works with every
dynamically linked ELF program, by intercepting system calls that
cause file system alterations.

WWW: http://mayams.net/~izto/installwatch.html

- George Reid
greid@ukug.uk.freebsd.org
>How-To-Repeat:
n/a
>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	installwatch
#	installwatch/Makefile
#	installwatch/distinfo
#	installwatch/pkg-descr
#	installwatch/pkg-comment
#	installwatch/pkg-plist
#	installwatch/files
#	installwatch/files/patch-aa
#
echo c - installwatch
mkdir -p installwatch > /dev/null 2>&1
echo x - installwatch/Makefile
sed 's/^X//' >installwatch/Makefile << 'END-of-installwatch/Makefile'
X# New ports collection makefile for:   installwatch
X# Date created:        03 March 2001
X# Whom:                George Reid <greid@ukug.uk.freebsd.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=       installwatch
XPORTVERSION=	0.5.6
XCATEGORIES=     sysutils
XMASTER_SITES=   http://mayams.net/~izto/
XEXTRACT_SUFX=	.tgz
X
XMAINTAINER=	greid@ukug.uk.freebsd.org
X
X.include <bsd.port.mk>
END-of-installwatch/Makefile
echo x - installwatch/distinfo
sed 's/^X//' >installwatch/distinfo << 'END-of-installwatch/distinfo'
XMD5 (installwatch-0.5.6.tgz) = 678077bad78ff57d9b63141fb73be84e
END-of-installwatch/distinfo
echo x - installwatch/pkg-descr
sed 's/^X//' >installwatch/pkg-descr << 'END-of-installwatch/pkg-descr'
XInstallwatch is a simple utility which keeps track of which files are
Xcreated and modified during the installation of a new program. It's
Xfast and easy to use. It doesn't require a "pre-install" phase because
Xit monitors processes while they run. Installwatch works with every
Xdynamically linked ELF program, by intercepting system calls that
Xcause file system alterations.
X
XWWW: http://mayams.net/~izto/installwatch.html
X
X- George Reid
Xgreid@ukug.uk.freebsd.org
END-of-installwatch/pkg-descr
echo x - installwatch/pkg-comment
sed 's/^X//' >installwatch/pkg-comment << 'END-of-installwatch/pkg-comment'
XA file creation/modification logger
END-of-installwatch/pkg-comment
echo x - installwatch/pkg-plist
sed 's/^X//' >installwatch/pkg-plist << 'END-of-installwatch/pkg-plist'
Xbin/installwatch
Xlib/installwatch.so
X
END-of-installwatch/pkg-plist
echo c - installwatch/files
mkdir -p installwatch/files > /dev/null 2>&1
echo x - installwatch/files/patch-aa
sed 's/^X//' >installwatch/files/patch-aa << 'END-of-installwatch/files/patch-aa'
X--- Makefile.orig	Fri Mar  2 02:45:41 2001
X+++ Makefile	Sat Mar  3 02:17:12 2001
X@@ -3,7 +3,7 @@
X # Well, the only configurable part is the following variable.
X # Make sure the directory you specify exists.
X 
X-PREFIX=/usr/local
X+#PREFIX=/usr/local
X 
X # End of configurable part
X 
X@@ -15,10 +15,10 @@
X all: installwatch.so
X 
X installwatch.so: installwatch.o
X-	ld -shared -o installwatch.so installwatch.o -ldl
X+	ld -shared -o installwatch.so installwatch.o
X 
X installwatch.o: installwatch.c localdecls.h
X-	gcc -Wall -c -DPIC -fPIC -D_REENTRANT -DVERSION=\"$(VERSION)\" installwatch.c
X+	$(CC) -Wall -c $(CFLAGS) -DPIC -fPIC -D_REENTRANT -DVERSION=\"$(VERSION)\" installwatch.c
X 
X localdecls.h:
X 	./create-localdecls
X@@ -28,8 +28,6 @@
X 	
X 	sed -e "s|#PREFIX#|$(PREFIX)|" < installwatch > $(BINDIR)/installwatch
X 	chmod 755 $(BINDIR)/installwatch
X-	cp contrib/inst2rpm $(BINDIR)/inst2rpm
X-	chmod 755 $(BINDIR)/inst2rpm
X 
X uninstall:
X 	rm $(LIBDIR)/installwatch.so
X@@ -43,7 +41,7 @@
X 	tar -czvC .. -f ../installwatch-$(VERSION).tar.gz installwatch-$(VERSION)
X 
X test: install
X-	gcc -Wall -DVERSION=\"$(VERSION)\" -o test-installwatch test-installwatch.c -ldl
X+	gcc -Wall -DVERSION=\"$(VERSION)\" -o test-installwatch test-installwatch.c
X 	$(PREFIX)/bin/installwatch ./test-installwatch
END-of-installwatch/files/patch-aa
exit

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0103030222220.43589-100000>