# # Prototype file for the glibc-profile package # # Package specific information for glibc-profile PROGNAME="GNU C Library, Profiling Support" DESC="\ glibc-profile (GNU C libraries with profiling support) \n\ \n\ This package contains static versions of the GNU C libraries with \n\ support for profiling binaries using gprof. gprof calculates how much \n\ much time a program spends in each routine which can suggest where to \n\ concentrate efforts to improve performance. \n\ \n\ See the gprof man page for more details." # package name SUBPKGNAME=glibc-profile-$VERSION-s390-$BUILD TAG=ADD subinstall() { ### install glibc to the fake tree cd $TMP/glibc-$VERSION/build-glibc-$VERSION make install install_root=/package-glibc ### remove the stuff we don't want ( cd /package-glibc rm -rf etc/ lib/ sbin/ usr/bin/ usr/include/ usr/info/ \ usr/lib/gconv usr/libexec usr/sbin/ usr/share/ cd usr/lib mkdir save mv *_p.a save/ rm * 2>/dev/null mv save/* ./ rmdir save ) } subspecial() { cd $SUBPKG/ ### move everything out of /package-glibc mv package-glibc/* ./ rmdir package-glibc/ ### make our new doinst.sh script cd $SUBCTL cat $CWD/slack-desc.glibc-profile > slack-desc ### Remove instances of /package-glibc from the doinst.sh script sed -e 's%package-glibc/%%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new ### we don't want this left around rm -rf /package-glibc }