freebsd-ports/net/nast/Makefile
Tijl Coosemans 02a5f6113a - Convert net/libnet to USES=libtool and bump dependent ports
- Add INSTALL_TARGET=install-strip

Approved by:	portmgr (implicit, bump unstaged port)
2014-07-14 15:38:39 +00:00

37 lines
813 B
Makefile

# Created by: Kirill Ponomarew <ponomarew@oberon.net>
# $FreeBSD$
PORTNAME= nast
PORTVERSION= 0.2.0
PORTREVISION= 5
CATEGORIES= net
MASTER_SITES= BERLIOS
MAINTAINER= ports@FreeBSD.org
COMMENT= Packet sniffer
LICENSE= GPLv2 # (or later)
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libnet.so:${PORTSDIR}/net/libnet
USES= gmake
GNU_CONFIGURE= yes
PLIST_FILES= bin/nast man/man8/nast.8.gz
LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet11-config
.include <bsd.port.pre.mk>
post-patch:
@${REINPLACE_CMD} -e \
's|libnet-config|${LIBNET_CONFIG}|; \
s|-lnet|`${LIBNET_CONFIG} --libs`|' \
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${STAGEDIR}${MANPREFIX}/man/man8
.include <bsd.port.post.mk>