network flight recorder from dugsong@monkey.org
This commit is contained in:
parent
d1cfb4a7e9
commit
7eab0a9442
65
net/nfr/Makefile
Normal file
65
net/nfr/Makefile
Normal file
@ -0,0 +1,65 @@
|
||||
# OpenBSD makefile for: nfr
|
||||
# Version required: 1.6.2
|
||||
# Date created: 1998-Jul-4
|
||||
# Whom: dugsong@OpenBSD.ORG
|
||||
#
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 1998/07/04 20:52:53 marc Exp $
|
||||
#
|
||||
|
||||
DISTNAME= nfr-1.6.2-src
|
||||
PKGNAME= nfr-1.6.2
|
||||
CATEGORIES= net
|
||||
|
||||
MAINTAINER= dugsong@openbsd.org
|
||||
|
||||
NO_CDROM= "LIC: redistribution not allowed"
|
||||
|
||||
MASTER_SITES= see_pre-fetch_target
|
||||
EXTRACT_SUFX= .tar.Z
|
||||
|
||||
IS_INTERACTIVE= yes
|
||||
|
||||
WRKSRC= ${WRKDIR}/nfr-1.6/nfr
|
||||
|
||||
MAKE_ENV+= NFRHOME=${PREFIX}/nfr
|
||||
|
||||
pre-fetch:
|
||||
@if [ -f ${DISTDIR}/${DISTFILES} ]; then \
|
||||
true; \
|
||||
else \
|
||||
${ECHO} "";\
|
||||
${ECHO} " The source to this port may not be automatically fetched";\
|
||||
${ECHO} " due to licensing restrictions. You MUST fetch the sources";\
|
||||
${ECHO} " manually after reading and agreeing to the license terms";\
|
||||
${ECHO} " and supplying your name and e-mail address. See";\
|
||||
${ECHO} "";\
|
||||
${ECHO} " http://www.nfr.net/download/";\
|
||||
${ECHO} "";\
|
||||
${ECHO} " for details. Once ${DISTFILES} has been downloaded,";\
|
||||
${ECHO} " move it to ${DISTDIR} and then restart this build.";\
|
||||
${ECHO} "";\
|
||||
false;\
|
||||
fi
|
||||
|
||||
pre-install:
|
||||
@${MKDIR} ${PREFIX}/nfr
|
||||
@${CP} ${FILESDIR}/createuser ${PREFIX}/nfr
|
||||
@${CP} ${FILESDIR}/configure-nfr ${PREFIX}/nfr
|
||||
@${SETENV} ${MAKE_ENV} perl ${PREFIX}/nfr/createuser
|
||||
|
||||
post-install:
|
||||
@${SETENV} ${MAKE_ENV} sh ${PREFIX}/nfr/configure-nfr
|
||||
@${ECHO} ""
|
||||
@${ECHO} " NFR makes use of a modified bpf driver which has been"
|
||||
@${ECHO} " integrated into OpenBSD 2.3-current. Make sure you have"
|
||||
@${ECHO} " a bpf device enabled in your kernel. Add the following"
|
||||
@${ECHO} " to your kernel config file and rebuild, if you don't:"
|
||||
@${ECHO} ""
|
||||
@${ECHO} " pseudo-device bpfilter 4 # packet filter"
|
||||
@${ECHO} ""
|
||||
@${ECHO} " NFR has been installed in ${PREFIX}/nfr which is the"
|
||||
@${ECHO} " home directory of user \"nfr\". See the README file"
|
||||
@${ECHO} " in that directory for more information."
|
||||
@${ECHO} ""
|
||||
|
||||
.include <bsd.port.mk>
|
26
net/nfr/files/Makefile-config
Normal file
26
net/nfr/files/Makefile-config
Normal file
@ -0,0 +1,26 @@
|
||||
# $OpenBSD: Makefile-config,v 1.1.1.1 1998/07/04 20:52:53 marc Exp $
|
||||
#
|
||||
# set to the user and group name that you want NFR to run as
|
||||
#
|
||||
NFR_USER=nfr
|
||||
NFR_GROUP=nfr
|
||||
|
||||
#
|
||||
# what directory to install in
|
||||
#
|
||||
INSTALLDIR=$(PREFIX)/nfr
|
||||
|
||||
#
|
||||
# set to the httpd configuration templates to use
|
||||
#
|
||||
HTTPD_CONFIG=apache
|
||||
#HTTPD_CONFIG=apache_ssl
|
||||
|
||||
|
||||
#
|
||||
# set to a non-blank value to tell the path name to your httpd
|
||||
# executable. If you leave this blank, "make install" in ../nfrwatch
|
||||
# will attempt to find the web server.
|
||||
#
|
||||
HTTPD=/usr/sbin/httpd
|
||||
|
38
net/nfr/files/Makefile-openbsd
Normal file
38
net/nfr/files/Makefile-openbsd
Normal file
@ -0,0 +1,38 @@
|
||||
# $OpenBSD: Makefile-openbsd,v 1.1.1.1 1998/07/04 20:52:53 marc Exp $
|
||||
#
|
||||
# NFR makefile for OpenBSD
|
||||
#
|
||||
|
||||
CC=cc
|
||||
CFLAGS?= -g -O2
|
||||
CFLAGS+= $(INCDIRS) $(XCFLAGS) $(LCFLAGS)
|
||||
|
||||
JAVAC=javac
|
||||
JFLAGS=
|
||||
|
||||
LEX=lex
|
||||
YACC=yacc
|
||||
RANLIB=ranlib
|
||||
|
||||
SELPOLL=select.o
|
||||
|
||||
INCDIRS=-I$(NFR)/include
|
||||
NFRLIB=$(NFR)/lib/nfr/libnfr.a
|
||||
RCLIB=$(NFR)/lib/rc/librc.a
|
||||
RKIVELIB=$(NFR)/lib/rkive/librkive.a
|
||||
BACKLIB=$(NFR)/lib/back/libback.a
|
||||
CGILIB=$(NFR)/lib/cgi/libcgi.a
|
||||
PCAPDIR=$(NFR)/../thirdparty/libpcap-0.3.1a2
|
||||
PCAPLIB=$(PCAPDIR)/libpcap.a
|
||||
REGEXOBJ=$(NFR)/../thirdparty/regex-0.12/regex.o
|
||||
I=$(NFR)/include
|
||||
MAKESUBDIRS=sh $(NFR)/bin/makesubdirs
|
||||
UI_DIR=$(NFR)/ui
|
||||
|
||||
MATHLIB=-lm
|
||||
|
||||
.SUFFIXES: .class .java
|
||||
|
||||
.java.class:
|
||||
cd $(UI_DIR) ; $(JAVAC) $(JFLAGS) ./$(PKG_DIR)/$*.java
|
||||
|
177
net/nfr/files/configure-nfr
Executable file
177
net/nfr/files/configure-nfr
Executable file
@ -0,0 +1,177 @@
|
||||
#!/bin/sh
|
||||
|
||||
# configure-nfr - post-installation configuration of the NFR software.
|
||||
# run after the nfr user and group have been added,
|
||||
# and the NFR software has been installed.
|
||||
#
|
||||
# this should prolly be done in perl (ugh), but it needs to be portable.
|
||||
# so this is freak nasty, sue me. it works.
|
||||
#
|
||||
# dugsong@monkey.org
|
||||
|
||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||
|
||||
NFRDIR=${NFRHOME:-/nfr}
|
||||
NFRD_CFG=${NFRDIR}/etc/nfrd.cfg
|
||||
NFR_CONF=${NFRDIR}/etc/nfr.conf
|
||||
VALUES_NFR=${NFRDIR}/library/values.nfr
|
||||
|
||||
TMP=/tmp/nfr_install.$$
|
||||
trap 'rm -rf $TMP ; exit 0' 0 1 2 3 13 15
|
||||
mkdir $TMP || exit 1
|
||||
|
||||
echo "Network Flight Recorder configuration"
|
||||
|
||||
echo "
|
||||
This script will walk you through the initial configuration of your NFR.
|
||||
Default answers (based on best guesses, given your system configuration)
|
||||
are given in brackets [] - hit return if you want to keep the defaults."
|
||||
|
||||
while true ; do
|
||||
|
||||
# Get network interfaces for nfrd.cfg
|
||||
echo "
|
||||
|
||||
You need to specify which network interfaces the NFR will be
|
||||
monitoring. You may have the NFR listen on more than one interface
|
||||
(including \"stealth\" mode interfaces). Enter them as a space
|
||||
separated list of interface names."
|
||||
|
||||
nfr_intf=`ifconfig -a | grep 'flags=' | grep -v '^lo' | cut -f1 -d: | tr '\n' ' '`
|
||||
|
||||
printf "\nInterfaces? [ $nfr_intf] "
|
||||
read intf
|
||||
if [ "x$intf" != "x" ]; then nfr_intf=$intf ; fi
|
||||
|
||||
|
||||
# Get network numbers for values.nfr
|
||||
echo "
|
||||
|
||||
What are the network numbers of the networks this NFR is monitoring?
|
||||
Enter them as a comma separated list of colon separated
|
||||
address:netmask pairs in dotted decimal notation."
|
||||
|
||||
nfr_networks=""
|
||||
for intf in $nfr_intf ; do
|
||||
ifline=`ifconfig $intf | grep inet`
|
||||
if [ "x$ifline" = "x" ]; then continue; fi
|
||||
addr=`echo $ifline | sed 's/^.*inet \([.0-9]*\) netmask .*$/\1/'`
|
||||
netmask=`echo $ifline | sed 's/^.* netmask \([.xa-f0-9]*\) .*$/\1/'`
|
||||
if echo $netmask | grep -v '\.' >/dev/null ; then
|
||||
netmask=`echo $ifline | sed 's/^.* netmask \([xa-f0-9]*\) .*$/\1/
|
||||
s/0x//
|
||||
s/\([a-f0-9][a-f0-9]\)/0x\1 /g'`
|
||||
netmask=`printf "%d.%d.%d.%d" \`echo $netmask\``
|
||||
fi
|
||||
nfr_networks="${addr}:$netmask, $nfr_networks"
|
||||
done
|
||||
nfr_networks=`echo $nfr_networks | sed 's/,$//'`
|
||||
|
||||
printf "\nNetworks? [ $nfr_networks ] "
|
||||
read networks
|
||||
if [ "x$networks" != "x" ]; then nfr_networks=$networks ; fi
|
||||
|
||||
|
||||
# Get router MAC addresses for values.nfr
|
||||
echo "
|
||||
|
||||
What are the MAC addresses of the routers that route traffic from the
|
||||
outside to your local network? Enter them as a comma separated list of
|
||||
six colon separated hex bytes in two-digit format."
|
||||
|
||||
router_addr=`netstat -rn | grep default | awk '{print $2}'`
|
||||
router_mac_bytes=`arp $router_addr | awk '{print $4}' | sed 's/:/ 0x/g'`
|
||||
nfr_routers=`printf "%.2x:%.2x:%.2x:%.2x:%.2x:%.2x" \`echo $router_mac_bytes\``
|
||||
|
||||
printf "\nRouters? [ $nfr_routers ] "
|
||||
read routers
|
||||
if [ "x$routers" != "x" ]; then nfr_routers=$routers ; fi
|
||||
|
||||
|
||||
# Get httpd binary location for nfr.conf
|
||||
echo "
|
||||
|
||||
Where is the location of your Apache webserver program? Enter the
|
||||
full path to your httpd binary."
|
||||
|
||||
nfr_httpd=`grep ^HTTPD= $NFR_CONF | cut -f2 -d=`
|
||||
|
||||
printf "\nWebserver? [ $nfr_httpd ] "
|
||||
read httpd
|
||||
if [ "x$httpd" != "x" ]; then nfr_httpd=$httpd ; fi
|
||||
|
||||
|
||||
# Print summary
|
||||
echo "
|
||||
|
||||
You've entered the following NFR configuration values:
|
||||
|
||||
Network interfaces: $nfr_intf
|
||||
Network numbers: $nfr_networks
|
||||
Router MAC addresses: $nfr_routers
|
||||
Webserver location: $nfr_httpd"
|
||||
|
||||
printf "\nIs this correct? [y] "
|
||||
read answer
|
||||
echo ""
|
||||
case x$answer in
|
||||
xn*|xN*|xq*) echo "Repeating NFR configuration..." ;;
|
||||
x*|xy*|xY*) break ;;
|
||||
esac
|
||||
|
||||
done # End of main while loop
|
||||
|
||||
|
||||
# Modify nfrd.cfg
|
||||
sed "s/^\(nfr_intf=.*\)$/# \1/g
|
||||
s/^# nfr_intf=.*$/nfr_intf=$nfr_intf/" $NFRD_CFG > $TMP/nfrd.cfg
|
||||
cp $NFRD_CFG ${NFRD_CFG}-orig
|
||||
cp $TMP/nfrd.cfg $NFRD_CFG
|
||||
echo "$NFRD_CFG updated."
|
||||
|
||||
# Modify values.nfr
|
||||
sed "s/^\(my_network.*\)$/# \1/g
|
||||
s/^# my_network.*$/my_network = [ $nfr_networks ]/
|
||||
s/^\(my_router_mac_list.*\)$/# \1/g
|
||||
s/^# my_router_mac_list.*$/my_router_mac_list = [ $nfr_routers ]/" \
|
||||
$VALUES_NFR > $TMP/values.nfr
|
||||
cp $VALUES_NFR ${VALUES_NFR}-orig
|
||||
cp $TMP/values.nfr $VALUES_NFR
|
||||
echo "$VALUES_NFR updated."
|
||||
|
||||
# Modify nfr.conf
|
||||
sed "s%^\(HTTPD=.*\)$%# \1%g
|
||||
s%^# HTTPD=.*$%HTTPD=$nfr_httpd%" $NFR_CONF > $TMP/nfr.conf
|
||||
cp $NFR_CONF ${NFR_CONF}-orig
|
||||
cp $TMP/nfr.conf $NFR_CONF
|
||||
echo "$NFR_CONF updated."
|
||||
|
||||
|
||||
# Set initial NFR htpasswd
|
||||
echo "
|
||||
You now need to set an initial password for the NFR web account.
|
||||
Running \"$NFRDIR/bin/htpasswd -c $NFRDIR/etc/httpd/conf/htpasswd nfr\"...
|
||||
"
|
||||
while ! $NFRDIR/bin/htpasswd -c $NFRDIR/etc/httpd/conf/htpasswd nfr ; do
|
||||
echo ""
|
||||
done
|
||||
echo ""
|
||||
|
||||
# Make sure our NFR directory looks sane.
|
||||
if [ ! -p $NFRDIR/etc/run/alertd/alertsin ]; then
|
||||
mkfifo -m 600 $NFRDIR/etc/run/alertd/alertsin
|
||||
fi
|
||||
if [ ! -p $NFRDIR/etc/run/spacemand/infifo ]; then
|
||||
mkfifo -m 644 $NFRDIR/etc/run/spacemand/infifo
|
||||
fi
|
||||
touch $NFRDIR/nfrd.log
|
||||
chown -R nfr:nfr $NFRDIR
|
||||
|
||||
if [ "x${NFRDIR}" != "x/nfr" ]; then
|
||||
rm -f /nfr
|
||||
ln -s $NFRDIR /nfr
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
||||
# 5000.
|
46
net/nfr/files/createuser
Executable file
46
net/nfr/files/createuser
Executable file
@ -0,0 +1,46 @@
|
||||
#!/usr/bin/perl
|
||||
#
|
||||
# $OpenBSD: createuser,v 1.1.1.1 1998/07/04 20:52:53 marc Exp $
|
||||
#
|
||||
# Create the NFR user and group, if they don't already exist.
|
||||
|
||||
if ($>) {
|
||||
print "\nYou must be root to run this step!\n\n";
|
||||
exit 1;
|
||||
}
|
||||
|
||||
# Find NFR homedir.
|
||||
$nfr_home = $ENV{'NFRHOME'};
|
||||
if (!$nfr_home) {
|
||||
$nfr_home = "/nfr";
|
||||
}
|
||||
|
||||
# Create NFR group if it doesn't exist.
|
||||
if (getgrnam("nfr")) {
|
||||
($null, $null, $nfr_gid) = getgrnam("nfr");
|
||||
}
|
||||
else {
|
||||
$nfr_gid = 42;
|
||||
while (getgrgid($nfr_gid)) {
|
||||
$nfr_gid++;
|
||||
}
|
||||
print("Creating NFR group 'nfr' with gid $nfr_gid\n");
|
||||
system("echo nfr:\*:$nfr_gid: >> /etc/group");
|
||||
}
|
||||
|
||||
# Create NFR user if it doesn't exist.
|
||||
if (getpwnam("nfr")) {
|
||||
($null, $null, $nfr_uid) = getpwnam("nfr");
|
||||
}
|
||||
else {
|
||||
$nfr_uid = 42;
|
||||
while (getpwuid($nfr_uid)) {
|
||||
$nfr_uid++;
|
||||
}
|
||||
($null, $null, $nfr_gid) = getgrnam("nfr");
|
||||
print "Creating NFR user 'nfr' with uid $nfr_uid, gid $nfr_gid\n";
|
||||
system( "/usr/bin/chpass -a \"nfr:*:$nfr_uid:$nfr_gid:\:\:\:Network Flight Recorder:$nfr_home:/sbin/nologin\"" );
|
||||
}
|
||||
|
||||
print("Using NFR user 'nfr' with uid $nfr_uid, gid $nfr_gid, and homedir $nfr_home\n\n");
|
||||
|
1
net/nfr/files/md5
Normal file
1
net/nfr/files/md5
Normal file
@ -0,0 +1 @@
|
||||
MD5 (nfr-1.6.2-src.tar.Z) = 2745fbeb278a9da3f9d242a1c3fcb0c2
|
198
net/nfr/files/nfr-htpasswd.c
Normal file
198
net/nfr/files/nfr-htpasswd.c
Normal file
@ -0,0 +1,198 @@
|
||||
/*
|
||||
* htpasswd.c: simple program for manipulating password file for NCSA httpd
|
||||
*
|
||||
* Rob McCool
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#ifdef MPE
|
||||
#include <signal.h>
|
||||
#else
|
||||
#include <sys/signal.h>
|
||||
#endif
|
||||
#include <stdlib.h>
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#define LF 10
|
||||
#define CR 13
|
||||
|
||||
#define MAX_STRING_LEN 256
|
||||
|
||||
char *tn;
|
||||
|
||||
char *strd(char *s) {
|
||||
char *d;
|
||||
|
||||
d=(char *)malloc(strlen(s) + 1);
|
||||
strcpy(d,s);
|
||||
return(d);
|
||||
}
|
||||
|
||||
void getword(char *word, char *line, char stop) {
|
||||
int x = 0,y;
|
||||
|
||||
for(x=0;((line[x]) && (line[x] != stop));x++)
|
||||
word[x] = line[x];
|
||||
|
||||
word[x] = '\0';
|
||||
if(line[x]) ++x;
|
||||
y=0;
|
||||
|
||||
while((line[y++] = line[x++]));
|
||||
}
|
||||
|
||||
int getline(char *s, int n, FILE *f) {
|
||||
register int i=0;
|
||||
|
||||
while(1) {
|
||||
s[i] = (char)fgetc(f);
|
||||
|
||||
if(s[i] == CR)
|
||||
s[i] = fgetc(f);
|
||||
|
||||
if((s[i] == 0x4) || (s[i] == LF) || (i == (n-1))) {
|
||||
s[i] = '\0';
|
||||
return (feof(f) ? 1 : 0);
|
||||
}
|
||||
++i;
|
||||
}
|
||||
}
|
||||
|
||||
void putline(FILE *f,char *l) {
|
||||
int x;
|
||||
|
||||
for(x=0;l[x];x++) fputc(l[x],f);
|
||||
fputc('\n',f);
|
||||
}
|
||||
|
||||
|
||||
/* From local_passwd.c (C) Regents of Univ. of California blah blah */
|
||||
static unsigned char itoa64[] = /* 0 ... 63 => ascii - 64 */
|
||||
"./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
||||
|
||||
void to64(register char *s, register long v, register int n) {
|
||||
while (--n >= 0) {
|
||||
*s++ = itoa64[v&0x3f];
|
||||
v >>= 6;
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef MPE
|
||||
/* MPE lacks getpass() and a way to suppress stdin echo. So for now, just
|
||||
issue the prompt and read the results with echo. (Ugh). */
|
||||
|
||||
char *getpass(const char *prompt) {
|
||||
|
||||
static char password[81];
|
||||
|
||||
fputs(prompt,stderr);
|
||||
gets((char *)&password);
|
||||
|
||||
if (strlen((char *)&password) > 8) {
|
||||
password[8]='\0';
|
||||
}
|
||||
|
||||
return (char *)&password;
|
||||
}
|
||||
#endif
|
||||
|
||||
void add_password(char *user, FILE *f) {
|
||||
char *pw, *cpw, salt[3];
|
||||
|
||||
pw = strd((char *) getpass("New password:"));
|
||||
if(strcmp(pw,(char *) getpass("Re-type new password:"))) {
|
||||
fprintf(stderr,"They don't match, sorry.\n");
|
||||
if(tn)
|
||||
unlink(tn);
|
||||
exit(1);
|
||||
}
|
||||
(void)srand((int)time((time_t *)NULL));
|
||||
to64(&salt[0],rand(),2);
|
||||
cpw = crypt(pw,salt);
|
||||
free(pw);
|
||||
fprintf(f,"%s:%s\n",user,cpw);
|
||||
}
|
||||
|
||||
void usage() {
|
||||
fprintf(stderr,"Usage: htpasswd [-c] passwordfile username\n");
|
||||
fprintf(stderr,"The -c flag creates a new file.\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
void interrupted() {
|
||||
fprintf(stderr,"Interrupted.\n");
|
||||
if(tn) unlink(tn);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
void main(int argc, char *argv[]) {
|
||||
FILE *tfp,*f;
|
||||
char user[MAX_STRING_LEN];
|
||||
char line[MAX_STRING_LEN];
|
||||
char l[MAX_STRING_LEN];
|
||||
char w[MAX_STRING_LEN];
|
||||
char command[MAX_STRING_LEN];
|
||||
int found;
|
||||
|
||||
tn = NULL;
|
||||
signal(SIGINT,(void (*)())interrupted);
|
||||
if(argc == 4) {
|
||||
if(strcmp(argv[1],"-c"))
|
||||
usage();
|
||||
if(!(tfp = fopen(argv[2],"w"))) {
|
||||
fprintf(stderr,"Could not open passwd file %s for writing.\n",
|
||||
argv[2]);
|
||||
perror("fopen");
|
||||
exit(1);
|
||||
}
|
||||
printf("Adding password for %s.\n",argv[3]);
|
||||
add_password(argv[3],tfp);
|
||||
fclose(tfp);
|
||||
exit(0);
|
||||
} else if(argc != 3) usage();
|
||||
|
||||
tn = tmpnam(NULL);
|
||||
if(!(tfp = fopen(tn,"w"))) {
|
||||
fprintf(stderr,"Could not open temp file.\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
if(!(f = fopen(argv[1],"r"))) {
|
||||
fprintf(stderr,
|
||||
"Could not open passwd file %s for reading.\n",argv[1]);
|
||||
fprintf(stderr,"Use -c option to create new one.\n");
|
||||
exit(1);
|
||||
}
|
||||
strcpy(user,argv[2]);
|
||||
|
||||
found = 0;
|
||||
while(!(getline(line,MAX_STRING_LEN,f))) {
|
||||
if(found || (line[0] == '#') || (!line[0])) {
|
||||
putline(tfp,line);
|
||||
continue;
|
||||
}
|
||||
strcpy(l,line);
|
||||
getword(w,l,':');
|
||||
if(strcmp(user,w)) {
|
||||
putline(tfp,line);
|
||||
continue;
|
||||
}
|
||||
else {
|
||||
printf("Changing password for user %s\n",user);
|
||||
add_password(user,tfp);
|
||||
found = 1;
|
||||
}
|
||||
}
|
||||
if(!found) {
|
||||
printf("Adding user %s\n",user);
|
||||
add_password(user,tfp);
|
||||
}
|
||||
fclose(f);
|
||||
fclose(tfp);
|
||||
sprintf(command,"cp %s %s",tn,argv[1]);
|
||||
system(command);
|
||||
unlink(tn);
|
||||
}
|
23
net/nfr/files/opts-openbsd.h
Normal file
23
net/nfr/files/opts-openbsd.h
Normal file
@ -0,0 +1,23 @@
|
||||
/*
|
||||
* $OpenBSD: opts-openbsd.h,v 1.1.1.1 1998/07/04 20:52:53 marc Exp $
|
||||
*/
|
||||
|
||||
#define USE_SELECT
|
||||
|
||||
/*****************************************************************************
|
||||
Copyright(C) 1996, 1997 Network Flight Recorder, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Use and distribution of this software and its source code
|
||||
are governed by the terms and conditions of the
|
||||
Network Flight Recorder Software License ("LICENSE.TXT")
|
||||
*****************************************************************************/
|
||||
|
||||
|
||||
/* temporary fix 'til I get around to shoving Mike's select code in */
|
||||
#define FIFO_OPEN_READMODE O_RDONLY
|
||||
#define FIFO_OPEN_WRITEMODE O_WRONLY
|
||||
|
||||
#define COUNTER_TYPE long long
|
||||
|
||||
#define USE_PASSWD
|
76
net/nfr/files/sys-openbsd.h
Normal file
76
net/nfr/files/sys-openbsd.h
Normal file
@ -0,0 +1,76 @@
|
||||
/*
|
||||
$OpenBSD: sys-openbsd.h,v 1.1.1.1 1998/07/04 20:52:53 marc Exp $
|
||||
|
||||
Copyright(C) 1997 Network Flight Recorder, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Use and distribution of this software and its source code
|
||||
are governed by the terms and conditions of the
|
||||
Network Flight Recorder Software License ("LICENSE.TXT")
|
||||
|
||||
*/
|
||||
|
||||
/*
|
||||
**
|
||||
** write one of these for EACH different kinda system
|
||||
** we get. Place EVERY needed system include here in the correct order
|
||||
*/
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/resource.h>
|
||||
#include <sys/wait.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/un.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/param.h>
|
||||
|
||||
#include <sysexits.h>
|
||||
|
||||
#include <net/if.h>
|
||||
|
||||
#include <netinet/in_systm.h>
|
||||
#include <netinet/in.h>
|
||||
#include <netinet/if_ether.h>
|
||||
#include <netinet/ip.h>
|
||||
#include <netinet/ip_icmp.h>
|
||||
#include <netinet/udp.h>
|
||||
#include <netinet/tcp.h>
|
||||
|
||||
#include <arpa/inet.h>
|
||||
#include <netdb.h>
|
||||
|
||||
#include <sys/select.h>
|
||||
#include <signal.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
#include <string.h>
|
||||
#include <stdarg.h>
|
||||
#include <ctype.h>
|
||||
#include <dirent.h>
|
||||
#include <pwd.h>
|
||||
|
||||
#include <errno.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include <regex.h>
|
||||
|
||||
#include "pktlib.h"
|
||||
|
||||
#include <setjmp.h>
|
||||
|
||||
/*
|
||||
** DIR_NAME_MAX is any addition length more than
|
||||
** struct dirent needed to hold an entire directory
|
||||
** entry (including the name).
|
||||
**
|
||||
** DIR_COPY_ENTRY is a routine to copy the contents of
|
||||
** the old entry to the new.
|
||||
*/
|
||||
|
||||
#define DIR_NAME_MAX 0
|
||||
#define DIR_COPY_ENTRY(n,o) *n = *o
|
14
net/nfr/patches/patch-aa
Normal file
14
net/nfr/patches/patch-aa
Normal file
@ -0,0 +1,14 @@
|
||||
--- bin/select_sys.~1~ Tue Mar 3 12:12:55 1998
|
||||
+++ bin/select_sys Tue Jun 23 19:16:10 1998
|
||||
@@ -73,6 +73,11 @@
|
||||
type=netbsd
|
||||
warn=y
|
||||
;;
|
||||
+ OpenBSD2.*)
|
||||
+ echo NFR is NOT officially supported on OpenBSD 2.x systems
|
||||
+ echo Unofficial support added by ports@openbsd.org
|
||||
+ type=openbsd
|
||||
+ ;;
|
||||
Linux*)
|
||||
case $rev
|
||||
in
|
18
net/nfr/patches/patch-ab
Normal file
18
net/nfr/patches/patch-ab
Normal file
@ -0,0 +1,18 @@
|
||||
*** web/Makefile.proto-orig Fri Jul 3 15:33:38 1998
|
||||
--- web/Makefile.proto Fri Jul 3 15:35:38 1998
|
||||
***************
|
||||
*** 2,11 ****
|
||||
--- 2,14 ----
|
||||
|
||||
all:
|
||||
$(MAKESUBDIRS) $@ $(SUBDIRS)
|
||||
+ $(CC) $(CFLAGS) -o nfr-htpasswd nfr-htpasswd.c
|
||||
|
||||
install:
|
||||
$(MAKESUBDIRS) $@ $(SUBDIRS)
|
||||
+ cp nfr-htpasswd $(INSTALLDIR)/bin/htpasswd
|
||||
|
||||
clean:
|
||||
$(MAKESUBDIRS) $@ $(SUBDIRS)
|
||||
+ rm -f nfr-htpasswd *.core core
|
||||
|
13
net/nfr/patches/patch-ac
Normal file
13
net/nfr/patches/patch-ac
Normal file
@ -0,0 +1,13 @@
|
||||
*** config/nfrstart.sh-orig Fri Jul 3 15:51:35 1998
|
||||
--- config/nfrstart.sh Fri Jul 3 15:51:40 1998
|
||||
***************
|
||||
*** 1,4 ****
|
||||
! #!/sbin/sh
|
||||
#
|
||||
# /etc/init.d/nfrstatrt:
|
||||
#
|
||||
--- 1,4 ----
|
||||
! #!/bin/sh
|
||||
#
|
||||
# /etc/init.d/nfrstatrt:
|
||||
#
|
1
net/nfr/pkg/COMMENT
Normal file
1
net/nfr/pkg/COMMENT
Normal file
@ -0,0 +1 @@
|
||||
Network Flight Recorder(tm)
|
12
net/nfr/pkg/DESCR
Normal file
12
net/nfr/pkg/DESCR
Normal file
@ -0,0 +1,12 @@
|
||||
|
||||
The Network Flight Recorder(tm) is a programmable sniffer with an
|
||||
internal scripting language (N-code), highly configurable logging and
|
||||
alert subsystems, and a Java-based web GUI.
|
||||
|
||||
See http://www.nfr.net/ for full documentation, source code, etc.
|
||||
|
||||
-d.
|
||||
|
||||
---
|
||||
http://www.monkey.org/~dugsong/
|
||||
|
462
net/nfr/pkg/PLIST
Normal file
462
net/nfr/pkg/PLIST
Normal file
@ -0,0 +1,462 @@
|
||||
nfr/README
|
||||
nfr/bin/alertd
|
||||
nfr/bin/buildres
|
||||
nfr/bin/control
|
||||
nfr/bin/ctlnfrd
|
||||
nfr/bin/diagrec
|
||||
nfr/bin/gendata
|
||||
nfr/bin/histogram
|
||||
nfr/bin/htpasswd
|
||||
nfr/bin/list
|
||||
nfr/bin/nfrd
|
||||
nfr/bin/nfrwatch
|
||||
nfr/bin/rc
|
||||
nfr/bin/spacemand
|
||||
nfr/bin/startspaceman
|
||||
nfr/bin/stopspaceman
|
||||
nfr/bin/tarfile
|
||||
nfr/bin/test-nfrd
|
||||
nfr/bin/tests/alertd/001
|
||||
nfr/bin/tests/alertd/002
|
||||
nfr/bin/tests/alertd/003
|
||||
nfr/bin/tests/rc/001
|
||||
nfr/bin/tests/rc/002
|
||||
nfr/configure-nfr
|
||||
nfr/createuser
|
||||
nfr/etc/alertd/facilities/templates/fax/gui.cf
|
||||
nfr/etc/alertd/facilities/templates/fax/queue.cf
|
||||
nfr/etc/alertd/facilities/templates/generic/gui.cf
|
||||
nfr/etc/alertd/facilities/templates/generic/queue.cf
|
||||
nfr/etc/alertd/facilities/templates/mail/gui.cf
|
||||
nfr/etc/alertd/facilities/templates/mail/queue.cf
|
||||
nfr/etc/alertd/facilities/templates/pager/gui.cf
|
||||
nfr/etc/alertd/facilities/templates/pager/queue.cf
|
||||
nfr/etc/httpd/cgi-bin/.htaccess
|
||||
nfr/etc/httpd/cgi-bin/ackcomment
|
||||
nfr/etc/httpd/cgi-bin/ackdump
|
||||
nfr/etc/httpd/cgi-bin/ackhistory
|
||||
nfr/etc/httpd/cgi-bin/acknowledge
|
||||
nfr/etc/httpd/cgi-bin/alertdump
|
||||
nfr/etc/httpd/cgi-bin/call_rc
|
||||
nfr/etc/httpd/cgi-bin/cfedit
|
||||
nfr/etc/httpd/cgi-bin/cfmerge
|
||||
nfr/etc/httpd/cgi-bin/cfstrip
|
||||
nfr/etc/httpd/cgi-bin/dumppost
|
||||
nfr/etc/httpd/cgi-bin/fileio
|
||||
nfr/etc/httpd/cgi-bin/histogram_query
|
||||
nfr/etc/httpd/cgi-bin/hupSpacemand
|
||||
nfr/etc/httpd/cgi-bin/list_query
|
||||
nfr/etc/httpd/cgi-bin/ls_logs
|
||||
nfr/etc/httpd/cgi-bin/ls_packages
|
||||
nfr/etc/httpd/cgi-bin/ls_sq
|
||||
nfr/etc/httpd/cgi-bin/mkfac
|
||||
nfr/etc/httpd/cgi-bin/readSpacemanCfg
|
||||
nfr/etc/httpd/cgi-bin/resdump
|
||||
nfr/etc/httpd/cgi-bin/resmerge
|
||||
nfr/etc/httpd/cgi-bin/rmfac
|
||||
nfr/etc/httpd/cgi-bin/testalert
|
||||
nfr/etc/httpd/cgi-bin/writeSpacemanCfg
|
||||
nfr/etc/httpd/conf/access.conf
|
||||
nfr/etc/httpd/conf/htgroup
|
||||
nfr/etc/httpd/conf/htpasswd
|
||||
nfr/etc/httpd/conf/httpd.conf
|
||||
nfr/etc/httpd/conf/mime.types
|
||||
nfr/etc/httpd/conf/srm.conf
|
||||
nfr/etc/httpd/conf/type-mapping
|
||||
nfr/etc/httpd/htdocs/.htaccess
|
||||
nfr/etc/httpd/htdocs/images/FULL_L~1.GIF
|
||||
nfr/etc/httpd/htdocs/images/LOGO_S~1.GIF
|
||||
nfr/etc/httpd/htdocs/images/LOGO_S~2.GIF
|
||||
nfr/etc/httpd/htdocs/images/LOGO_S~3.GIF
|
||||
nfr/etc/httpd/htdocs/images/alert.gif
|
||||
nfr/etc/httpd/htdocs/images/configure.gif
|
||||
nfr/etc/httpd/htdocs/images/fulllogo.gif
|
||||
nfr/etc/httpd/htdocs/images/fulllogobw.gif
|
||||
nfr/etc/httpd/htdocs/images/gui_logo.gif
|
||||
nfr/etc/httpd/htdocs/images/lnfr.gif
|
||||
nfr/etc/httpd/htdocs/images/lnfrbw.gif
|
||||
nfr/etc/httpd/htdocs/images/logo_anim.gif
|
||||
nfr/etc/httpd/htdocs/images/mnfr.gif
|
||||
nfr/etc/httpd/htdocs/images/mnfrbw.gif
|
||||
nfr/etc/httpd/htdocs/images/nfr1.jpeg
|
||||
nfr/etc/httpd/htdocs/images/nfr1bw.jpeg
|
||||
nfr/etc/httpd/htdocs/images/packages.gif
|
||||
nfr/etc/httpd/htdocs/images/snfr.gif
|
||||
nfr/etc/httpd/htdocs/images/snfrbw.gif
|
||||
nfr/etc/httpd/htdocs/images/status.gif
|
||||
nfr/etc/httpd/htdocs/index.html
|
||||
nfr/etc/httpd/htdocs/java/BackendStruct.class
|
||||
nfr/etc/httpd/htdocs/java/NfrMainWindow.class
|
||||
nfr/etc/httpd/htdocs/java/PackagesPanel.class
|
||||
nfr/etc/httpd/htdocs/java/QueryLoader.class
|
||||
nfr/etc/httpd/htdocs/java/QuerySaver.class
|
||||
nfr/etc/httpd/htdocs/java/RollPanel.class
|
||||
nfr/etc/httpd/htdocs/java/SpacemanCfgEditFrame.class
|
||||
nfr/etc/httpd/htdocs/java/SpacemanCfgEditPanel.class
|
||||
nfr/etc/httpd/htdocs/java/SpacemanCfgFrame.class
|
||||
nfr/etc/httpd/htdocs/java/graph/BGData.class
|
||||
nfr/etc/httpd/htdocs/java/graph/BGDataList.class
|
||||
nfr/etc/httpd/htdocs/java/graph/BarGraph.class
|
||||
nfr/etc/httpd/htdocs/java/graph/BarGraphViewer.class
|
||||
nfr/etc/httpd/htdocs/java/graph/EOFInputStream.class
|
||||
nfr/etc/httpd/htdocs/java/graph/GCanvas.class
|
||||
nfr/etc/httpd/htdocs/java/graph/Graph.class
|
||||
nfr/etc/httpd/htdocs/java/graph/NFRApplet.class
|
||||
nfr/etc/httpd/htdocs/java/graph/PieChart.class
|
||||
nfr/etc/httpd/htdocs/java/graph/PieViewer.class
|
||||
nfr/etc/httpd/htdocs/java/graph/SPData.class
|
||||
nfr/etc/httpd/htdocs/java/graph/SPDataMatrix.class
|
||||
nfr/etc/httpd/htdocs/java/graph/ScaledTextCanvas.class
|
||||
nfr/etc/httpd/htdocs/java/graph/ScaledTextVector.class
|
||||
nfr/etc/httpd/htdocs/java/graph/ScatterPlot.class
|
||||
nfr/etc/httpd/htdocs/java/graph/ScatterViewer.class
|
||||
nfr/etc/httpd/htdocs/java/graph/View.class
|
||||
nfr/etc/httpd/htdocs/java/graph/ViewPanel.class
|
||||
nfr/etc/httpd/htdocs/java/graph/Viewer.class
|
||||
nfr/etc/httpd/htdocs/java/graph/work_thread.class
|
||||
nfr/etc/httpd/htdocs/java/histogram_configure.class
|
||||
nfr/etc/httpd/htdocs/java/histogram_query.class
|
||||
nfr/etc/httpd/htdocs/java/list_configure.class
|
||||
nfr/etc/httpd/htdocs/java/list_query.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/alerts/AckCommentator.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/alerts/AckHistory.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/alerts/AckThread.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/alerts/AlertRecord.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/alerts/AlertViewer.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/alerts/CommentThread.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/alerts/HistoryThread.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/alerts/ListView_Alert.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/alerts/ListView_Host.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/alerts/ListView_Sev.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/alerts/ListView_Source.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/alerts/ListView_Time.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/alerts/LoadThread.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/facilities/FacEditWin.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/facilities/FacEditor.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/facilities/FaxEditor.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/facilities/MailEditor.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/facilities/PageEditor.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/misc/AbsoluteTime.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/misc/BarMeter.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/misc/Cf.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/misc/CgiScript.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/misc/ColorEntry.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/misc/ColoredBarMeter.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/misc/Constraints.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/misc/CtoP.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/misc/DanceThread.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/misc/DateThing.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/misc/DigitalMeter.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/misc/FifoRdr.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/misc/Formattable.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/misc/GoodFrame.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/misc/GoodFrameExit.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/misc/IntervalTime.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/misc/ListView.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/misc/Meter.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/misc/MsgBox.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/misc/NFRInfo.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/misc/ProgressThing.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/misc/SortView.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/misc/SpacemanIO.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/misc/SpacemanParser.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/misc/SpacemanRecord.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/misc/Testable.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/misc/absolute_time.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/misc/bar_meter.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/misc/cgi_post.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/misc/dbg.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/misc/extabthing.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/misc/extabtop.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/misc/interval_time.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/misc/jafp.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/misc/ordered_table.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/misc/ordered_table_entry.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/misc/ordered_table_enumerator.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/misc/popup_bummer.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/misc/remote_file_io.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/misc/repTile.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/misc/tabthing.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/misc/tabtop.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/misc/type_mapping.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/misc/window.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/rc/AlertConfigurator.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/rc/AlertRes.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/rc/AlertSrcConfigurator.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/rc/AlertSrcRes.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/rc/FacId.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/rc/FacIdConfigurator.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/rc/FacSelector.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/rc/RangeCfgStack.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/rc/RangeConfigurator.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/rc/RangeRes.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/rc/ResAdder.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/rc/ResCode.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/rc/ResConfigurator.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/rc/ResConsts.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/rc/ResId.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/rc/ResIdConfigurator.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/rc/ResTab.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/rc/ResTabCfgWindow.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/rc/SevSelector.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/rc/StringConfigurator.class
|
||||
nfr/etc/httpd/htdocs/java/nfr/rc/StringRes.class
|
||||
nfr/etc/httpd/htdocs/java/nfr_applet.class
|
||||
nfr/etc/httpd/htdocs/java/toplevel.class
|
||||
nfr/etc/httpd/htdocs/java/types_panel.class
|
||||
nfr/etc/httpd/htdocs/logo.html
|
||||
nfr/etc/httpd/htdocs/main.html
|
||||
nfr/etc/httpd/htdocs/navbar.html
|
||||
nfr/etc/httpd/htdocs/nfrarchive.html
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/advanced-user-guide/advanced-user-guide.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/advanced-user-guide/backends/backend_data_type_representation.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/advanced-user-guide/backends/backend_data_types.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/advanced-user-guide/backends/backends.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/advanced-user-guide/backends/creating-backends.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/advanced-user-guide/backends/creating-configuration.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/advanced-user-guide/backends/creating-data-types.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/advanced-user-guide/backends/creating-description.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/advanced-user-guide/backends/creating-mappings.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/advanced-user-guide/backends/primary-types.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/advanced-user-guide/backends/representations.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/advanced-user-guide/backends/secondary-types.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/advanced-user-guide/backends/understanding-data-types.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/advanced-user-guide/backends/understanding-mappings.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/advanced-user-guide/packages/creating-configuration.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/advanced-user-guide/packages/creating-packages.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/advanced-user-guide/packages/packages.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/getting-started/configuring.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/getting-started/finishing-configuration.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/getting-started/getting-started.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/getting-started/installing.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/getting-started/starting.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/getting-started/system-requirements.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/getting-started/upgrading.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/glossary/glossary.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/images/alert.gif
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/images/configure.gif
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/images/highlevel.fig
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/images/highlevel.gif
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/images/nfrlib/ablbnr.gif
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/images/nfrlib/ablbull1.gif
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/images/nfrlib/ablbull2.gif
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/images/nfrlib/ablbull3.gif
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/images/nfrlib/ablrule.gif
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/images/nfrlib/blbkgnd.jpg
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/images/nfrlib/blbnr.gif
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/images/nfrlib/blbull1.gif
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/images/nfrlib/blbull2.gif
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/images/nfrlib/blbull3.gif
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/images/nfrlib/blglb.gif
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/images/nfrlib/blhbh.gif
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/images/nfrlib/blhbp.gif
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/images/nfrlib/blhbs.gif
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/images/nfrlib/blhome.gif
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/images/nfrlib/blhomeh.gif
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/images/nfrlib/blhomep.gif
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/images/nfrlib/blhomes.gif
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/images/nfrlib/blnext.gif
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/images/nfrlib/blnexth.gif
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/images/nfrlib/blnextp.gif
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/images/nfrlib/blnexts.gif
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/images/nfrlib/blphb.gif
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/images/nfrlib/blphbp.gif
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/images/nfrlib/blprev.gif
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/images/nfrlib/blprevh.gif
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/images/nfrlib/blprevp.gif
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/images/nfrlib/blprevs.gif
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/images/nfrlib/blpvb.gif
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/images/nfrlib/blpvbp.gif
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/images/nfrlib/blrule.gif
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/images/nfrlib/blup.gif
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/images/nfrlib/bluph.gif
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/images/nfrlib/blupp.gif
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/images/nfrlib/blups.gif
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/images/nfrlib/blvbh.gif
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/images/nfrlib/blvbp.gif
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/images/nfrlib/blvbs.gif
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/images/packages.gif
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/index.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/more-info/more-info.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/nfr-legal.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/reference/backends/backend-data-type-representation.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/reference/backends/backend-data-types.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/reference/backends/backends.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/reference/command-line-options/alertd.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/reference/command-line-options/command-line-options.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/reference/command-line-options/nfrwatch.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/reference/command-line-options/rc.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/reference/command-line-options/spacemand.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/reference/file-formats/backend-cfg.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/reference/file-formats/fac_res-src.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/reference/file-formats/file-formats.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/reference/file-formats/gui-cf.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/reference/file-formats/nfr-conf.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/reference/file-formats/nfr_res-src.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/reference/file-formats/package-cfg.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/reference/file-formats/queue-cf.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/reference/file-formats/resource-files.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/reference/file-formats/spaceman-cf.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/reference/file-formats/type-map.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/reference/file-formats/usr_res-src.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/reference/gui-screens/alerts.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/reference/gui-screens/configure-alert.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/reference/gui-screens/configure-spaceman.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/reference/gui-screens/configure.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/reference/gui-screens/gui-screens.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/reference/gui-screens/message-configuration.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/reference/gui-screens/packages-configure.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/reference/gui-screens/packages-query.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/reference/gui-screens/packages.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/reference/n-code/data-types.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/reference/n-code/execution-model.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/reference/n-code/expressions.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/reference/n-code/filters.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/reference/n-code/functions/functions.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/reference/n-code/functions/funtion-definition.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/reference/n-code/language.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/reference/n-code/n-code.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/reference/n-code/statements.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/reference/n-code/tools.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/reference/n-code/triggers.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/reference/n-code/variables.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/reference/packages/mail.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/reference/packages/network.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/reference/packages/packages.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/reference/packages/services.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/reference/packages/web.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/reference/reference.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/user-guide/alerts/acknowledging-alerts.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/user-guide/alerts/alert-components.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/user-guide/alerts/alerts.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/user-guide/alerts/configuring-alert-destinations.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/user-guide/alerts/configuring-alert-messages.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/user-guide/alerts/configuring-alert-source.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/user-guide/alerts/enabling-alerts.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/user-guide/alerts/understanding-alerts.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/user-guide/alerts/viewing-alerts.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/user-guide/backends/backends.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/user-guide/backends/histogram.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/user-guide/backends/list.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/user-guide/backends/understanding-backends.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/user-guide/gui/exiting-gui.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/user-guide/gui/starting-gui.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/user-guide/gui/using-gui.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/user-guide/overview/architecture.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/user-guide/overview/benefits.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/user-guide/overview/need.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/user-guide/overview/overview.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/user-guide/queries/queries.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/user-guide/queries/running-queries.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/user-guide/queries/understanding-queries.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/user-guide/spaceman/configuring-spaceman.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/user-guide/spaceman/spaceman.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/user-guide/spaceman/starting-spaceman.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/user-guide/spaceman/understanding-spaceman.htm
|
||||
nfr/etc/httpd/htdocs/nfrlibrary/user-guide/user-guide.htm
|
||||
nfr/etc/javastrings/AbsoluteTime.str
|
||||
nfr/etc/javastrings/PackagesPanel.str
|
||||
nfr/etc/javastrings/QueryLoader.str
|
||||
nfr/etc/javastrings/QuerySaver.str
|
||||
nfr/etc/javastrings/RollPanel.str
|
||||
nfr/etc/javastrings/SpacemanCfgEditFrame.str
|
||||
nfr/etc/javastrings/SpacemanCfgEditPanel.str
|
||||
nfr/etc/javastrings/SpacemanCfgFrame.str
|
||||
nfr/etc/javastrings/SpacemanIO.str
|
||||
nfr/etc/javastrings/histogramc
|
||||
nfr/etc/javastrings/histogramq1
|
||||
nfr/etc/javastrings/listc
|
||||
nfr/etc/javastrings/listq1
|
||||
nfr/etc/javastrings/toplevel
|
||||
nfr/etc/maps/colors
|
||||
nfr/etc/nfr.conf
|
||||
nfr/etc/nfr.conf-orig
|
||||
nfr/etc/nfrd.cfg
|
||||
nfr/etc/nfrd.cfg-orig
|
||||
nfr/etc/resources/fac_res.src
|
||||
nfr/etc/resources/facilities.cf
|
||||
nfr/etc/resources/nfr/alert.res
|
||||
nfr/etc/resources/nfr/alertsrc.res
|
||||
nfr/etc/resources/nfr/res.h
|
||||
nfr/etc/resources/nfr/res.map
|
||||
nfr/etc/resources/nfr/strings.res
|
||||
nfr/etc/resources/nfr_res.src
|
||||
nfr/etc/resources/usr/alert.res
|
||||
nfr/etc/resources/usr/alertsrc.res
|
||||
nfr/etc/resources/usr/res.map
|
||||
nfr/etc/resources/usr/strings.res
|
||||
nfr/etc/resources/usr_res.src
|
||||
nfr/etc/spaceman.cf
|
||||
nfr/etc/start_nfr
|
||||
nfr/etc/start_nfrd
|
||||
nfr/etc/start_sys
|
||||
nfr/etc/stop_nfr
|
||||
nfr/etc/stop_nfrd
|
||||
nfr/etc/stop_sys
|
||||
nfr/etc/type-mapping.map
|
||||
nfr/library/library.cfg
|
||||
nfr/library/library/lineproto.cfg
|
||||
nfr/library/library/lineproto.nfr
|
||||
nfr/library/library/schema.cfg
|
||||
nfr/library/library/schema.nfr
|
||||
nfr/library/values.cfg
|
||||
nfr/library/values.nfr
|
||||
nfr/library/values.nfr-orig
|
||||
nfr/nfrd.log
|
||||
nfr/nfrstart.rc
|
||||
nfr/nfrstart.sh
|
||||
nfr/packages/mail.cfg
|
||||
nfr/packages/mail.nfr
|
||||
nfr/packages/mail/list.cfg
|
||||
nfr/packages/mail/list.desc
|
||||
nfr/packages/mail/list.nfr
|
||||
nfr/packages/mail/od.cfg
|
||||
nfr/packages/mail/od.nfr
|
||||
nfr/packages/network.cfg
|
||||
nfr/packages/network.nfr
|
||||
nfr/packages/network/arp.cfg
|
||||
nfr/packages/network/arp.desc
|
||||
nfr/packages/network/arp.nfr
|
||||
nfr/packages/network/dnssrv.cfg
|
||||
nfr/packages/network/dnssrv.desc
|
||||
nfr/packages/network/dnssrv.nfr
|
||||
nfr/packages/network/tcp.cfg
|
||||
nfr/packages/network/tcp.desc
|
||||
nfr/packages/network/tcp.nfr
|
||||
nfr/packages/network/tcppackets.cfg
|
||||
nfr/packages/network/tcppackets.desc
|
||||
nfr/packages/network/tcppackets.nfr
|
||||
nfr/packages/network/udp.cfg
|
||||
nfr/packages/network/udp.desc
|
||||
nfr/packages/network/udp.nfr
|
||||
nfr/packages/services.cfg
|
||||
nfr/packages/services.nfr
|
||||
nfr/packages/services/ftp.cfg
|
||||
nfr/packages/services/ftp.desc
|
||||
nfr/packages/services/ftp.nfr
|
||||
nfr/packages/services/ftp_hist.cfg
|
||||
nfr/packages/services/ftp_hist.desc
|
||||
nfr/packages/services/ftp_hist.nfr
|
||||
nfr/packages/services/rsh.cfg
|
||||
nfr/packages/services/rsh.desc
|
||||
nfr/packages/services/rsh.nfr
|
||||
nfr/packages/web.cfg
|
||||
nfr/packages/web/detect.cfg
|
||||
nfr/packages/web/detect.desc
|
||||
nfr/packages/web/detect.nfr
|
||||
nfr/packages/web/watchservers.cfg
|
||||
nfr/packages/web/watchservers.desc
|
||||
nfr/packages/web/watchservers.nfr
|
||||
@exec mkdir %D/nfr/etc/httpd/cgi-bin/tmp
|
||||
@exec mkdir %D/nfr/etc/httpd/logs
|
||||
@exec mkdir %D/nfr/etc/run
|
||||
@exec mkdir %D/nfr/etc/run/alertd
|
||||
@exec mkdir %D/nfr/etc/run/spacemand
|
||||
@exec mkdir %D/nfr/etc/spaceman
|
||||
@exec mkdir %D/nfr/tmp
|
||||
@exec NFRHOME=%D/nfr perl %D/nfr/createuser
|
||||
@exec NFRHOME=%D/nfr sh %D/nfr/configure-nfr
|
||||
@unexec rm -f /nfr
|
||||
@unexec rm -rf %D/nfr
|
||||
@unexec echo "Deleting NFR user and group..."
|
||||
@unexec rmuser nfr
|
12
net/nfr/scripts/configure
vendored
Executable file
12
net/nfr/scripts/configure
vendored
Executable file
@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $OpenBSD: configure,v 1.1.1.1 1998/07/04 20:52:54 marc Exp $
|
||||
#
|
||||
cd ${WRKSRC}
|
||||
cp ${FILESDIR}/Makefile-config include
|
||||
cp ${FILESDIR}/Makefile-openbsd include
|
||||
cp ${FILESDIR}/opts-openbsd.h include
|
||||
cp ${FILESDIR}/sys-openbsd.h include
|
||||
cp ${FILESDIR}/nfr-htpasswd.c web
|
||||
cp ${FILESDIR}/configure-nfr .
|
||||
bin/fixmake
|
Loading…
Reference in New Issue
Block a user