ongrep

A cleaned up fork of ngrep for OpenBSD
git clone git://git.sgregoratto.me/ongrep
Log | Files | Refs | README | LICENSE

commit 5910e0045d028419468a04fc7737ff288fb85a77
parent 226da0615f1cde94cf4d96fd22788addfd6f3292
Author: Stephen Gregoratto <dev@sgregoratto.me>
Date:   Wed, 24 Jun 2020 16:11:01 +1000

Rewrite Makefile in BSD form

Diffstat:
MMakefile | 30++++++++++++------------------
1 file changed, 12 insertions(+), 18 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,21 +1,15 @@ -PREFIX = /usr/local -ETCDIR = /etc -SBINDIR = $(PREFIX)/sbin -MANDIR = $(PREFIX)/man -EXAMPLEDIR = $(PREFIX)/share/examples +PREFIX= /usr/local +BINDIR= ${PREFIX}/sbin +MANDIR= ${PREFIX}/man -INSTALL_ETC = install -m 0640 -INSTALL_BIN = install -m 0555 -INSTALL_SBIN = install -m 0555 -INSTALL_MAN = install -m 0444 -INSTALL_EXAMPLE = install -m 0644 +PROG= ngrep +MAN= ngrep.8 -UNPRIV_USER ?= _ngrep -CFLAGS += -Wall -Wextra -pedantic-errors -CPPFLAGS += -DUNPRIV_USER='"$(UNPRIV_USER)"' -I$(PREFIX)/include -LDFLAGS += -L/usr/local/lib -lpcre -lpcap +UNPRIV_USER?= _ngrep +CPPFLAGS+= -DUNPRIV_USER='"${UNPRIV_USER}"' -I${PREFIX}/include +CFLAGS+= -Wall -Wextra -Wpedantic -Wno-uninitialized -Wstrict-prototypes +LDADD+= -lpcre -lpcap +DPADD+= ${LIBPCAP} +LDFLAGS+= -L${PREFIX}/lib -ngrep: ngrep.c - -clean: - rm -f ngrep +.include <bsd.prog.mk>