IGNOREPATH=/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/tmp:/usr/src STRIPLIB=y STRIPBIN=y VERSION=1.6.2 PROGNAME="tin $VERSION" DESC="\ tin (the Tin newsreader) \n\ \n\ Tin is a full-screen, easy-to-use Netnews reader. It can read news \n\ locally (i.e. /var/spool/news) or remotely (rtin or tin -r option) \n\ via a NNTP (Network News Transport Protocol) server. It will \n\ automatically utilize NOV (news overview) style index files if \n\ available locally or via the nntp xover command. \n\ \n\ Tin was written by Iain Lea and is currently \n\ maintained by Urs Janssen ." BUILD=1 MAINTAINER="Mark Post " SOURCE=http://ftp.tin.org/ftp/news/clients/tin/v1.4 PKGNAME=tin-$VERSION-s390-$BUILD TAG=OPT compile() { tar -yxvf $CWD/tin-$VERSION.tar.bz2 cd tin-$VERSION/ chown -R root.root . if [ -f config.cache ]; then rm -rf config.log config.cache config.status fi ./configure --prefix=/usr \ --with-metamail=/usr/bin/metamail \ --with-ispell=/usr/bin/ispell \ --with-defaults-dir=/etc/tin \ --with-libdir=/var/lib/news \ --with-ncurses make clean make build } install() { make install DESTDIR=/package-tin make install_sysdefs DESTDIR=/package-tin cat << EOF > /package-tin/etc/tin/README To complete TIN setup, edit /etc/nntpserver to the name of your NNTP server, then edit tin.defaults to set your domain name (and other options). Happy newsreading! :^) EOF mkdir -p /package-tin/usr/doc/tin-$VERSION/tools/ cp -a README doc/* tools \ /package-tin/usr/doc/tin-$VERSION/ ( cd /package-tin/usr/doc/tin-$VERSION/ rm -f CHANGES.old *.1 *.3 *.5 ) ( cd /package-tin/usr/bin rm metamutt opt-case.pl url_handler.sh w2r.pl ) ( cd /package-tin/usr/man/man1 mv opt-case.pl.1 w2r.pl.1 /package-tin/usr/doc/tin-$VERSION/tools/ ) ( cd /package-tin/usr/man for dir in 1 5; do ( cd man$dir rm -f *.gz gzip -9 *.$dir ) done ) ( cd /package-tin/usr/man/man1 rm -rf rtin.1 ; ln -sf tin.1.gz rtin.1.gz ) } attributes() { chown -R root.bin $PKG/package-tin/usr/bin chmod 755 $PKG/package-tin/usr/doc/tin-$VERSION/tools/* chmod 644 $PKG//package-tin/usr/doc/tin-$VERSION/tools/expand_aliases.tgz \ $PKG//package-tin/usr/doc/tin-$VERSION/tools/*.pl.1 \ $PKG/package-tin/usr/man/man1/* \ $PKG/package-tin/usr/man/man5/* } special() { cd $PKG mv package-tin/* ./ rmdir package-tin cd $CTL cat $CWD/slack-desc > slack-desc sed -e 's%package-tin/%%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new }