# Author: gaarde at users dot sourceforge dot net 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." HOMEPAGE="http://asic-linux.com.mx/~izto/installwatch.html" SRC_URI="http://asic-linux.com.mx/~izto/files/source/${P}.tgz" S=${WORKDIR}/${P} src_compile() { patch -p0 < ${FILESDIR}/gaarde.patch emake || die } src_install () { dolib installwatch.so sed -e "s|#PREFIX#|/usr|" < installwatch > installwatch dobin installwatch dodoc BUGS TODO VERSION COPYING CHANGELOG INSTALL README }
gaarde.patch --- BEGIN CUT --- --- Makefile.orig Sun Jul 21 16:03:15 2002 +++ Makefile Sun Jul 21 16:03:20 2002 @@ -4,7 +4,7 @@ # Well, the only configurable part is the following variable. # Make sure the directory you specify exists. -PREFIX=/usr/local +PREFIX=/usr # End of configurable part --- END CUT ---
Missed something. Apply this to the ebuild. --- BEGIN CUT --- 14a15 > ld -shared -o installwatch.so installwatch.o -ldl -lc --- END CUT ---
What is wrong with whipping up an ebuild or whatever you want to track ? :o) Btw, thanks for this link, used it to rewrite our sandbox a bit more sanely :)
I do write ebuilds... however, I think installwatch could prove to provide food-for-thought. Which, based on comment #3, it has.
I agree that it doesn't make much sense to add an installwatch ebuild to Gentoo. The primary way to install packages in Gentoo is via Portage, which has its own tracking mechanisms. If a user wants to use installwatch for whatever reason, they can do their own ebuild and install it via PORTDIR_OVERLAY.