Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Jan 1999 15:52:31 -0500 (EST)
From:      paul@it.ca
To:        freebsd-gnats-submit@FreeBSD.ORG
Cc:        paul@it.ca
Subject:   ports/9531: new port: rlytest
Message-ID:  <199901162052.PAA06843@flarn.it.ca>

next in thread | raw e-mail | index | archive | help

>Number:         9531
>Category:       ports
>Synopsis:       new port: rlytest
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 16 13:00:00 PST 1999
>Closed-Date:
>Last-Modified:
>Originator:     Paul Chvostek
>Release:        FreeBSD 3.0-RELEASE i386
>Organization:
>Environment:

	

>Description:

A port of Chip Rosenthal's rlytest program.  Not really complex as
ports go, but this helps spread the word about spam, and may make
things easier for future dependencies.

>How-To-Repeat:

# 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:
#
#	rlytest/
#	rlytest/pkg
#	rlytest/pkg/COMMENT
#	rlytest/pkg/DESCR
#	rlytest/pkg/PLIST
#	rlytest/pkg/MESSAGE
#	rlytest/Makefile
#	rlytest/patches
#	rlytest/files
#	rlytest/files/md5
#
echo c - rlytest/
mkdir -p rlytest/ > /dev/null 2>&1
echo c - rlytest/pkg
mkdir -p rlytest/pkg > /dev/null 2>&1
echo x - rlytest/pkg/COMMENT
sed 's/^X//' >rlytest/pkg/COMMENT << 'END-of-rlytest/pkg/COMMENT'
XTest an SMTP host for third-party relay.
END-of-rlytest/pkg/COMMENT
echo x - rlytest/pkg/DESCR
sed 's/^X//' >rlytest/pkg/DESCR << 'END-of-rlytest/pkg/DESCR'
XThe rlytest utility tests a host to determine whether it will relay
Xthird-party email.  It will try to relay an email message to yourself
Xthrough that host.  A host that allows third-party relay is subject to
Xattack by Internet vandals, and frequently is hijacked by spammers to
Xrelay massive amounts of junk email.  A host that allows third-party
Xrelay should IMMEDIATELY be secured, disconnected, or shunned as a
Xmenace to the Internet.
X
XSee http://www.unicom.com/sw/#rlytest for mor information.
X
Xrlytest was written by Chip Rosenthal, and is featured at
Xhttp://maps.vix.com/tsi/ and http://www.badrelay.org/.
X
X- Paul Chvostek <paul@it.ca>
END-of-rlytest/pkg/DESCR
echo x - rlytest/pkg/PLIST
sed 's/^X//' >rlytest/pkg/PLIST << 'END-of-rlytest/pkg/PLIST'
Xbin/rlytest
END-of-rlytest/pkg/PLIST
echo x - rlytest/pkg/MESSAGE
sed 's/^X//' >rlytest/pkg/MESSAGE << 'END-of-rlytest/pkg/MESSAGE'
X
XNOTE: If you wish to make easier use of the rlytest program from within
Xscripts, you might want to modify the exit codes it uses.  Line 122 of
Xthe script contains the exit code used if the relay was accepted (bad),
Xand line 165 contains the exit code used if the relay was rejected
X(good).  The original author has expressed a wish that his code not be
Xmodified automatically in this way by this distribution, but if you wish
Xto modify your local copy, you should feel free to do so.
X
XIf you just change the "0" line line 122 to a "1", then in shell scripts
Xyou'll be able to use constructs like:
X
X  if /usr/local/bin/rlytest $hostname >/dev/null 2>/dev/null ; then
X    echo "$hostname is good"
X  else
X    echo "$hostname is evil"
X  fi
X
END-of-rlytest/pkg/MESSAGE
echo x - rlytest/Makefile
sed 's/^X//' >rlytest/Makefile << 'END-of-rlytest/Makefile'
X# New ports collection makefile for:	rlytest
X# Version required:	1.15
X# Date created:		16 January 1999
X# Whom:			Paul Chvostek <paul@it.ca>
X#
X# $Id$
X#
X
XDISTNAME=	rlytest
XPKGNAME=	rlytest-1.15
XCATEGORIES=	mail security
XMASTER_SITES=	http://www.unicom.com/sw/rlytest/
X
XMAINTAINER=	paul@it.ca
X
XMAN1=		rlytest.1
X
XWRKSRC=		${WRKDIR}
XNO_BUILD=
X
Xpost-patch:
X	${CP} ${WRKSRC}/rlytest ${WRKSRC}/rlytest.chip; \
X	${SED} 's:/usr/local/bin/perl:${PERL}:' < ${WRKSRC}/rlytest.chip > ${WRKSRC}/rlytest
X
Xdo-install:
X	${INSTALL_SCRIPT} ${WRKSRC}/rlytest ${PREFIX}/bin/rlytest; \
X	${INSTALL_MAN} ${WRKSRC}/rlytest.1 ${MANPREFIX}/man/man1/rlytest.1
X
Xpost-install:
X	${CAT} ${PKGDIR}/MESSAGE
X
X.include <bsd.port.mk>
END-of-rlytest/Makefile
echo c - rlytest/patches
mkdir -p rlytest/patches > /dev/null 2>&1
echo c - rlytest/files
mkdir -p rlytest/files > /dev/null 2>&1
echo x - rlytest/files/md5
sed 's/^X//' >rlytest/files/md5 << 'END-of-rlytest/files/md5'
XMD5 (rlytest.tar.gz) = ca22ca9cccd9710fd85cff70da72071d
END-of-rlytest/files/md5
exit


>Fix:
	
	Please commit.

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199901162052.PAA06843>