aboutsummaryrefslogtreecommitdiffstats
path: root/net/ttlscan/Makefile
blob: 371ccd55482a8c94f31c063030dc906ad4bb1c3f (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
# Created by: Michael L. Hostbaek (mich@freebsdcluster.org)
# $FreeBSD$

PORTNAME=   ttlscan
PORTVERSION=    0.1.1
PORTREVISION=   2
CATEGORIES= net
MASTER_SITES=   http://www.wormulon.net/files/ttlscan/

MAINTAINER= mich@FreeBSD.org
COMMENT=    A TCP based scanner, showing ttl responses

BUILD_DEPENDS=  ${LOCALBASE}/include/dnet.h:${PORTSDIR}/net/libdnet \
        ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet10

LDFLAGS+=   -lpcap -ldnet

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

NO_STAGE=   yes
do-build:
    (cd ${WRKSRC} && ${CC} ${CFLAGS} -I${LOCALBASE}/include -L${LOCALBASE}/lib -D_XOPEN_SOURCE \
    `${LIBNET_CONFIG} --defines --cflags` ${PORTNAME}.c -o ${PORTNAME} `${LIBNET_CONFIG} --libs` ${LDFLAGS})

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin

.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif

.include <bsd.port.mk>