#download and install perl tce-load -wi perl5.tcz #download and install the compile tools tce-load -wi compiletc.tcz tce-load -wi squashfs-tools.tcz tce-load -wi libxml2.tcz tce-load -wi libxml2-dev.tcz #tce-load -i XML-NamespaceSupport.tcz #tce-load -i XML-SAX-Base.tcz #tce-load -i XML-SAX.tcz tce-load -i perl_XML-NamespaceSupport.tcz tce-load -i perl_XML-SAX-Base.tcz tce-load -i perl_XML-SAX.tcz # Variables TODAY=`date +%Y/%m/%d` #PACKAGE="XML-LibXML" DOWNLOAD="XML-LibXML" PACKAGE="perl_XML-LibXML" VERSION="2.0132" DESCRIPTION="simple generic namespace processor" AUTHORS="Robin Berjon" HOMEPAGE="http://search.cpan.org/dist/XML-LibXML/LibXML.pod" LICENSE="See Original-site" ME="rhermsen" TAGS="perl xml libxml" 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/S/SH/SHLOMIF/XML-LibXML-2.0132.tar.gz tar xf /tmp/${PACKAGE}/${DOWNLOAD}-${VERSION}.tar.gz cd /tmp/${PACKAGE}/${DOWNLOAD}-${VERSION} sed -i 's/(PERL)/(PERLRUNINST)/g' /tmp/${PACKAGE}/${DOWNLOAD}-${VERSION}/Makefile.PL 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 #mkdir -p ${TMPDIR}/usr/local/lib/perl5/$PERLVER/i486-linux-thread-multi/ mkdir -p ${TMPDIR}/usr/local/lib/perl5/site_perl/$PERLVER/i486-linux-thread-multi/XML/LibXML/SAX/ #mkdir -p ${TMPDIR}/usr/local/lib/perl5/site_perl/$PERLVER/i486-linux-thread-multi/auto/XML/ mkdir -p ${TMPDIR}/usr/local/lib/perl5/site_perl/$PERLVER/i486-linux-thread-multi/auto/XML/LibXML/ #mv ${DESTDIR}/usr/local/lib/perl5/$PERLVER/i486-linux-thread-multi/* ${TMPDIR}/usr/local/lib/perl5/$PERLVER/i486-linux-thread-multi/ mv ${DESTDIR}/usr/local/lib/perl5/site_perl/$PERLVER/i486-linux-thread-multi/XML/*.pm ${TMPDIR}/usr/local/lib/perl5/site_perl/$PERLVER/i486-linux-thread-multi/XML/ mv ${DESTDIR}/usr/local/lib/perl5/site_perl/$PERLVER/i486-linux-thread-multi/XML/LibXML/*.pm ${TMPDIR}/usr/local/lib/perl5/site_perl/$PERLVER/i486-linux-thread-multi/XML/LibXML/ mv ${DESTDIR}/usr/local/lib/perl5/site_perl/$PERLVER/i486-linux-thread-multi/XML/LibXML/SAX/*.pm ${TMPDIR}/usr/local/lib/perl5/site_perl/$PERLVER/i486-linux-thread-multi/XML/LibXML/SAX/ #mv ${DESTDIR}/usr/local/lib/perl5/site_perl/$PERLVER/i486-linux-thread-multi/auto/XML/* ${TMPDIR}/usr/local/lib/perl5/site_perl/$PERLVER/i486-linux-thread-multi/auto/XML/ mv ${DESTDIR}/usr/local/lib/perl5/site_perl/$PERLVER/i486-linux-thread-multi/auto/XML/LibXML/* ${TMPDIR}/usr/local/lib/perl5/site_perl/$PERLVER/i486-linux-thread-multi/auto/XML/LibXML/ 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::LibXML This module is an interface to libxml2, providing XML and HTML parsers with DOM, SAX and XMLReader interfaces, a large subset of DOM Layer 3 interface and a XML::XPath-like interface to XPath API of libxml2. The module is split into several packages which are not described in this section; unless stated otherwise, you only need to use XML::LibXML; in your programs. Change-log: 2018/01/11 First Version, 2.0132 2018/01/14 recompiled on tc-9.x, 2.0132 ${TODAY} recompiled on tc-9.x with .pod moved to -doc, ${VERSION} Current: ${TODAY} recompiled on tc-9.x with .pod moved to -doc, ${VERSION} EOF cat < ${PACKAGE}.tcz.dep perl_XML-SAX.tcz libxml2.tcz EOF mkdir -p ${TMPDIR}-doc/usr/local/share/man/man3/ mkdir -p ${TMPDIR}-doc/usr/local/lib/perl5/site_perl/$PERLVER/i486-linux-thread-multi/XML/LibXML/SAX/ mv ${DESTDIR}/usr/local/share/man/man3/* ${TMPDIR}-doc/usr/local/share/man/man3/ mv ${DESTDIR}/usr/local/lib/perl5/site_perl/$PERLVER/i486-linux-thread-multi/XML/*.pod ${TMPDIR}-doc/usr/local/lib/perl5/site_perl/$PERLVER/i486-linux-thread-multi/XML/ mv ${DESTDIR}/usr/local/lib/perl5/site_perl/$PERLVER/i486-linux-thread-multi/XML/LibXML/*.pod ${TMPDIR}-doc/usr/local/lib/perl5/site_perl/$PERLVER/i486-linux-thread-multi/XML/LibXML/ mv ${DESTDIR}/usr/local/lib/perl5/site_perl/$PERLVER/i486-linux-thread-multi/XML/LibXML/SAX/*.pod ${TMPDIR}-doc/usr/local/lib/perl5/site_perl/$PERLVER/i486-linux-thread-multi/XML/LibXML/SAX/ 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::LibXML This module is an interface to libxml2, providing XML and HTML parsers with DOM, SAX and XMLReader interfaces, a large subset of DOM Layer 3 interface and a XML::XPath-like interface to XPath API of libxml2. The module is split into several packages which are not described in this section; unless stated otherwise, you only need to use XML::LibXML; in your programs. Change-log: 2018/01/11 First Version, 2.0132 2018/01/14 recompiled on tc-9.x, 2.0132 ${TODAY} recompiled on tc-9.x with .pod moved to -doc, ${VERSION} Current: ${TODAY} recompiled on tc-9.x with .pod moved to -doc, ${VERSION} EOF find $TMPDIR/ -type d | xargs chmod -v 755; find $TMPDIR | xargs file | grep ELF | cut -f 1 -d : | xargs sudo 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