- Update to 1.0

PR:		ports/171283
Submitted by:	Geoffroy Desvernay <dgeo@centrale-marseille.fr> (maintainer)
Approved by:	flo (mentor)
This commit is contained in:
Jase Thew 2012-09-19 23:51:58 +00:00
parent 1a9423fff2
commit db99b40821
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=304552
4 changed files with 1731 additions and 1487 deletions

View file

@ -6,7 +6,7 @@
#
PORTNAME= netdisco-mibs
PORTVERSION= 0.9
PORTVERSION= 1.0
CATEGORIES= net-mgmt
MASTER_SITES= SF/netdisco/netdisco-mibs/${PORTVERSION}
@ -20,7 +20,7 @@ NO_BUILD= yes
do-install:
${MKDIR} ${DATADIR}
(cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${DATADIR})
${INSTALL_SCRIPT} ${FILESDIR}/mkindex ${DATADIR}
. for mibdir in ${MIBDIRS}
(cd ${DATADIR}/${mibdir} && ${GREP} 'DEFINITIONS ::= BEGIN' *.* | ${SED} 's/\(.*\..*\):[[:space:]]*\(.*\) DEFINITIONS.*$$/\2 \1/' > .index)
. endfor

View file

@ -1,2 +1,2 @@
SHA256 (netdisco-mibs-0.9.tar.gz) = 4e9f447e950b1e0d29c34803d58b452b40896ffb5cd1fdc93906dfd00a25139b
SIZE (netdisco-mibs-0.9.tar.gz) = 13129989
SHA256 (netdisco-mibs-1.0.tar.gz) = c93c744e80a680f57177aa0cf5c9786b344b02c75f2949c22806a229ae8fffd6
SIZE (netdisco-mibs-1.0.tar.gz) = 14708557

View file

@ -0,0 +1,27 @@
#!/bin/sh
# mkindex - Makes index of MIBS
# $Id$
FILE=mib_index.txt
export LC_ALL=C
echo "Creating $FILE"
echo "MIB Index" > $FILE
# refresh index files
for d in `find -L . -mindepth 1 -type d -not -name CVS | grep -v .git | sort`; do
snmptranslate -M$d sysName > /dev/null 2>&1
done
# sort contents of index files
for i in `find -L . -mindepth 1 -type f -name .index`; do
sort -dfs -o $i $i
done
# Add contents of each .index to our index
for f in `find -L . -name .index | sort`; do
echo "" >> $FILE
echo $f >> $FILE
cat $f >> $FILE
echo "" >> $FILE
done

File diff suppressed because it is too large Load diff