Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sysutils/pftop: build against native libpfctl #182
So we have a "libpfctl" for abstraction but the base system a particular "libpfctl" originates from does not provide the libary so we need to jump through a couple of hoops to embed the libary into the pftop build in order to retain compatibility on stable/13?
- Loading branch information
Showing
2 changed files
with
26 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- Makefile.orig 2023-11-13 07:20:46 UTC | ||
+++ Makefile | ||
@@ -1,4 +1,5 @@ | ||
# $Id: Makefile,v 1.17 2007/10/01 02:27:13 canacar Exp $ | ||
+.PATH: ${SRC_BASE}/lib/libpfctl | ||
|
||
# set OS level if not already defined | ||
OSLEVEL?= ${OSrev} | ||
@@ -8,12 +9,13 @@ PROG= pftop | ||
SRCS= pftop.c cache.c engine.c | ||
SRCS+= sf-gencode.c sf-grammer.y sf-scanner.l pcap-nametoaddr.c | ||
SRCS+= bpf_optimize.c bpf_filter.c bpf_dump.c bpf_image.c | ||
+SRCS+= libpfctl.c | ||
MAN= pftop.8 | ||
|
||
CFLAGS+= -Wall -Wno-unneeded-internal-declaration -DOS_LEVEL=${OSLEVEL} | ||
LDADD+= -lcurses | ||
|
||
-MANDIR=${LOCALBASE}/man/cat | ||
+MANDIR=${LOCALBASE}/man/man | ||
BINDIR=${LOCALBASE}/sbin | ||
|
||
.y.c: |