# load compile dependencies #tce-load -i XML-NamespaceSupport.tcz tce-load -i perl_XML-NamespaceSupport.tcz # Variables TODAY=`date +%Y/%m/%d` #PACKAGE="XML-SAX-Base" DOWNLOAD="XML-SAX-Base" PACKAGE="perl_XML-SAX-Base" VERSION="1.09" DESCRIPTION="perl xml::sax::base module" AUTHORS="Grant McLean" HOMEPAGE="http://search.cpan.org/~grantm/XML-SAX-Base-1.09/lib/XML/SAX/Base.pm" LICENSE="See Original-site" ME="rhermsen" TAGS="perl xml sax base" DESTDIR=/tmp/dest/${PACKAGE} TMPDIR=/tmp/submit/${PACKAGE} PERLVER=5.26.1 # Workdir sudo rm -r /tmp/${PACKAGE} 2>/dev/null mkdir /tmp/${PACKAGE} cd /tmp/${PACKAGE} # Source wget http://search.cpan.org/CPAN/authors/id/G/GR/GRANTM/XML-SAX-Base-1.09.tar.gz tar xf /tmp/${PACKAGE}/${DOWNLOAD}-${VERSION}.tar.gz cd /tmp/${PACKAGE}/${DOWNLOAD}-${VERSION} perl Makefile.PL find . -name Makefile -type f -exec sed -i 's/-O2//g' {} \; make sudo rm -r ${DESTDIR} 2>/dev/null mkdir -p ${DESTDIR} make DESTDIR=${DESTDIR} install sudo rm -r ${TMPDIR} 2>/dev/null sudo rm -r ${TMPDIR}-doc 2>/dev/null #mkdir -p ${TMPDIR}/usr/local/lib/perl5/$PERLVER/i486-linux/ mkdir -p ${TMPDIR}/usr/local/lib/perl5/site_perl/$PERLVER/XML/SAX #mv ${DESTDIR}/usr/local/lib/perl5/$PERLVER/i486-linux/* ${TMPDIR}/usr/local/lib/perl5/$PERLVER/i486-linux/ mv ${DESTDIR}/usr/local/lib/perl5/site_perl/$PERLVER/XML/SAX/* ${TMPDIR}/usr/local/lib/perl5/site_perl/$PERLVER/XML/SAX/ cd /tmp/submit/ cat < ${PACKAGE}.tcz.info Title: ${PACKAGE}.tcz Description: ${DESCRIPTION} Version: ${VERSION} Author: ${AUTHORS} Original-site: ${HOMEPAGE} Copying-policy: ${LICENSE} Size: ${size} Extension_by: ${ME} Tags: ${TAGS} Comments: XML::SAX::Base This module has a very simple task - to be a base class for PerlSAX drivers and filters. It's default behaviour is to pass the input directly to the output unchanged. It can be useful to use this module as a base class so you don't have to, for example, implement the characters() callback. Change-log: 2018/01/11 First Version, 1.09 ${TODAY} recompiled on tc-9.x, ${VERSION} Current: ${TODAY} recompiled on tc-9.x, ${VERSION} EOF cat < ${PACKAGE}.tcz.dep perl5.tcz EOF mkdir -p ${TMPDIR}-doc/usr/local/share/man/man3/ mv ${DESTDIR}/usr/local/share/man/man3/* ${TMPDIR}-doc/usr/local/share/man/man3/ cd /tmp/submit/ sudo cat < ${PACKAGE}-doc.tcz.info Title: ${PACKAGE}-doc.tcz Description: ${DESCRIPTION} Version: ${VERSION} Author: ${AUTHORS} Original-site: ${HOMEPAGE} Copying-policy: ${LICENSE} Size: ${size} Extension_by: ${ME} Tags: ${TAGS} Comments: XML::SAX::Base This module has a very simple task - to be a base class for PerlSAX drivers and filters. It's default behaviour is to pass the input directly to the output unchanged. It can be useful to use this module as a base class so you don't have to, for example, implement the characters() callback. Change-log: 2018/01/11 First Version, 1.09 ${TODAY} recompiled on tc-9.x, ${VERSION} Current: ${TODAY} recompiled on tc-9.x, ${VERSION} EOF find $TMPDIR/ -type d | xargs chmod -v 755; find $TMPDIR | xargs file | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded cd $TMPDIR find $TMPDIR -perm 777 -exec chmod 755 {} \; find $TMPDIR -perm 555 -exec chmod 755 {} \; find $TMPDIR -perm 444 -exec chmod 644 {} \; find $TMPDIR -perm 666 -exec chmod 644 {} \; find $TMPDIR -perm 664 -exec chmod 644 {} \; sudo chown -R root:root $TMPDIR cd /tmp/submit/ mksquashfs $TMPDIR ${PACKAGE}.tcz cd $TMPDIR sudo sh -c "find usr -not -type d > ${PACKAGE}.tcz.list" sudo mv ../${PACKAGE}.tcz . sudo mv ../${PACKAGE}.tcz.dep . sudo mv ../${PACKAGE}.tcz.info . # Create md5 file sudo sh -c "md5sum ${PACKAGE}.tcz > ${PACKAGE}.tcz.md5.txt" # Cleanup temp directory sudo rm -r -f usr # create documentation extension cd $TMPDIR-doc find $TMPDIR-doc -perm 777 -exec chmod 755 {} \; find $TMPDIR-doc -perm 555 -exec chmod 755 {} \; find $TMPDIR-doc -perm 444 -exec chmod 644 {} \; find $TMPDIR-doc -perm 666 -exec chmod 644 {} \; find $TMPDIR-doc -perm 664 -exec chmod 644 {} \; sudo chown -R root:root $TMPDIR-doc cd /tmp/submit/ mksquashfs $TMPDIR-doc ${PACKAGE}-doc.tcz cd $TMPDIR-doc sudo sh -c "find usr -not -type d > ${PACKAGE}-doc.tcz.list" sudo mv ../${PACKAGE}-doc.tcz . sudo mv ../${PACKAGE}-doc.tcz.info . # Create md5 file sudo sh -c "md5sum ${PACKAGE}-doc.tcz > ${PACKAGE}-doc.tcz.md5.txt" # Cleanup temp directory sudo rm -r -f usr