pkgsrc/net/flow-tools/Makefile
seb a4b9471c27 Update to version 0.67.
Package changes: bl3ify, record build options, remove obsolete
AUTOMAKE_POST_PATTERNS, support new PostgreSQL feature.

Changes since last packaged version:
* 12-4-2003 flow-tools 0.67 released.
* flow-export: pgsql support from wyu@ateneo.edu
* docs: flow-report: Added description of reports.
* ftlib: ftfil.c - match_end_time() broken - noted by
  "Joe Loiacono" <jloiacon@csc.com>
* ftlib: fttag.c - better syntax checking for or-src/dst and set-src/dst
* ftlib: ftlib.h FT_TAG_TYPE_MATCH_NEXTHOP duplicated - flow-tag crash
  with next-hop type noted by Maxim Grigoriev <maxim@fnal.gov>
* ftlib: ftstat.c - broken ip-destination-address-source-count.  patch from
  "Shigeki Taniguchi" <staniguchi@csc.com>
* flow-fanout: filters not loaded - noted by RAR@syssrc.com
* ftlib: missing function prototypes for ftstat_*, rename bind to binding
  to prevent shadowing bind().  patch from Bill Fumerola <billf@mu.org>
* flow-fanout, flow-capture.  Process SIGTERM like SIGQUIT so flow-tools
  will work better under daemontools - req by
  Bernhard Weisshuhn <bkw@weisshuhn.de>
* docs: flow-nfilter and flow-cat TIME/DATE parsing section.
* flow-dscan: drp->flags not updated when loading saved state - patch from
  Jon Snyder <jon@pdx.edu>
* flow-dscan: allow concurrent -w and -W, patch from
  Dan Thorson <dan.thorson@seagate.com>
* docs: flow-print -f24 - noted by
  noted by Christian Bauer <Christian.Bauer@NEFkom.de>
* dist: tag.sym and tag.cfg example files reversed - noted by
* ftlib: ftlib.h - FT_TAG_SET and FT_TAG_OR are broken - patch from
  Valtteri Vuorikoski <vuori@geo0-hel-fi.magenta.net>
* ftlib: ftrec.c - add 1005to5 translation - patch from
  Valtteri Vuorikoski <vuori@geo0-hel-fi.magenta.net>
* flow-stat -f0 will try to divide by 0 with an empty flow file
  - noted by Mike Hunter <mhunter@ack.Berkeley.EDU>
* flow-capture: -u preserve unherited umask - patch from
  Everton da Silva Marques <everton@lab.ipaccess.diveo.net.br>
* flow-receive: remove -m and -A.
* flow-capture: remove -m and -A, functionality is now in xlate -x -X.
* flow-xlate: - config file based now.
* docs: flow-report: note which fields are sortable and what the key
  field is.
* flow-capture: accept()'s 3rd arg should be casted to socklen_t*, noted
  by Alistair.McGlinchy@marks-and-spencer.com
* docs: flow-nfilter, port is 0..65535 not 0..255 - noted by
  Mike Hunter <mhunter@ack.Berkeley.EDU>
* ftlib: ftlib.h - set-{dst,src} and or-{dst,src} constants not correct -
  patch from  Valtteri Vuorikoski <vuori@geo0-hel-fi.magenta.net>
* ftlib: ftchash.c - ftchash_sort() should not try to sort 0 entry table -
  noted by "Shane D." <shane.dawalt@wright.edu>
* flow-import: missing !HAVE_STRSEP compatability - patch from
  Alistair.McGlinchy@marks-and-spencer.com
* ftlib: ftstat.c - output path not parsed correctly with leading whitespace
  -- noted by Maxim Grigoriev <maxim@fnal.gov>
* ftlib: fttag.c - src->source dst->destination
* ftlib: fttag.c - ip-address, exporter, interface tag actions, requested by
  Tim Irwin <tim@arch.bellsouth.net>
* ftlib: ftsym.c - ftsym_new() should handle null filename - noted by
  Celso Alves Vieira <celso@telemar.com.br>
* flow-dscan: buf len 64, not 54 - Anil Madhavapeddy <anil@recoil.org>
2004-04-22 15:33:35 +00:00

65 lines
2 KiB
Makefile

# $NetBSD: Makefile,v 1.6 2004/04/22 15:33:35 seb Exp $
DISTNAME= flow-tools-0.67
CATEGORIES= net
MASTER_SITES= ftp://ftp.eng.oar.net/pub/flow-tools/
MAINTAINER= cjs@NetBSD.org
HOMEPAGE= http://www.splintered.net/sw/flow-tools/
COMMENT= Collect and store NetFlow data
GNU_CONFIGURE= YES
USE_BUILDLINK3= YES
USE_PKGINSTALL= YES
PKG_SYSCONFSUBDIR= flow-tools
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
BUILD_DEFS+= FLOW_TOOLS_USE_MYSQL
BUILD_DEFS+= FLOW_TOOLS_USE_POSTGRESQL
EGDIR= ${PREFIX}/share/examples/flow-tools
MAKE_DIRS+= ${PKG_SYSCONFDIR}/sym
MAKE_DIRS+= ${PKG_SYSCONFDIR}/cfg
# These files are config files that are unlikely to be modified in most cases
# so we install them via SUPPORT_FILES.
_SYM_FILES= ip-prot.sym ip-type.sym tcp-port.sym asn.sym tag.sym
.for _f_ in ${_SYM_FILES}
SUPPORT_FILES+= ${EGDIR}/sym/${_f_} ${PKG_SYSCONFDIR}/sym/${_f_}
.endfor
MESSAGE_SUBST+= EGDIR=${EGDIR}
.include "../../mk/bsd.prefs.mk"
# MySQL support
.if defined(FLOW_TOOLS_USE_MYSQL) && !empty(FLOW_TOOLS_USE_MYSQL:M[yY][eE][sS])
.include "../../databases/mysql-client/buildlink3.mk"
CONFIGURE_ARGS+= --with-mysql=${BUILDLINK_PREFIX.mysql-client}
.endif
# Postgresql support
.if defined(FLOW_TOOLS_USE_POSTGRESQL) && !empty(FLOW_TOOLS_USE_POSTGRESQL:M[yY][eE][sS])
.include "../../databases/postgresql-lib/buildlink3.mk"
CONFIGURE_ARGS+= --with-pgsql=${BUILDLINK_PREFIX.postgresql-lib}
.endif
# To avoid providing more patch files we do the following...
# Order is important here or else dependencies requiring docbook-to-man/jade
# will be triggered
post-patch:
${_PKG_SILENT}${_PKG_DEBUG} \
cd ${WRKSRC}/docs && \
for m in flow-*.1.in; do \
h=`${BASENAME} $${m} .1.in`.html.in; \
s=`${BASENAME} $${m} .1.in`.sgml; \
for f in $${s} $${h} $${m}; do \
${MV} $${f} $${f}.bak && \
${SED} -e 's,@localstatedir@,@sysconfdir@,g' \
< $${f}.bak > $${f}; \
done; \
done
.include "../../devel/zlib/buildlink3.mk"
.include "../../security/tcp_wrappers/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"