mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-25 00:51:21 +00:00
116ec22ac1
PR: ports/153292 Submitted by: myself (pgollucci) Tested by: -exp run by pav Approved by: portmgr (pav)
47 lines
1.0 KiB
Makefile
47 lines
1.0 KiB
Makefile
# New ports collection makefile for: nast
|
|
# Date created: Sun Apr 6 10:12:16 CEST 2003
|
|
# Whom: Kirill Ponomarew <ponomarew@oberon.net>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= nast
|
|
PORTVERSION= 0.2.0
|
|
PORTREVISION= 3
|
|
CATEGORIES= net
|
|
MASTER_SITES= http://download.berlios.de/${PORTNAME}/ \
|
|
http://voodoo.bawue.com/download/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Nast is a packet sniffer
|
|
|
|
BUILD_DEPENDS= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet
|
|
|
|
MAN8= nast.8
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ENV= LIBS="${PTHREAD_LIBS}"
|
|
USE_GMAKE= yes
|
|
|
|
PLIST_FILES= bin/nast
|
|
|
|
LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet11-config
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e \
|
|
's|CFLAGS="-Wall -O2 -pthread"||g; \
|
|
s|libnet-config|${LIBNET_CONFIG}|; \
|
|
s|-lnet|`${LIBNET_CONFIG} --libs`|' \
|
|
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
|
|
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${MANPREFIX}/man/man8
|
|
|
|
post-install:
|
|
${CHMOD} 0755 ${PREFIX}/bin/${PORTNAME}
|
|
|
|
.include <bsd.port.post.mk>
|