IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=3.1.6 PROGNAME="htdig $VERSION" DESC="\ htdig (web indexing and searching system) \n\ \n\ The ht://Dig system is a complete world wide web indexing and \n\ searching system for a small domain or intranet. This system is not \n\ meant to replace the need for powerful internet-wide search systems \n\ like Lycos, Infoseek, Webcrawler and AltaVista. Instead it is meant \n\ to cover the search needs for a single company, campus, or even a \n\ particular sub section of a web site." BUILD=1 MAINTAINER="Mark Post " SOURCE=ftp://ftp.gnu.org/pub/gnu/htdig PKGNAME=htdig-$VERSION-s390-$BUILD TAG=OPT compile() { tar -zxvf $CWD/htdig-$VERSION.tar.gz cd htdig-$VERSION/ chown -R root.root . find . -perm 664 -exec chmod 644 {} \; find . -perm 775 -exec chmod 755 {} \; # fix the configure script so it works with glibc 2.2.5 and higher cat $CWD/configure.diff | patch -p1 cp -vp /usr/share/libtool/config.* db/dist/ ./configure s390-slackware-linux # The "-DHAVE_OSTREAM_H -DHAVE_IOSTREAM_H" is needed for gcc 3.2 and higher. # The htdig configure script doesn't set them, so we have to do it. make CXXFLAGS="-DHAVE_OSTREAM_H -DHAVE_IOSTREAM_H" } install() { make install INSTALL_ROOT=/package-htdig mv /package-htdig/opt/www/htdig/conf/htdig.conf /package-htdig/opt/www/htdig/conf/htdig.conf.new mkdir -p /package-htdig/etc/profile.d cp -a $CWD/profile.d/* /package-htdig/etc/profile.d mkdir -p /package-htdig/usr/doc/htdig-$VERSION cp -a COPYING README contrib htdoc /package-htdig/usr/doc/htdig-$VERSION ( cd /package-htdig/opt/www/htdig/bin rm -f htsearch ln -sf ../../cgi-bin/htsearch . ) } attributes() { ( cd $PKG/package-htdig/usr/doc/htdig-$VERSION/contrib chmod +x acroconv.pl autorun/autorun changehost/changehost.pl \ conv_doc.pl doc2html/doc2html.pl doc2html/pdf2html.pl \ doc2html/swf2html.pl doclist/doclist.pl doclist/listafter.pl \ ewswrap/ewswrap.cgi ewswrap/htwrap.cgi examples/rundig.sh \ examples/updatedig htparsedoc/htparsedoc multidig/add-collect \ multidig/add-urls multidig/gen-collect multidig/multidig \ multidig/new-collect multidig/new-db parse_doc.pl run-robot.sh \ multidig/new-collect multidig/new-db parse_doc.pl run-robot.sh \ status.pl urlindex/urlindex.pl whatsnew/whatsnew.pl \ wordfreq/wordfreq.pl xmlsearch/xmlsearch.cgi ) } special() { cd $PKG mv package-htdig/* ./ rmdir package-htdig cd $CTL cat $CWD/slack-desc > slack-desc cat $CWD/config.sh >> doinst.sh echo "config opt/www/htdig/conf/htdig.conf.new" >> doinst.sh sed -e 's%package-htdig/%%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new }