---
name: flowd
version: 0.9.1_2
origin: net-mgmt/flowd
comment: Small, fast, and secure NetFlow collector
arch: freebsd:9:x86:64
www: http://www.mindrot.org/flowd.html
maintainer: jmohacsi@bsd.hu
prefix: /usr/local
licenselogic: single
flatsize: 362222
desc: "flowd is a small, fast and secure NetFlow collector. It offers the following
  \nfeatures:\n\n    * Understands NetFlow protocol v.1, v.5, v.7 and v.9 (including
  IPv6 flows)\n    * Supports both IPv4 and IPv6 transport of flows\n    * Secure:
  flowd is privilege separated to limit the impact of any compromise\n    * Supports
  filtering and tagging of flows, using a packet filter-like syntax\n    * Stores
  recorded flow data in a compact binary format which supports \n      run-time choice
  over which flow fields are stored\n    * Ships with both Perl and Python interfaces
  for reading and parsing the \n      on-disk record format\n    * Is licensed under
  a liberal BSD-like license\n\nWWW: http://www.mindrot.org/flowd.html\n"
deps:
  perl: {origin: lang/perl5.14, version: 5.14.4}
categories:
- net-mgmt
- ipv6
users:
- _flowd
groups:
- _flowd
options: {PYTHON: off, PERL: on}
files:
  /usr/local/bin/flowd-reader: 0379fe29e3502d98c1a733f81192f35ec07413795dd23b343258d2680a9c9390
  /usr/local/etc/flowd.conf.sample: 6a51b556c4a1576159fdf52fc0a2fb20412b20e73ddeb271dcc93047d2f3baf3
  /usr/local/etc/rc.d/flowd: 4802f6a5631202d822ee2c05552bc41ab0724815599bc08ce0458e05d5759687
  /usr/local/include/flowd/addr.h: 65d334216029498504cdc2a99368f2aa13a7d973989a94cfb024b9ac54c97af7
  /usr/local/include/flowd/crc32.h: 130968186a1cdb25d343056989655e7f21ba78d7a53d1c6677ff0473b98180e3
  /usr/local/include/flowd/flowd-common.h: 9885222d0fc511a9be6601b4ad117221c22655bc5e31d4df2aa6e1c9b66c0cfa
  /usr/local/include/flowd/flowd-config.h: e305a54bedfa86bca30e101d2cf90b4a182f4ea1b16ec65aa63471bb35acfd14
  /usr/local/include/flowd/flowd-pytypes.h: 061d908a27b2247f1892a559ad9b7205d0c61f68add5f533d7d6138fe62a5430
  /usr/local/include/flowd/store-v2.h: 313d7331a11f777e9d4180fd922f05186b7155a95f0fc04835edda89aad770fd
  /usr/local/include/flowd/store.h: 917a7e66d1ae9c7987154f67ff541249fd6cf12f74b8b701dd664334bac24271
  /usr/local/lib/libflowd.a: a039cf85d5c1f28520e139edff86b0bfa9dbe8e91f9a3457cc549cb388636080
  /usr/local/lib/perl5/site_perl/5.14/mach/Flowd.pm: 86ee05244e74b91ef725dfbbd4c2dbe52125ed9e3832c52be429a41b6a19106e
  /usr/local/lib/perl5/site_perl/5.14/mach/auto/Flowd/.packlist: eda9a0816633a3fe5130b95da87e89e3b0d513ecd06c9c53ed7150374c95a99a
  /usr/local/lib/perl5/site_perl/5.14/mach/auto/Flowd/Flowd.bs: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
  /usr/local/lib/perl5/site_perl/5.14/mach/auto/Flowd/Flowd.so: 3372fc5de3f7d7f9a5ff403cdee1121d11699238c12a469727b0c6fae8e6dc2b
  /usr/local/man/man3/Flowd.3.gz: 9caaf431b4fe902afbf2b5cddb9a9bb0c2582de414a2587a743375e3dbd6b0ba
  /usr/local/man/man5/flowd.conf.5.gz: c1ac1d9856e83824a34d4d42100305cf316e9b14aea2d0d9adc3adb1cee5150b
  /usr/local/man/man8/flowd-reader.8.gz: 530186b416b738ec10668e55a5dfa19c75d3c156b407e561e34727cb0f8c0e6e
  /usr/local/man/man8/flowd.8.gz: f88c3797799cbc9225f574b4f5b375f4477eeb3db34363ae7c0d48e34253ed1f
  /usr/local/sbin/flowd: df684b3992774fde8380a46d15a07231d7b47aa9ea6fc3c9309114eb9fdd352b
  /usr/local/share/doc/flowd/INSTALL: a6564431fb16cfb76477ba7a8bd7d4f2db91997791ede1dad32c744e60279d33
  /usr/local/share/doc/flowd/README: eb2bf5a750e562cfb024fa84d59d0483f2859bc968b1e10505388eadc12f2786
  /usr/local/share/examples/flowd/README.tools: b3e3b3feab287c020f4e3cf36aca6daef31f7cfb81ea5a68e1897046cedd8a14
  /usr/local/share/examples/flowd/flowinsert.pl: e2da9cee0df12e650be97e7c2e9fba9b9e7eb0c42835b1d4ad3f63f0d14f0644
  /usr/local/share/examples/flowd/flowrrd/bytes.html: b5a92211d102ba557108578883b3420aafe7d455ae5a00e654d84a6e0812fb05
  /usr/local/share/examples/flowd/flowrrd/flow_rrd.py: 66c3caee671be87681b052c9b7f7eee48b0c8ddea0fb30b315ca08816c033740
  /usr/local/share/examples/flowd/flowrrd/flows.html: 793d34be4f43f69dd39e7ac35f5da0196ff8816033bd9d4c4c8ab2d7f49634c6
  /usr/local/share/examples/flowd/flowrrd/packets.html: 71335d2d61218f946d4d7601a74e131fb238b7c5b98db49360542cc5f02369e1
  /usr/local/share/examples/flowd/flowrrd/plot.sh: c5cdab4fadd2aca34e3058c34eb9f0a2e2a04eda85e48cbe9df1c7625b00ba59
  /usr/local/share/examples/flowd/flows.sql: 043f1c7eedfdd33b55d652ced7f2454aac9cb46e360273136edcf7f017dd5a3f
  /usr/local/share/examples/flowd/sockclient.py: b29d6c0f35cffdfc43419648217a55b4c3c2ec7254f28ca1f253e0956d2ab10f
  /usr/local/share/examples/flowd/stats.py: 01c090123f388a43dd579e045b0e4edae04328069b7f0343f087f35ae7ec6116
  /usr/local/share/examples/flowd/wormsuspects.pl: ec5a33110a688f5b63411498f7665721557070458a14e02a01624ceab46d2ca3
