summaryrefslogtreecommitdiff
path: root/net/tcptraceroute-devel/Makefile
blob: 5a88d63e824df19153e4e40c2f87029b8459a321 (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
# New ports collection makefile for:   tcptraceroute-devel
# Date created:        12 December 2007
# Whom:                josh.carroll@gmail.com
#
# $FreeBSD$
#

PORTNAME=	tcptraceroute
DISTVERSION=	1.5beta7
CATEGORIES=	net
MASTER_SITES=	http://michael.toren.net/code/tcptraceroute/ \
		http://pflog.net/tcptraceroute/
PKGNAMESUFFIX=	-devel

MAINTAINER=	josh.carroll@gmail.com
COMMENT=	A traceroute implementation using TCP packets

BUILD_DEPENDS=	${LIBNET_CONFIG}:${PORTSDIR}/net/libnet

CONFLICTS=	tcptraceroute-1.4*

USE_GMAKE=	yes
GNU_CONFIGURE=	yes

MAN1=	tcptraceroute.1

LIBNET_CONFIG?=	${LOCALBASE}/bin/libnet11-config

CONFIGURE_ARGS=		--with-libpcap=/usr --bindir=${PREFIX}/sbin

INSTALL_TARGET=	install-exec-am install-man

post-install:
	@${CHMOD} u+s ${PREFIX}/sbin/tcptraceroute
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	${INSTALL_MAN} ${WRKSRC}/tcptraceroute.1.html ${DOCSDIR}
	${INSTALL_MAN} ${WRKSRC}/tcptraceroute.lsm ${DOCSDIR}
	${INSTALL_MAN} ${WRKSRC}/AUTHORS ${DOCSDIR}
	${INSTALL_MAN} ${WRKSRC}/COPYING ${DOCSDIR}
	${INSTALL_MAN} ${WRKSRC}/ChangeLog ${DOCSDIR}
	${INSTALL_MAN} ${WRKSRC}/NEWS ${DOCSDIR}
	${INSTALL_MAN} ${WRKSRC}/README ${DOCSDIR}
	${INSTALL_MAN} ${WRKSRC}/examples.txt ${DOCSDIR}
.endif

.include <bsd.port.mk>