From owner-freebsd-ports Fri Mar 2 18:20:10 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 5916C37B71B for ; Fri, 2 Mar 2001 18:20:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f232K1360469; Fri, 2 Mar 2001 18:20:01 -0800 (PST) (envelope-from gnats) Received: from mta06-svc.ntlworld.com (mta06-svc.ntlworld.com [62.253.162.46]) by hub.freebsd.org (Postfix) with ESMTP id CED1A37B71A for ; Fri, 2 Mar 2001 18:12:50 -0800 (PST) (envelope-from greid@ukug.uk.freebsd.org) Received: from m136-mp1-cvx1c.gui.ntl.com ([62.252.12.136]) by mta06-svc.ntlworld.com (InterMail vM.4.01.02.27 201-229-119-110) with ESMTP id <20010303021248.JOPI285.mta06-svc.ntlworld.com@m136-mp1-cvx1c.gui.ntl.com> for ; Sat, 3 Mar 2001 02:12:48 +0000 Message-Id: Date: Sat, 3 Mar 2001 02:22:43 +0000 (GMT) From: George Reid To: FreeBSD-gnats-submit@freebsd.org Subject: ports/25504: New port: installwatch: A file creation/modification logger Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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 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 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