directories:
  /usr/local/share/examples/flowd/flowrrd/: n
  /usr/local/share/examples/flowd/: n
  /usr/local/share/doc/flowd/: n
  /usr/local/lib/perl5/site_perl/5.14/mach/auto/Flowd/: n
  /usr/local/include/flowd/: n
scripts:
  post-install: |
    echo "===> Creating users and/or groups."
    if ! /usr/sbin/pw groupshow _flowd >/dev/null 2>&1; then  echo "Creating group '_flowd' with gid '542'.";  /usr/sbin/pw groupadd _flowd -g 542; else echo "Using existing group '_flowd'."; fi
    if ! /usr/sbin/pw usershow _flowd >/dev/null 2>&1; then  echo "Creating user '_flowd' with uid '542'.";  /usr/sbin/pw useradd _flowd -u 542 -g 542  -c "flowd privilege separation user" -d /var/empty -s /usr/sbin/nologin;  else echo "Using existing user '_flowd'."; fi
    cd /usr/local
  pre-deinstall: |
    if /usr/sbin/pw usershow _flowd >/dev/null 2>&1; then  echo "==> You should manually remove the \"_flowd\" user. "; fi
    cd /usr/local
  post-deinstall: |
    cd /usr/local
  deinstall: "#!/bin/sh\n#\n#\t$FreeBSD: net-mgmt/flowd/pkg-deinstall 300897 2012-07-14
    14:29:18Z beat $\n#\n\nFLOWD_USER=${FLOWD_USER:=_flowd}\n\ndelete_user() {\n\tif
    pw usershow ${FLOWD_USER} 2>/dev/null 1>&2; then\n\t\techo \"To delete flowd privilege
    separation user permanently, use 'pw userdel ${FLOWD_USER}'\"\n\tfi\n\n}\n\ncase
    $2 in\n\tPOST-DEINSTALL)\n\t\tdelete_user\n\t\t;;\n\nesac\n"
