pkgsrc-wip/smtpscan/Makefile
Adrian Portelli a21b7a5a47 SMTPScan is a tool to guess which MTA is used, by sending several "special"
SMTP requests and by comparing error codes returned with those in the 
fingerprint database. It does not take into account banners and other 
text information, that cannot be trusted, only error code.
2003-07-08 15:04:48 +00:00

37 lines
1 KiB
Makefile

# $NetBSD: Makefile,v 1.1.1.1 2003/07/08 15:04:48 adrian_p Exp $
DISTNAME= smtpscan-${SSVERSION}
WRKSRC= ${WRKDIR}/smtpscan
CATEGORIES= net mail
MASTER_SITES= http://www.greyhats.org/outils/smtpscan/
MAINTAINER= adrianp@stindustries.net
HOMEPAGE= http://www.greyhats.org/outils/smtpscan/
COMMENT= Remote SMTP version checker
DEPENDS+= p5-Net-DNS-[0-9]*:../../net/p5-Net-DNS
USE_PERL5= YES
REPLACE_PERL= src/smtpscan
SSVERSION?= 0.5
SSSHARE?= ${PREFIX}/share/smtpscan
do-build:
@${SED} -e 's#@SSVERSION@#${SSVERSION}#g' \
-e 's#@SSSHARE@#${SSSHARE}#g' \
< ${WRKSRC}/docs/man/smtpscan.1 > ${WRKSRC}/docs/smtpscan.1
@${SED} -e 's#@SSVERSION@#${SSVERSION}#g' \
-e 's#@PREFIX@#${PREFIX}#g' \
< ${WRKSRC}/src/smtpscan > ${WRKSRC}/smtpscan
do-install:
${INSTALL_DATA_DIR} ${SSSHARE}
${INSTALL_DATA} ${WRKSRC}/src/fingerprints ${SSSHARE}
${INSTALL_DATA} ${WRKSRC}/src/tests ${SSSHARE}
${INSTALL_SCRIPT} ${WRKSRC}/smtpscan ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/docs/smtpscan.1 ${PREFIX}/man/man1
.include "../../mk/bsd.pkg.mk"