freebsd-ports/net-mgmt/nfdump/files/patch-Makefile.in
Sergei Kolobov 84453d1c93 Add net-mgmt/nfdump:
NFDUMP tools support netflow v5 and v7 capturing and processing.

nfcapd - netflow capture daemon.
Reads the netflow data from the network and stores the data into files.

nfdump - netflow dump.
Reads the netflow data from the files stored by nfcapd. It's syntax is similar
to tcpdump. If you like tcpdump you will like nfdump.

nfprofile - netflow profiler.
Reads the netflow data from the files stored by nfcapd. Filters the netflow
data according to the specified filter sets ( profiles ) and stores the
filtered data into files for later use.

nfreplay - netflow replay
Reads the netflow data from the files stored by nfcapd and sends it over
the network to another host.

WWW: http://nfdump.sourceforge.net

PR:		ports/72171
Submitted by:	Janos Mohacsi <janos.mohacsi@niif.hu>
2004-11-06 23:48:46 +00:00

48 lines
2.2 KiB
Text

$FreeBSD$
--- Makefile.in.orig Wed Sep 22 09:23:10 2004
+++ Makefile.in Wed Sep 29 16:31:23 2004
@@ -47,7 +47,7 @@
LFLAGS = -i
LDFLAGS = @LIBS@
PREFIX = @prefix@
-MANDIR = @mandir@
+MANDIR = @prefix@
FSRC = grammar.c scanner.c nftree.c netflow_v5.c netflow_v7.c nfstat.c util.c
FOBJ = $(FSRC:.c=.o)
ASRC = $(FSRC) nfdump.c nftree_check.c nfreplay.c
@@ -82,20 +82,20 @@
$(CC) $(CFLAGS) $(INCS) -o $@ nfreplay.o $(FOBJ) $(LDFLAGS)
install: $(OBJECTS)
- test -d $(PREFIX) || install -d -o root -g root -m 755 $(PREFIX)
- test -d $(PREFIX)/bin || install -d -o root -g root -m 755 $(PREFIX)/bin
- test -d $(MANDIR)/man || install -d -o root -g root -m 755 $(MANDIR)/man
- test -d $(MANDIR)/man/man1 || install -d -o root -g root -m 755 $(MANDIR)/man/man1
- $(INSTALL) -o root -g root -m 755 nfcapd $(PREFIX)/bin
- $(INSTALL) -o root -g root -m 755 nfdump $(PREFIX)/bin
- $(INSTALL) -o root -g root -m 755 nfprofile $(PREFIX)/bin
- $(INSTALL) -o root -g root -m 755 nfreplay $(PREFIX)/bin
- $(INSTALL) -o root -g root -m 755 nfclean.pl $(PREFIX)/bin
+ test -d $(PREFIX) || install -d -o root -g wheel -m 755 $(PREFIX)
+ test -d $(PREFIX)/bin || install -d -o root -g wheel -m 755 $(PREFIX)/bin
+ test -d $(MANDIR)/man || install -d -o root -g wheel -m 755 $(MANDIR)/man
+ test -d $(MANDIR)/man/man1 || install -d -o root -g wheel -m 755 $(MANDIR)/man/man1
+ $(INSTALL) -o root -g wheel -m 755 nfcapd $(PREFIX)/bin
+ $(INSTALL) -o root -g wheel -m 755 nfdump $(PREFIX)/bin
+ $(INSTALL) -o root -g wheel -m 755 nfprofile $(PREFIX)/bin
+ $(INSTALL) -o root -g wheel -m 755 nfreplay $(PREFIX)/bin
+ $(INSTALL) -o root -g wheel -m 755 nfclean.pl $(PREFIX)/bin
- $(INSTALL) -o root -g root -m 644 nfcapd.1 $(MANDIR)/man/man1
- $(INSTALL) -o root -g root -m 644 nfdump.1 $(MANDIR)/man/man1
- $(INSTALL) -o root -g root -m 644 nfprofile.1 $(MANDIR)/man/man1
- $(INSTALL) -o root -g root -m 644 nfreplay.1 $(MANDIR)/man/man1
+ $(INSTALL) -o root -g wheel -m 644 nfcapd.1 $(MANDIR)/man/man1
+ $(INSTALL) -o root -g wheel -m 644 nfdump.1 $(MANDIR)/man/man1
+ $(INSTALL) -o root -g wheel -m 644 nfprofile.1 $(MANDIR)/man/man1
+ $(INSTALL) -o root -g wheel -m 644 nfreplay.1 $(MANDIR)/man/man1
uninstall:
/bin/rm -f $(PREFIX)/bin/nfcapd