# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	snapshot
#	snapshot/Makefile
#	snapshot/pkg
#	snapshot/pkg/DESCR
#	snapshot/pkg/PLIST
#	snapshot/pkg/INSTALL
#	snapshot/files
#	snapshot/files/md5
#	snapshot/snapshot.shar
#
echo c - snapshot
mkdir -p snapshot > /dev/null 2>&1
echo x - snapshot/Makefile
sed 's/^X//' >snapshot/Makefile << 'END-of-snapshot/Makefile'
X# $OpenBSD $
X
XCOMMENT=	'Easy to use Usenet reader for the console'
X
XDISTNAME=	tin-1.5.10
XCATEGORIES=	news
XNEED_VERSION=	1.475
XMASTER_SITES=	ftp.tin.org:/pub/news/clients/tin/v1.5/ \
X		ftp://ftp.tin.org/pub/news/clients/tin/v1.5/ \
X		ftp://gd.tuwien.ac.at/infosys/newsreaders/tin/v1.5/ \
X		ftp://ftp.ut.ee/pub/unix/networking/news/tin/v1.5/ 
X
XHOMEPAGE=	http://www.tin.org/
X
XMAINTAINER=     Han Boetes <han@mijncomputer.nl>
X
X
XPERMIT_PACKAGE_CDROM=	"no fee"
XPERMIT_PACKAGE_FTP=	Yes
XPERMIT_DISTFILES_CDROM=	"no fee"
XPERMIT_DISTFILES_FTP=	Yes
X
XCONFIGURE_STYLE=	gnu dest
XCONFIGURE_ARGS+=	--with-spooldir=/var/news  \
X			--enable-break-long-lines  \
X			--with-coffee
X
X
XFLAVORS=	nntp_only no_nntp
XFLAVOR?=
X
X.if ${FLAVOR:L} == "nntp_only"
XCONFIGURE_ARGS+=	--enable-nntp-only
X.endif
X
X.if ${FLAVOR:L} == "no_nntp"
XCONFIGURE_ARGS+=	--disable-nntp
X.endif
X
X
XALL_TARGET=	build
XFAKE_FLAGS=prefix=${DESTDIR}/usr/local
X
X.include <bsd.port.mk>
END-of-snapshot/Makefile
echo c - snapshot/pkg
mkdir -p snapshot/pkg > /dev/null 2>&1
echo x - snapshot/pkg/DESCR
sed 's/^X//' >snapshot/pkg/DESCR << 'END-of-snapshot/pkg/DESCR'
Xtin is a full-screen easy to use Usenet reader. It can read news
Xlocally or remotely via a NTTP (Network News Transport Protocol)
Xserver. It will automatically utilize NOV (News OVerview) style
Xindex files if available locally or via the NNTP XOVER command.
X
XWWW: ${HOMEPAGE}
END-of-snapshot/pkg/DESCR
echo x - snapshot/pkg/PLIST
sed 's/^X//' >snapshot/pkg/PLIST << 'END-of-snapshot/pkg/PLIST'
X@comment $OpenBSD$
Xbin/metamutt
Xbin/opt-case.pl
Xbin/rtin
Xbin/tin
Xbin/url_handler.sh
Xbin/w2r.pl
Xman/man1/opt-case.pl.1
Xman/man1/tin.1
Xman/man1/w2r.pl.1
Xman/man5/mbox.5
Xman/man5/tin.5
END-of-snapshot/pkg/PLIST
echo x - snapshot/pkg/INSTALL
sed 's/^X//' >snapshot/pkg/INSTALL << 'END-of-snapshot/pkg/INSTALL'
X#!/bin/sh
X# $OpenBSD$
X
X# Pre/post-installation setup of tin-snapshot
X
X# exit on errors, use a sane path and install prefix
X#
Xset -e
XPATH=/bin:/usr/bin:/sbin:/usr/sbin
XPREFIX=${PKG_PREFIX:-/usr/local}
X
X# Function: tell the user what s/he needs to do to use the port just installed
X#
Xdo_notice()
X{
X	echo
X	echo "+---------------"
X	echo "| You may want to have a look at:"
X	echo "| ftp://ftp.tin.org/pub/news/clients/tin/tools/"
X	echo "| There are quite a few useful tools, like tin-lock,"
X	echo "| that come with the tin-distribution"
X	echo "+---------------"
X	echo
X}
X
X# Verify/process the command
X#
Xcase $2 in
X
X    PRE-INSTALL)
X	: nothing to pre-install for this port
X	;;
X    POST-INSTALL)
X	    do_notice $1
X	;;
X    *)
X	echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
X	exit 1
X	;;
Xesac
X
Xexit 0
END-of-snapshot/pkg/INSTALL
echo c - snapshot/files
mkdir -p snapshot/files > /dev/null 2>&1
echo x - snapshot/files/md5
sed 's/^X//' >snapshot/files/md5 << 'END-of-snapshot/files/md5'
XMD5 (tin-1.5.10.tar.gz) = 192cf61a4df0050ffe67af48085e2b1e
XRMD160 (tin-1.5.10.tar.gz) = 5c5502fc01e1701552f2a06f7734c1689d65c295
XSHA1 (tin-1.5.10.tar.gz) = 34ea27cf2cca02e1501b051f6d748eea77e73061
END-of-snapshot/files/md5
echo x - snapshot/snapshot.shar
sed 's/^X//' >snapshot/snapshot.shar << 'END-of-snapshot/snapshot.shar'
Xusage: shar file ...
END-of-snapshot/snapshot.shar
exit

