Commit graph

16 commits

Author SHA1 Message Date
peter
fe06a10c61 Switch to mk/pf.buildlink3.mk.
Approved by agc.
2008-06-26 20:59:51 +00:00
joerg
3b0d97b0de Add DESTDIR support. 2008-06-20 01:09:05 +00:00
peter
3507adc02f Update pftop to version 0.7. Tested on NetBSD 3.1, 4.0 and yamt-pf42.
Changes in version 0.7:
This version adds state filtering, which is funded by backcountry.com,
many thanks. It is now possible to select which states are displayed
using a tcpdump(8) like filtering language. The filter can be specified
on the command line, using the '-f' switch. It is also possible to
change the filter interactively using the 'f' command key.
Some sample, not necessarily practical, filters are given below:

- Do not show pfsync or carp traffic:

  not (pfsync or carp)
  not pfsync and not carp

- DNS traffic not going to or coming from the DNS servers:

  port 53 and not host (10.0.0.10 or 10.0.0.11)

- States with input bytes greater than 1M:

  inb > 1000000

- Traffic with very small average packet size:

  ((inb / inp) + (outb / outp))/2 < 100
  inb / inp + outb / outp < 200


Changes in version 0.6:
No functional changes. It now compiles and runs on OpenBSD 4.1-current
after pf interface changes. This version also contains separated pf
and display code. This should make adding new views easier.


Changes in version 0.5:
This version displays all active pf rules by traversing the ruleset tree.
In addition HFSC queues are now displayed correctly thanks to
Jared Spiegel. This version also incorporates other patches and comments
I have received since the previous release. Many thanks to all who have
contributed.

- New command-line switch 'S' to start the display at a given state.
- Display HFCS statistics in the queue page.
- Fixed state and rule byte and packet counters
- Fixed state sorting by packets and bytes
- Fixed some minor display problems
- The rule view now traverses all rulesets, and displays all active rules,
  together with anchor (ruleset) names.
- Anchor and Label fields dynamically resize themselves
2008-06-15 14:09:03 +00:00
joerg
ba171a91fa Add DESTDIR support. 2008-06-12 02:14:13 +00:00
peter
da2ced0ef3 Remove myself as maintainer, I don't have the time anymore to keep these
packages up to date.
2007-05-18 10:03:30 +00:00
rillig
2829e658f2 Mechanically replaced man/* with ${PKGMANDIR}/* in the definition of
INSTALLATION_DIRS, as well as all occurrences of ${PREFIX}/man with
${PREFIX}/${PKGMANDIR}.

Fixes PR 35265, although I did not use the patch provided therein.
2007-01-07 09:13:46 +00:00
peter
b7760d3810 The previous commit to fix the include path didn't worked so well on
NetBSD 2 + pflkm, because the path was substituted by "__nonexistent__".
So to fix this properly, add a patch with CPP conditional which fixes
the path for __DragonFly__.
2006-03-06 23:02:07 +00:00
joerg
a6bc643599 Fix compilation on DragonFly: MIN is not defined, UID_MAX / GID_MAX
can be obtained from limits.h and RB_PROTOTYPE is needed before
RB_GENERATE.
2005-12-07 14:32:07 +00:00
peter
92e78841c2 Fix the include path for the pfvar.h header. Should now build on DragonFly. 2005-12-07 12:50:30 +00:00
peter
72dd342410 Update the patch to fix a build problem for pf in OpenBSD 3.8. 2005-12-02 12:25:24 +00:00
jlam
e46a9dd380 Create directories before installing files into them. 2005-06-17 03:50:19 +00:00
jlam
95fd1f6ec9 Massive cleanup of buildlink3.mk and builtin.mk files in pkgsrc.
Several changes are involved since they are all interrelated.  These
changes affect about 1000 files.

The first major change is rewriting bsd.builtin.mk as well as all of
the builtin.mk files to follow the new example in bsd.builtin.mk.
The loop to include all of the builtin.mk files needed by the package
is moved from bsd.builtin.mk and into bsd.buildlink3.mk.  bsd.builtin.mk
is now included by each of the individual builtin.mk files and provides
some common logic for all of the builtin.mk files.  Currently, this
includes the computation for whether the native or pkgsrc version of
the package is preferred.  This causes USE_BUILTIN.* to be correctly
set when one builtin.mk file includes another.

The second major change is teach the builtin.mk files to consider
files under ${LOCALBASE} to be from pkgsrc-controlled packages.  Most
of the builtin.mk files test for the presence of built-in software by
checking for the existence of certain files, e.g. <pthread.h>, and we
now assume that if that file is under ${LOCALBASE}, then it must be
from pkgsrc.  This modification is a nod toward LOCALBASE=/usr.  The
exceptions to this new check are the X11 distribution packages, which
are handled specially as noted below.

The third major change is providing builtin.mk and version.mk files
for each of the X11 distribution packages in pkgsrc.  The builtin.mk
file can detect whether the native X11 distribution is the same as
the one provided by pkgsrc, and the version.mk file computes the
version of the X11 distribution package, whether it's built-in or not.

The fourth major change is that the buildlink3.mk files for X11 packages
that install parts which are part of X11 distribution packages, e.g.
Xpm, Xcursor, etc., now use imake to query the X11 distribution for
whether the software is already provided by the X11 distribution.
This is more accurate than grepping for a symbol name in the imake
config files.  Using imake required sprinkling various builtin-imake.mk
helper files into pkgsrc directories.  These files are used as input
to imake since imake can't use stdin for that purpose.

The fifth major change is in how packages note that they use X11.
Instead of setting USE_X11, package Makefiles should now include
x11.buildlink3.mk instead.  This causes the X11 package buildlink3
and builtin logic to be executed at the correct place for buildlink3.mk
and builtin.mk files that previously set USE_X11, and fixes packages
that relied on buildlink3.mk files to implicitly note that X11 is
needed.  Package buildlink3.mk should also include x11.buildlink3.mk
when linking against the package libraries requires also linking
against the X11 libraries.  Where it was obvious, redundant inclusions
of x11.buildlink3.mk have been removed.
2005-06-01 18:02:37 +00:00
rillig
f795c2e475 Removed trailing white-space. 2005-05-23 08:26:03 +00:00
tv
f816d81489 Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used. 2005-04-11 21:44:48 +00:00
agc
d81d19f8e0 Add RMD160 digests. 2005-02-24 12:51:41 +00:00
peter
6ad788ca7d Initial import of pftop-0.4 into the NetBSD Packages Collection.
Pftop is a small, curses-based utility for real-time display of
active states and rule statistics for PF, the packet filter from OpenBSD.
2004-11-05 15:08:33 +00:00