IGNOREPATH=/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/tmp:/usr/src STRIPLIB=y STRIPBIN=y VERSION=1.6.1 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/ 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 mkdir -p /package-tin/usr/doc/tin-$VERSION/ cp -a MANIFEST README* doc/* \ /package-tin/usr/doc/tin-$VERSION/ cp -a tools /package-tin/usr/doc/tin-$VERSION/ ( cd /package-tin/usr/doc/tin-$VERSION/ rm tin.{1,5} ) ( cd /package-tin tar -zxvf $CWD/_tin.tar.gz etc/tin/README cp -p usr/doc/tin-$VERSION/tin.defaults etc/tin/ ) ( cd /package-tin/usr/bin rm metamutt opt-case.pl url_handler.sh w2r.pl ) rm -rf /package-tin/usr/share ( cd /package-tin/usr/man/man1 rm -f opt-case.pl.1 rtin.1 w2r.pl.1 rm -f *.gz gzip -9 tin.1 ) ( cd /package-tin/usr/man/man5 rm mbox.5 mmdf.5 rm -f *.gz gzip -9 tin.5 ) } 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 chmod 644 $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 }