# pdfbox/cfg - "Build" settings for package #--------------------------------------------------------------------- [technotes] 1. This package builds a copy of the program "pdfbox" using OpenJDK15. This distro is able to build this package *offline* *without* depend- encies on Internet repositories. This feature required a bit of ef- fort. If there is a need to update the source tarball, the updated tarball needs to be built using an online procedure. The old online procedure may *not* work. Therefore, it may not be possible to update this pack- age. #--------------------------------------------------------------------- 2. The source tarball used by this package was created as follows. Internet access and external websites were required. This procedure may *not* work in the future! Therefore, keep backup copies of source tarballs. The script shown here needs [or needed] to be run in the same direc- tory as the following upstream source tarball: pdfbox-3.0.6-src.zip which was obtained originally from: https://dlcdn.apache.org/pdfbox/3.0.6/pdfbox-3.0.6-src.zip The script shown here also needs [or needed] existing copies of "java" and "mvn". The output file is named: pdfbox-jdk$JDKNUM-lacsrc$LACBITS-$DATE6D.tar.bz2 where the "$" parameters are set in the script. #--------------------------------------------------------------------- #!/bin/bash -e set -e DATE6D=251018 JDKNUM=15 TOPDIR=`pwd` if [ "@$LACBITS" == "@" ]; then if [ `uname -m` == "i386" ]; then LACBITS=32 else LACBITS=64 fi fi #--------------------------------------------------------------------- export JAVA_HOME=$PRODTREE/openjdk$JDKNUM export ANT_HOME=$JAVA_HOME export PATH=$JAVA_HOME/bin:$PATH export PATH=$PRODTREE/maven3-jdk$JDKNUM/bin:$PATH #--------------------------------------------------------------------- OLDBASE=pdfbox-3.0.6 OLDBALL=$OLDBASE-src.tar.gz rm -fr $OLDBASE ls -l $OLDBALL NEWBASE=pdfbox-jdk$JDKNUM-lacsrc$LACBITS-$DATE6D NEWBALL=$NEWBASE.tar.bz2 rm -fr $NEWBASE $NEWBALL #--------------------------------------------------------------------- tar zxf $OLDBALL cd $OLDBASE HERE=`pwd` hash mvn echo Boot mvn: `which mvn` --------------------------------------------------------------------- rm -fr .m2 $HOME/.m2 echo mvn -Dmaven.test.skip=true clean install mvn -Dmaven.test.skip=true clean install rm -fr */target echo mv $HOME/.m2 . mv $HOME/.m2 . #--------------------------------------------------------------------- cd $TOPDIR settreedate $OLDBASE/ mv $OLDBASE $NEWBASE tar jcf $NEWBALL $NEWBASE/ rm -fr $NEWBASE/ ls -l $NEWBALL #--------------------------------------------------------------------- [buildtimes] #--------------------------------------------------------------------- [settings] configure = none license = See "license*.txt" in installed tree licfile = LICENSE.txt loopmove = yes dontfind = openjdk08 openjdk16 openjdk17 \ openjdk18 openjdk19 openjdk20 setpaths = openjdk15 xorg zlib #--------------------------------------------------------------------- [depends] ant-jdk15 maven3-jdk15 openjdk15 #--------------------------------------------------------------------- [build] #--------------------------------------------------------------------- HERE=`pwd` #--------------------------------------------------------------------- JDKNUM=15 export JAVA_HOME=$PRODTREE/openjdk$JDKNUM export ANT_HOME=$JAVA_HOME export PATH=$JAVA_HOME/bin:$PATH export PATH=$PRODTREE/maven3-jdk$JDKNUM/bin:$PATH #--------------------------------------------------------------------- hash java mvn echo Boot Java: `which java` echo Boot mvn: `which mvn` #--------------------------------------------------------------------- rm -fr $HOME/.m2 ln -nsf $HERE/.m2 $HOME/ echo mvn --offline -Dmaven.test.skip=true clean install mvn --offline -Dmaven.test.skip=true clean install rm -fr .m2 $HOME/.m2 #--------------------------------------------------------------------- PP=$PKGDIR_PROD BINDIR=$PP/bin PROGDIR=$PP/program mkdir -p $BINDIR $PROGDIR mv app/target/pdfbox-app-3.0.6.jar $PROGDIR/ cd $BINDIR cat > pdfbox << END PATH=\$PRODTREE/openjdk$JDKNUM/bin:\$PATH java -jar $PROGDIR/pdfbox-app-3.0.6.jar \$* END chmod 755 pdfbox #--------------------------------------------------------------------- # Original URLs. These URLs were valid at one point, but may have died # since then. If you download newer versions of tarballs [etc.], don't # delete the original versions, as you may not be able to replace # them. [urls] url_debian = tbd url_home = tbd url_lfs = tbd url_tarball = special # See "technotes" in "cfg" file #--------------------------------------------------------------------- [history] 251018 Added package 251018 Started with 3.0.6