summaryrefslogtreecommitdiffstats
path: root/net/httpry/Makefile
blob: f0c2c9f7d11f29066a21b1d753a8028933dcac8e (plain)
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
46
47
48
49
50
# New ports collection makefile for:   httpry
# Date created:        12 June 2008
# Whom:                Wesley Shields <wxs@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	httpry
PORTVERSION=	0.1.5
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
MAKE_JOBS_SAFE=	yes

OPTIONS=	EXTRASCRIPTS "Install additional scripts" Off

.include <bsd.port.pre.mk>

.if defined(WITH_EXTRASCRIPTS)
PLIST_SUB=	EXTRASCRIPTS=""
USE_PERL5_RUN=	yes
RUN_DEPENDS=	${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI
. if ${PERL_LEVEL} < 500903
RUN_DEPENDS+=	p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress
. endif
.else
PLIST_SUB=	EXTRASCRIPTS="@comment "
.endif

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MANPREFIX}/man/man1
.if defined(WITH_EXTRASCRIPTS)
	${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>
OpenPOWER on IntegriCloud