---
name: cnupm
version: 3.12
origin: net/cnupm
comment: The BPF Traffic Collector (IPv4/IPv6)
arch: freebsd:9:x86:64
www: http://pdp-11.org.ru/~form/cnupm/
maintainer: sylvio@FreeBSD.org
prefix: /usr/local
licenselogic: single
flatsize: 50850
desc: |
  The cnupm is an IP/IPv6 traffic collector daemon; it listens on a network
  interface for IP/IPv6 packets that match the boolean expression (see
  tcpdump(8) for more information) and collects the following statistics:

       o   address family (INET/INET6)
       o   IP/IPv6 protocol number
       o   source IP/IPv6 address
       o   source TCP/UDP port
       o   destination IP/IPv6 address
       o   destination TCP/UDP port
       o   total number of bytes trasferred

  WWW: http://pdp-11.org.ru/~form/cnupm/
categories: [net, ipv6]
files:
  /usr/local/etc/rc.d/cnupm: e8296e64329b3a59d03174d2b750f3c704202a87e59cbca5d12d0cb65a53a1d9
  /usr/local/man/man8/cnupm.8.gz: 3c0ce6153d6c7472549b95abe168595aa829e2b3b195198f886fc49d6da309dd
  /usr/local/man/man8/cnupmstat.8.gz: 32c80653b37edf5ade7b861bf87d3bf5e9d83d0f3df53730331b5ad887113998
  /usr/local/sbin/cnupm: 1773e2a2499e37e271a47f7ead35738deca4ef0a48af676d5244763b619abbce
  /usr/local/sbin/cnupmstat: 1115bbf919dcce7f81ad0be1d2f0499d0cb37775415e2505e16790dd53f608d2
  /usr/local/share/doc/cnupm/README: 8c417e81ded6926d258fee00fe5ecbd7b880d1ce6b0f5a857da2316057b12c73
directories:
  /usr/local/var/cnupm/: y
  /usr/local/share/doc/cnupm/: n
scripts:
  post-install: |
    pw groupshow cnupm 2>/dev/null || pw groupadd -n cnupm
    pw usershow cnupm 2>/dev/null || pw useradd -n cnupm -c 'Cnupm traffic collector' -g cnupm -s /sbin/nologin
    install -o cnupm -g cnupm -m 750 -d /usr/local/var/cnupm
    pw usermod -n cnupm -d /usr/local/var/cnupm
    cd /usr/local
  pre-deinstall: |
    cd /usr/local
  post-deinstall: |
    cd /usr/local
message: "************************************************************\n\nAdd the
  following lines to /etc/rc.conf to enable cnupm:\n\ncnupm_enable=\"YES\"\ncnupm_iface=\"rl0\"\t#
  Change this with your interface!\n#cnupm_flags=\"\"\t\t# Set this one to override
  default flags\n\nSee cnupm(8) for flags\n\n************************************************************\n"
