On Tue, Nov 25, 2003 at 02:17:02PM -0500 I heard the voice of slave-mike, and lo! it spake thus: > Would it be possible to get a copy of this script? > > Please! :)
Oh, it's pretty simplistic. It's actually on a box that's in the closet right now, but I think this is an older working version: --- liblist: @echo '==> Getting needed libraries' -@(cd ${SRCBASE}/bin && ldd ${BINFILES}) > liblist.raw -@(cd ${SRCBASE}/sbin && ldd ${SBINFILES}) >> liblist.raw [ ... similar stuff for other dirs ... ] [EMAIL PROTECTED] -v '^[a-z]' liblist.raw | awk '{print $$3}' | sort | uniq \ | sed 's,^${SRCBASE},,' | sed 's,^/,,' > liblist.cooked [EMAIL PROTECTED] >> liblist.cooked @tar -cf - -C ${SRCBASE} `cat liblist.cooked` \ | tar -xvpf - -C ${DSTBASE} -@(cd ${SRCBASE}/usr/lib && install -c -m 444 pam_* ${DSTBASE}/usr/lib) @echo '<== Done libraries' --- You'll note that I already manually slipped in the pam_* .so's, which is one of those additional non-obvious "extra files" things that Garance mentioned in the other message. I could probably replace the whole transformation pipeline with a few lines of actual scripted awk(1); I just did it all inline in the Makefile because I was lazy. ${SRCBASE} is somewhere I DESTDIR='d an installworld previously, and ${DSTBASE} becomes (as a result of a bunch of other make targets, of which this is one of the later ones) a dir I can tar up and untar somewhere as /. -- Matthew Fuller (MF4839) | [EMAIL PROTECTED] Systems/Network Administrator | http://www.over-yonder.net/~fullermd/ "The only reason I'm burning my candle at both ends, is because I haven't figured out how to light the middle yet" _______________________________________________ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "[EMAIL PROTECTED]"