# kjbible/cfg - "Build" settings for package # Revision: 111216 #--------------------------------------------------------------------- [technotes] # 1. This package installs the King James Bible and an associated # search engine. #--------------------------------------------------------------------- # 2. Upstream URLs are the same as for "mnogosearch" but some addi- # tional data files are used; e.g., the King James Bible. The data # files and associated URLs (where applicable) are stored in the same # directory tree as this package's "cfg" file. #--------------------------------------------------------------------- # 3. Most of the associated files are stored in a single XZM file lo- # cated in the directory "/xzm". # The XZM-file name (excluding path) is "kjbibledata.xzm". # The XZM file may be left in its default location or it may be moved # to various other locations (see the script "xzm-boot-setup"). If # it's in one of the supported locations at "boot" time, the package # should operate correctly. # For LiveDistro versions of the distro, it's a good idea to move the # XZM file to a supported location outside the XZM space that the # LiveDistro itself occupies. This will prevent nested XZM mounts # (which are less efficient). #--------------------------------------------------------------------- # 4. There's a separate search engine that indexes this distro's main # web site. The two search engines are based on the same code. There- # fore, some of the "kjbible" search engine's files may have names # that conflict with the "main" search engine's files. However, under # normal conditions, this shouldn't cause any problems, because the # "kjbible" files that have conflicting names are stored in their own # directory tree (i.e., the "kjbible" tree), and the associated "bin" # and "sbin" directories aren't added to the default PATH. #--------------------------------------------------------------------- [buildtimes] 00.01 hours (or 000.82 minutes) - HP EliteBook 8560w 32GB RAM 00.02 hours (or 001.42 minutes) - ThinkPad E540 i7 4x2 16GB RAM 00.25 hours (or 014.90 minutes) - Dell Inspiron 6400 2.0 GHz Intel Duo 7200 2GB RAM #--------------------------------------------------------------------- [settings] archive = same as mnogosearch build = default exepack = no # Not effective for this package fortran = disabled license = GNU General Public License, version 2 (June 1991) nosyslinks = yes patchdir = same as mnogosearch patches = required revision = 111216 tmpsize = 26M #--------------------------------------------------------------------- [depends] actools gawk mnogosearch openssl perl readline sed sqlite3 squashfs-tools zlib #--------------------------------------------------------------------- [configure] MANBASE=$PKGDIR_PROD/man VARDIR=/var/mnogosearch mkdir -p $MANBASE $VARDIR bash ./configure \ --prefix=$PKGDIR_PROD \ --build=$LACARCHBUILD \ --host=$LACARCHHOST \ --disable-dependency-tracking \ --enable-shared=yes \ --enable-static=no \ --localstatedir=$VARDIR \ --mandir=$MANBASE \ --with-openssl=$PRODTREE/openssl \ --with-sqlite3=$PRODTREE/sqlite3 \ --with-zlib \ --without-debug \ --without-docs #--------------------------------------------------------------------- [postbuild] CACHEDIR=/var/tmp/kjbible KJBNAME=kjbible-080714 MNTDIR=/mnt/kjbibledata XZMDIR=/xzm XZMBASE=kjbibledata.xzm XZMPATH=$XZMDIR/$XZMBASE BINDIR=$PKGDIR_PROD/bin DOCDIR=$PKGDIR_PROD/doc ETCDIR=$PKGDIR_PROD/etc LIBDIR=$PKGDIR_PROD/lib SBINDIR=$PKGDIR_PROD/sbin SITEDIR=/usr/local/pages ETEXTDIR=$SITEDIR/etext/Misc IMGDIR=$SITEDIR/images MNTLINK=$ETEXTDIR/kjbible UTILDIR=$SITEDIR/util SPCDATA=$PKGDIR_SPECIAL/data SPCMISC=$PKGDIR_SPECIAL/misc SPCWRAP=$PKGDIR_SPECIAL/wrappers DBFILE_BASE=mnogosearch.db DBFILE_PATH=$MNTDIR/$DBFILE_BASE rm -fr $DBFILE_PATH rm -fr $DOCDIR/README.html rmdir $DOCDIR 2> /dev/null || true umount $MNTDIR 2> /dev/null || true umount $XZMPATH 2> /dev/null || true rm -fr $MNTDIR mkdir -p $MNTDIR mkdir -p $XZMDIR rm -fr $XZMPATH mkdir -p $ETCDIR $IMGDIR $UTILDIR mkdir -p $CACHEDIR $ETEXTDIR chmod 777 $CACHEDIR X=$PRODTREE/mnogosearch/etc cp -p $X/english.aff $ETCDIR/ cp -p $X/flags* $ETCDIR/ if [ ! -f $IMGDIR/udmlogo.gif ]; then cp -a $SPCMISC/udmlogo.gif $IMGDIR/ fi REALPROG=$BINDIR/mnogomain.cgi mv $BINDIR/search.cgi $REALPROG cat create/sqlite/{create,create.blob}.txt \ > $ETCDIR/create.txt sed -e "s|__META_BINDIR__|$SYS_BINDIR|g" \ -e "s|__META_PREFIX__|$PKGDIR_PROD|g" \ -e "s|__META_REALPROG__|$REALPROG|g" \ -e "s|__META_SBINDIR__|$SYS_SBINDIR|g" \ < $SPCWRAP/search.wrapper.in \ > $UTILDIR/kjbible-search.cgi chmod 755 $UTILDIR/kjbible-search.cgi cd $SBINDIR mv indexer mnogoindexer sed -e "s|__META_PREFIX__|$PKGDIR_PROD|g" \ < $SPCMISC/mnogoreindex.in \ > $SBINDIR/mnogoreindex chmod 755 $SBINDIR/mnogoreindex sed -e "s|__META_PREFIX__|$PKGDIR_PROD|g" \ < $SPCMISC/indexer.conf.in \ > $ETCDIR/indexer.conf chmod 644 $ETCDIR/indexer.conf sed -e "s|__META_PREFIX__|$PKGDIR_PROD|g" \ < $SPCMISC/search.htm.in \ > $ETCDIR/search.htm chmod 644 $ETCDIR/search.htm cd $ETCDIR ln -s search.htm kjbible-search.htm cp -a $SPCMISC/*.conf $ETCDIR/ rm -fr $ETCDIR/*-dist rm -fr $ETCDIR/*.freq rm -fr $PKGDIR_PROD/include cd $PKGDIR_PROD/etc/synonym rm -fr italian.syn russian*.syn cd $PKGDIR_PROD/share rm -fr db2 virtuoso ibase mssql mysql \ pgsql oracle sybase /laclin/setup/lighttpd.boot || true sleep 5 cd $MNTDIR tar jxf $SPCDATA/$KJBNAME.tar.bz2 mv $KJBNAME/* . rmdir $KJBNAME patch -p1 < $SPCDATA/kjbible-searchlink.spcpat \ perl $SPCDATA/kjbible-edittree rm -fr $MNTLINK touch $MNTLINK rm $MNTLINK ln -nsf $MNTDIR $MNTLINK FORCEINDEX=yes $SBINDIR/mnogoreindex mksquashfs . $XZMPATH -b 1048576 cd / rm -fr $MNTDIR mkdir $MNTDIR chmod 777 $MNTDIR mkdir -p $DESKWRAP cd $SPCWRAP for x in wrap-*-bin.in do dest=$DESKWRAP/`echo $x | sed 's|\.in$||'` sed -e "s|__META_LOOPFILE__|$XZMPATH|g" \ -e "s|__META_MNTDIR__|$MNTDIR|g" \ < $x > $dest chmod 755 $dest done #--------------------------------------------------------------------- [setup.boot] if [ -d $PRODTREE/kjbible ]; then CACHEDIR=/var/tmp/kjbible MNTDIR=/mnt/kjbibledata VARDIR=/var/mnogosearch mkdir -p $MNTDIR $CACHEDIR $VARDIR umount $MNTDIR >& /dev/null chmod 777 $MNTDIR $CACHEDIR xzm-boot-setup kjbibledata fi #--------------------------------------------------------------------- # 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 = See notes near start of this file url_home = Ditto url_lfs = Ditto url_tarball = Ditto