From af5e40770e093cc5b0a1845f2f7b011676b3c709 Mon Sep 17 00:00:00 2001 From: Emmanuel Vadot Date: Sat, 19 Jun 2021 17:50:03 +0200 Subject: [PATCH] pkgbase: Put the mibs and defs in the bnsmp package Differential Revision: https://reviews.freebsd.org/D30756 Sponsored by: Diablotin Systems --- lib/libbsnmp/libbsnmp/Makefile | 1 + share/mk/bsd.snmpmod.mk | 3 +++ share/snmp/mibs/Makefile | 2 ++ usr.sbin/bsnmpd/bsnmpd/Makefile | 3 +++ 4 files changed, 9 insertions(+) diff --git a/lib/libbsnmp/libbsnmp/Makefile b/lib/libbsnmp/libbsnmp/Makefile index aac554b3bc74..d4c48a879303 100644 --- a/lib/libbsnmp/libbsnmp/Makefile +++ b/lib/libbsnmp/libbsnmp/Makefile @@ -137,5 +137,6 @@ MLINKS+= bsnmplib.3 snmp_value_parse.3 FILESGROUPS+= DEFS DEFS= tc.def DEFSDIR?= ${SHAREDIR}/snmp/defs +DEFSPACKAGE= bsnmp .include diff --git a/share/mk/bsd.snmpmod.mk b/share/mk/bsd.snmpmod.mk index 6ecbbcf09bf7..7956b89382b5 100644 --- a/share/mk/bsd.snmpmod.mk +++ b/share/mk/bsd.snmpmod.mk @@ -32,6 +32,9 @@ FILESGROUPS+= BMIBS BMIBSDIR?= ${SHAREDIR}/snmp/mibs .endif +DEFSPACKAGE= bsnmp +BMIBSPACKAGE= bsnmp + .if !target(smilint) && !empty(BMIBS) LOCALBASE?= /usr/local diff --git a/share/snmp/mibs/Makefile b/share/snmp/mibs/Makefile index 8bee4c85624e..e4cc1d1d6fb0 100644 --- a/share/snmp/mibs/Makefile +++ b/share/snmp/mibs/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +PACKAGE= bsnmp + FILES= FREEBSD-MIB.txt FILESDIR= ${SHAREDIR}/snmp/mibs diff --git a/usr.sbin/bsnmpd/bsnmpd/Makefile b/usr.sbin/bsnmpd/bsnmpd/Makefile index 8555eaee67b8..05d617279ff0 100644 --- a/usr.sbin/bsnmpd/bsnmpd/Makefile +++ b/usr.sbin/bsnmpd/bsnmpd/Makefile @@ -120,6 +120,9 @@ MLINKS+= snmpmod.3 usm_user.3 FILESGROUPS= BMIBS DEFS +DEFSPACKAGE= bsnmp +BMIBSPACKAGE= bsnmp + BMIBS= FOKUS-MIB.txt BEGEMOT-MIB.txt BEGEMOT-SNMPD.txt BMIBSDIR= ${SHAREDIR}/snmp/mibs DEFS= tree.def