head	1.2;
access;
symbols
	RELENG_5_2_1_RELEASE:1.1
	RELENG_5_2_0_RELEASE:1.1
	RELENG_5_2:1.1.0.2
	RELENG_5_2_BP:1.1;
locks; strict;
comment	@# @;


1.2
date	2004.01.23.16.22.49;	author harti;	state dead;
branches;
next	1.1;

1.1
date	2003.11.10.09.17.33;	author harti;	state Exp;
branches;
next	;


desc
@@


1.2
log
@Create the OID and tree files while building the modules and the daemon
instead of creating them by hand and storing them in the CVS tree. Add
gensnmptree to the bootstrap tools (it is used to generated these files).
This simplifies the update procedure.

Submitted by:	ru
@
text
@#!/bin/sh
# $FreeBSD: src/lib/libbsnmp/modules/snmp_mibII/genfiles,v 1.1 2003/11/10 09:17:33 harti Exp $

CONTRIB="../../../../contrib/bsnmp/snmp_mibII"

XSYM="ipAddrTable ifTable ifRcvAddressEntry ifMIB ipMIB tcpMIB udpMIB	\
	ipForward ifIndex linkDown linkUp"

gensnmptree <${CONTRIB}/mibII_tree.def -e ${XSYM} >mibII_oid.h
gensnmptree <${CONTRIB}/mibII_tree.def -l -p mibII_

for i in mibII_tree.h mibII_tree.c mibII_oid.h ; do
	ex $i <<'EOF'
0a
/* $FreeBSD: src/lib/libbsnmp/modules/snmp_mibII/genfiles,v 1.1 2003/11/10 09:17:33 harti Exp $ */
/* generated file, don't edit - use ./genfiles */
.
wq
EOF
done
@


1.1
log
@Add build infrastructure for libbsnmp and the modules. Add the
netgraph module for the SNMP daemon.
@
text
@d2 1
a2 1
# $FreeBSD$
d15 1
a15 1
/* $FreeBSD$ */
@

