blob: b0a3af5c751a53f80dcdf13994e5832fdb2e193c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Created by: Hubert Tournier <hubert@frbsd.org>
# $FreeBSD$
PORTNAME= smtpscan
PORTVERSION= 0.5
PORTREVISION= 2
CATEGORIES= security mail perl5
MASTER_SITES= PACKETSTORM/UNIX/scanners \
http://www.frbsd.org/dist/
MAINTAINER= ports@FreeBSD.org
COMMENT= Remote SMTP server version detector
LICENSE= GPLv2
RUN_DEPENDS= p5-Net-DNS>=0:${PORTSDIR}/dns/p5-Net-DNS
WRKSRC= ${WRKDIR}/${PORTNAME}
NO_BUILD= yes
USE_PERL5_RUN= yes
MAN1= smtpscan.1
PLIST_FILES= bin/smtpscan \
%%DATADIR%%/fingerprints \
%%DATADIR%%/tests
PLIST_DIRS= %%DATADIR%%
post-patch:
@${REINPLACE_CMD} -e \
's|^#!.*|#!${PERL}| ; \
s|/usr/local/share|${PREFIX}/share| ; \
s|@VERSION@|${PORTVERSION}|' ${WRKSRC}/src/smtpscan
@${REINPLACE_CMD} -e \
's|@VERSION@|${PORTVERSION}| ; \
s|@prefix@|${PREFIX}/share|' ${WRKSRC}/docs/man/smtpscan.1
do-install:
(cd ${WRKSRC}/src && ${INSTALL_SCRIPT} smtpscan ${PREFIX}/bin)
(cd ${WRKSRC}/docs/man \
&& ${INSTALL_MAN} smtpscan.1 ${MANPREFIX}/man/man1)
@${MKDIR} ${DATADIR}
(cd ${WRKSRC}/src && ${INSTALL_SCRIPT} fingerprints tests ${DATADIR})
.include <bsd.port.mk>
|