pkgsrc-wip/smtpscan/Makefile
2008-02-03 16:53:11 +00:00

37 lines
1 KiB
Makefile

# $NetBSD: Makefile,v 1.6 2008/02/03 16:53:11 tnn2 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_TOOLS+= perl
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}/${PKGMANDIR}/man1
.include "../../mk/bsd.pkg.mk"