openbsd-ports/net/ngrep/Makefile
sthen ab2f020e0f - pcap_yyrestart is supposed to take an argument, ngrep calls it without
one in the event of an error in the filter, this results in attempting
to deref bogus memory. pass it an explicit NULL which is handled correctly.

- don't strip the installed binary, remove USE_GROFF
2011-06-16 17:42:56 +00:00

40 lines
855 B
Makefile

# $OpenBSD: Makefile,v 1.33 2011/06/16 17:42:56 sthen Exp $
COMMENT= network grep
DISTNAME= ngrep-1.45
REVISION= 2
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ngrep/}
EXTRACT_SUFX= .tar.bz2
HOMEPAGE= http://ngrep.sourceforge.net/
# custom BSD-like
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c pcap pcre
LIB_DEPENDS= devel/pcre
NO_REGRESS= Yes
USE_GMAKE= Yes
USE_LIBTOOL= Yes
AUTOCONF_VERSION= 2.60
CONFIGURE_STYLE= autoconf no-autoheader
CONFIGURE_ARGS+= --enable-ipv6 \
--enable-pcre \
--with-dropprivs-user=_ngrep
CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
LDFLAGS=-L${LOCALBASE}/lib
do-install:
cd ${WRKSRC}; \
${INSTALL_PROGRAM} ngrep ${PREFIX}/sbin/ngrep; \
${INSTALL_MAN} ngrep.8 ${PREFIX}/man/man8/ngrep.8
.include <bsd.port.mk>