2013-09-21 00:55:24 +02:00
|
|
|
# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
|
2006-09-24 22:18:15 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= shttpscanner
|
|
|
|
PORTVERSION= 0.4
|
|
|
|
CATEGORIES= security www
|
2009-08-22 02:35:32 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/sHTTPScanner/sHTTPScanner%20v${PORTVERSION}
|
2006-09-24 22:18:15 +02:00
|
|
|
DISTNAME= sHTTPScanner_v${DISTVERSION}
|
2013-11-19 08:42:41 +01:00
|
|
|
EXTRACT_SUFX= .zip
|
2006-09-24 22:18:15 +02:00
|
|
|
|
2008-09-07 02:19:05 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2006-09-24 22:18:15 +02:00
|
|
|
COMMENT= Simple HTTP scanner
|
|
|
|
|
2013-11-19 08:42:41 +01:00
|
|
|
USES= dos2unix
|
2006-09-24 22:18:15 +02:00
|
|
|
|
2015-03-25 09:30:27 +01:00
|
|
|
PLIST_FILES= bin/${PORTNAME} \
|
|
|
|
%%DATADIR%%/requests.txt \
|
|
|
|
%%DATADIR%%/subdomains.txt
|
2006-09-24 22:18:15 +02:00
|
|
|
|
|
|
|
post-patch:
|
2015-03-25 09:30:27 +01:00
|
|
|
@${REINPLACE_CMD} -E '/^#define/s!([a-z]*\.txt)!${DATADIR}/\1!' \
|
|
|
|
${WRKSRC}/${DISTNAME:tl}.c
|
2006-09-24 22:18:15 +02:00
|
|
|
|
|
|
|
do-build:
|
2015-03-25 09:30:27 +01:00
|
|
|
(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
|
|
|
|
${CC} ${CFLAGS} -o ${PORTNAME} ${DISTNAME:tl}.c -lpthread)
|
2006-09-24 22:18:15 +02:00
|
|
|
|
|
|
|
do-install:
|
2015-03-25 09:30:27 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
2013-11-19 08:42:41 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
|
2015-03-25 09:30:27 +01:00
|
|
|
${INSTALL} ${WRKSRC}/requests.txt ${WRKSRC}/subdomains.txt \
|
|
|
|
${STAGEDIR}${DATADIR}/
|
2006-09-24 22:18:15 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|