The ng_ipacct is Netgraph IP accounting node intended to gather
IP traffic informations.
IP accounting is collected in both simple and extended modes.
Output format is similar to the one used in Cisco IOS (command
"show ip accounting").
In simple mode output format is:
ip_from ip_to packets bytes
and in verbose mode:
ip_from s_port ip_to d_port proto packets bytes
Also, effective user ID of relevant process and timestamp can be saved.
CPU overhead is minimal because ng_ipacct works at kernel level.
net-mgmt/ng_ipacct: Fix build on 14.0.
src commit 0f617ae48a911caab3130d0e80cfb425bc3b653b moved the
prototype of in_pcblookup_local to a new header.
src commit 28d0a740dd9a6 added "opt_kern_tls.h" #include to
<netinet/tcp_var.h>.
PR: 266556
Differential Revision: https://reviews.freebsd.org/D36546
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
Use HTTP URLs instead of FTP URLs in pkg-descr files
The use of FTP URLs in pkg-descr files has been deprecated and some of
the FTP URLs in those files have already become stale.
Replace FTP URLs with HTTP URLs where possible.
There does not appear to be any mirror that preserves the contents of
the defunct ftp.cac.washington.edu host.
Approved by: portmgr (implicit)
net-mgmt/ng_ipacct: VIMAGE is now mandatory option
This option is unconditional since FreeBSD 12, so it is now removed to a
static define.
Reported by: Eugene Kazarinov via private email
Update ng_ipacct port to 20180401 tag
- Add VIMAGE option [1]
- Fix build on head [1]
- Incorporate the existing patches
- Improve ipacctctl build [1]
Submitted by: eugen via IRC [1]
Mark some ports failing on power64. In cases where the error message
was a stub, provide a real one.
While here, pet portlint.
Approved by: portmgr (tier-2 blanket)
Reported by: swills
- Use github for port fetching
- Remove included patches
- Add patch to lock pcbinfo hash [1]
- Update version to 20150304
Submitted by: Eugene Grossbein via IRC [1]
* Improve locking for ipacct hash table by converting from a global
mutex to a set of fine-grained rmlocks per hash buckets.
* Increase hash buckets from 256 to 512.
* Remove obsoleted master site and added local one.
* Stylefix for the ignore message.
* Bump portrevision.
* Take ownership.
For some unmaintained ports:
- fix format for pkg-descr
- convert to OptionsNG
- remove logic for older versions of python which we no longer support
- remove option for old versions of FreeBSD
- unconditionally set PORTDOCS
- etc.
Reviewed by: jgh
danfe was kind enough to remind me that:
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
is already the default, so for those ports where we are doing:
@${MV} ${WRKDIR}/${PORTNAME} ${WRKSRC}
to avoid the problem of conflicts with the rc.d script of the same
name it is not necessary to define WRKSRC separately.
Clean up this mistake of mine, and standardize for the others.
Fix problem introduced in r302141. The directory for the unpacked source
files is unversioned, so it conflicts with the name of the rc.d script in
WRKDIR after SUB_FILES is applied.
PR: ports/170592
Submitted by: Eugene Grosbein <eugen@eg.sd.rdtc.ru>
In the rc.d scripts, change assignments to rcvar to use the
literal name_enable wherever possible, and ${name}_enable
when it's not, to prepare for the demise of set_rcvar().
In cases where I had to hand-edit unusual instances also
modify formatting slightly to be more uniform (and in
some cases, correct). This includes adding some $FreeBSD$
tags, and most importantly moving rcvar= to right after
name= so it's clear that one is derived from the other.
The vast majority of pkg-descr files had the following format when they
had both lines:
Author: ...
WWW: ....
So standardize on that, and move them to the end of the file when necessary.
Also fix some more whitespace, and remove more "signature tags" of varying
forms, like -- name, etc.
s/AUTHOR/Author/
A few other various formatting issues
Fix a few "bad example" problems in the rc.d scripts that have been
propogated by copy and paste.
1. Primarily the "empty variable" default assignment, which is mostly
${name}_flags="", but fix a few others as well.
2. Where they are not already documented, add the existence of the _flags
(or other deleted empties) option to the comments, and in some cases add
comments from scratch.
3. Replace things that look like:
prefix=%%PREFIX%%
command=${prefix}/sbin/foo
to just use %%PREFIX%%. In many cases the $prefix variable is only used
once, and in some cases it is not used at all.
4. In a few cases remove ${name}_flags from command_args
5. Remove a long-stale comment about putting the port's rc.d script in
/etc/rc.d (which is no longer necessary).
No PORTREVISION bumps because all of these changes are noops.
Don't overlook the n in ifndef and restore the original meaning
for NO_PACKAGE, and add a separate IGNORE for pointyhat.
Noticed by: Eugene Kazarinov <kamuzon@milshop.ru>
* add new example to ng_ipacct.conf [1]
* skip NO_PACKAGE if PACKAGE_BUILDING is defined [1]
* minor clean
PR: ports/105597
Submitted by: Eugene Grosbein <eugen xx kuzbass.ru>