2008-06-13 23:41:46 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= httpry
|
2012-08-07 18:37:01 +00:00
|
|
|
PORTVERSION= 0.1.7
|
2008-06-13 23:41:46 +00:00
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= http://dumpsterventures.com/jason/httpry/
|
|
|
|
|
|
|
|
MAINTAINER= wxs@FreeBSD.org
|
|
|
|
COMMENT= Packet sniffer designed for displaying and logging HTTP traffic
|
|
|
|
|
|
|
|
MAN1= httpry.1
|
|
|
|
|
|
|
|
USE_RC_SUBR= httpry
|
2009-05-09 02:46:09 +00:00
|
|
|
MAKE_JOBS_SAFE= yes
|
2008-06-13 23:41:46 +00:00
|
|
|
|
2012-08-07 18:37:01 +00:00
|
|
|
OPTIONS_DEFINE= EXTRASCRIPTS
|
|
|
|
EXTRASCRIPTS_DESC= Install additional scripts
|
2008-06-13 23:41:46 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2012-08-07 18:37:01 +00:00
|
|
|
.if ${PORT_OPTIONS:MEXTRASCRIPTS}
|
2008-06-13 23:41:46 +00:00
|
|
|
PLIST_SUB= EXTRASCRIPTS=""
|
|
|
|
USE_PERL5_RUN= yes
|
2012-06-29 16:47:42 +00:00
|
|
|
RUN_DEPENDS= p5-DBI>=0:${PORTSDIR}/databases/p5-DBI
|
2010-09-21 07:56:43 +00:00
|
|
|
. if ${PERL_LEVEL} < 500903
|
|
|
|
RUN_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
|
|
|
|
. endif
|
2008-06-13 23:41:46 +00:00
|
|
|
.else
|
|
|
|
PLIST_SUB= EXTRASCRIPTS="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MANPREFIX}/man/man1
|
2012-08-07 18:37:01 +00:00
|
|
|
.if ${PORT_OPTIONS:MEXTRASCRIPTS}
|
2008-06-13 23:41:46 +00:00
|
|
|
${MKDIR} ${PREFIX}/bin/httpry-scripts
|
|
|
|
(cd ${WRKSRC}/scripts/ && \
|
|
|
|
${COPYTREE_BIN} \* ${PREFIX}/bin/httpry-scripts "! -name *.bak")
|
|
|
|
.endif
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/perl-tools ${DOCSDIR}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/format-string ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|