e1c4707bab
- move 1.0 obsoleted version to net/libnet10 net/libnet is latest Stable Version net/libnet is latest Beta Version - Fix all depended ports with a new DEPENDS scheme - While I'm here fix security/yersinia build on 4.x (getopt_long and ncurses issues) PR: ports/85519 (based on) Submitted by: Stas Yakovlev <stas.yakovlev_at_gmail.com>
35 lines
925 B
Makefile
35 lines
925 B
Makefile
# ex:ts=8
|
|
# Ports collection makefile for: ttlscan
|
|
# Date created: Wed Apr 2, 2003
|
|
# Whom: Michael L. Hostbaek (mich@freebsdcluster.org)
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= ttlscan
|
|
PORTVERSION= 0.1.1
|
|
PORTREVISION= 1
|
|
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*<=1.1.0,1:${PORTSDIR}/net/libnet10
|
|
|
|
LDFLAGS+= -lpcap -ldnet
|
|
|
|
do-build:
|
|
(cd ${WRKSRC} && ${CC} ${CFLAGS} -I${LOCALBASE}/include -L${LOCALBASE}/lib -D_XOPEN_SOURCE \
|
|
`libnet-config --defines` ${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>
|