# # Prototype for the glibc-zoneinfo package # # Package specific information for glibc-zoneinfo PROGNAME="GNU C Library, Time Zone Database" DESC="\ glibc-zoneinfo (time zone database) \n\ \n\ This package allows you to configure your time zone. \n\ \n\ This database comes from glibc, and is based on the tzdata package by \n\ Arthur David Olson et.al. The latest version and more information \n\ may be found at ftp://elsie.nci.nih.gov/pub/ \n\ \n\ Use the timeconfig utility to set your local time zone." # package name SUBPKGNAME=glibc-zoneinfo-$VERSION-s390-$BUILD TAG=ADD subinstall() { ### install glibc to the fake tree cd $TMP/glibc-$VERSION/build-glibc-$VERSION make timezone/install-others install_root=/package-glibc ### remove the stuff we don't want ( cd /package-glibc rm -rf sbin rm -rf lib rm -rf etc/* for d in bin doc include info lib libexec man sbin/* \ share/i18n share/locale do rm -rf usr/$d done ) } subspecial() { cd $SUBPKG ### move everything out of /package-glibc mv package-glibc/* ./ rmdir package-glibc/ ### add the timeconfig utility ### Add a copy of the zoneinfo stuff tar -xvpzf $CWD/timezone-scripts.tar.gz chown root.root var/log/setup/setup.timeconfig chmod 755 var/log/setup/setup.timeconfig ### add to the doinst.sh script cd $SUBCTL cat $CWD/slack-desc.glibc-zoneinfo > slack-desc cat $CWD/doinst.sh-glibc-zoneinfo doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new ### 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 -f doinst.sh.new ### we don't want this left around rm -rf /package-glibc }