Date: Wed, 24 Feb 1999 19:32:24 -0500 (EST) From: Chuck Robey <chuckr@mat.net> To: Michael <mharo@area51.fremont.ca.us> Cc: freebsd-ports@FreeBSD.ORG Subject: Re: PLIST verification script? Message-ID: <Pine.BSF.4.05.9902241928290.444-100000@picnic.mat.net> In-Reply-To: <199902250019.QAA26832@area51.fremont.ca.us>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 24 Feb 1999, Michael wrote: > Maybe adding something like this would be useful to add to bsd.port.mk. > Have it show what the port actually installed/changed before creating a PLIST > file. Manual intervention would probably still be a good thing as parts > of the PLIST file are added by the Makefile (MAN stuff). > > FIND?= /usr/bin/find > DIFF?= /usr/bin/diff > > before-install: build > ${FIND} ${PREFIX} | ${SED} -e "s#${PREFIX}##" > ${WRKDIR}/prefix-before > > after-install: install > ${FIND} ${PREFIX} | ${SED} -e "s#${PREFIX}##" > ${WRKDIR}/prefix-after > > ${DIFF} -U 1 ${WRKDIR}/prefix-pre ${WRKDIR}/prefix-post \ > | ${GREP} '^+' | ${SED} -e "s#^+/##" Maybe. You'd have to kill the idea of trusting $(PREFIX), because you don't (or shouldn't, at that point). I think maybe it'd be kinda incomplete, because it would be possible for a port to invisibly overwrite an existing file, which your script wouldn't catch. I have the idea of storing date/times of every file in the system in order to catch this. It would work, but it kinda offends my sense of style, to do humongous scans like that, which would take forever on my largish system. ----------------------------+----------------------------------------------- Chuck Robey | Interests include any kind of voice or data chuckr@glue.umd.edu | communications topic, C programming, and Unix. 213 Lakeside Drive Apt T-1 | Greenbelt, MD 20770 | I run picnic (FreeBSD-current) (301) 220-2114 | and jaunt (Solaris7). ----------------------------+----------------------------------------------- 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.05.9902241928290.444-100000>