1d76947f3SHartmut Brandt# 2d76947f3SHartmut Brandt# Copyright (c) 2005-2006 The FreeBSD Project 3d76947f3SHartmut Brandt# All rights reserved. 4d76947f3SHartmut Brandt# Author: Victor Cruceru <soc-victor@freebsd.org> 5d76947f3SHartmut Brandt# 6d76947f3SHartmut Brandt# Redistribution of this software and documentation and use in source and 7d76947f3SHartmut Brandt# binary forms, with or without modification, are permitted provided that 8d76947f3SHartmut Brandt# the following conditions are met: 9d76947f3SHartmut Brandt# 10d76947f3SHartmut Brandt# 1. Redistributions of source code or documentation must retain the above 11d76947f3SHartmut Brandt# copyright notice, this list of conditions and the following disclaimer. 12d76947f3SHartmut Brandt# 2. Redistributions in binary form must reproduce the above copyright 13d76947f3SHartmut Brandt# notice, this list of conditions and the following disclaimer in the 14d76947f3SHartmut Brandt# documentation and/or other materials provided with the distribution. 15d76947f3SHartmut Brandt# 16d76947f3SHartmut Brandt# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 17d76947f3SHartmut Brandt# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18d76947f3SHartmut Brandt# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19d76947f3SHartmut Brandt# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 20d76947f3SHartmut Brandt# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21d76947f3SHartmut Brandt# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22d76947f3SHartmut Brandt# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23d76947f3SHartmut Brandt# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24d76947f3SHartmut Brandt# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25d76947f3SHartmut Brandt# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26d76947f3SHartmut Brandt# SUCH DAMAGE. 27d76947f3SHartmut Brandt# 28d76947f3SHartmut Brandt# 29d76947f3SHartmut Brandt 30*306324d7SEnji CooperLPRSRC= ${SRCTOP}/usr.sbin/lpr/common_source 31d76947f3SHartmut Brandt.PATH: ${LPRSRC} 32d76947f3SHartmut Brandt 33d76947f3SHartmut BrandtMOD= hostres 34d76947f3SHartmut BrandtSRCS= hostres_begemot.c \ 35d76947f3SHartmut Brandt hostres_device_tbl.c \ 36d76947f3SHartmut Brandt hostres_diskstorage_tbl.c \ 37d76947f3SHartmut Brandt hostres_fs_tbl.c \ 38d76947f3SHartmut Brandt hostres_network_tbl.c \ 39d76947f3SHartmut Brandt hostres_partition_tbl.c \ 40d76947f3SHartmut Brandt hostres_printer_tbl.c \ 41d76947f3SHartmut Brandt hostres_processor_tbl.c \ 42d76947f3SHartmut Brandt hostres_scalars.c \ 43d76947f3SHartmut Brandt hostres_snmp.c \ 44d76947f3SHartmut Brandt hostres_storage_tbl.c \ 45d76947f3SHartmut Brandt hostres_swinstalled_tbl.c \ 46d76947f3SHartmut Brandt hostres_swrun_tbl.c \ 47d76947f3SHartmut Brandt printcap.c 48d76947f3SHartmut Brandt 49d76947f3SHartmut Brandt#Not having NDEBUG defined will enable assertions and a lot of output on stderr 50d76947f3SHartmut BrandtCFLAGS+= -DNDEBUG -I${LPRSRC} 51d76947f3SHartmut BrandtXSYM= host hrStorageOther hrStorageRam hrStorageVirtualMemory \ 52d76947f3SHartmut Brandt hrStorageFixedDisk hrStorageRemovableDisk hrStorageFloppyDisk \ 53d76947f3SHartmut Brandt hrStorageCompactDisc hrStorageRamDisk hrStorageFlashMemory \ 54d76947f3SHartmut Brandt hrStorageNetworkDisk hrDeviceOther hrDeviceUnknown \ 55d76947f3SHartmut Brandt hrDeviceProcessor hrDeviceNetwork hrDevicePrinter \ 56d76947f3SHartmut Brandt hrDeviceDiskStorage hrDeviceVideo hrDeviceAudio \ 57d76947f3SHartmut Brandt hrDeviceCoprocessor hrDeviceKeyboard hrDeviceModem \ 58d76947f3SHartmut Brandt hrDeviceParallelPort hrDevicePointing \ 59d76947f3SHartmut Brandt hrDeviceSerialPort hrDeviceTape hrDeviceClock \ 60d76947f3SHartmut Brandt hrDeviceVolatileMemory hrDeviceNonVolatileMemory \ 61d76947f3SHartmut Brandt hrFSOther hrFSUnknown hrFSBerkeleyFFS hrFSSys5FS hrFSFat\ 62d76947f3SHartmut Brandt hrFSHPFS hrFSHFS hrFSMFS hrFSNTFS hrFSVNode hrFSJournaled \ 63d76947f3SHartmut Brandt hrFSiso9660 hrFSRockRidge hrFSNFS hrFSNetware hrFSAFS hrFSDFS \ 64d76947f3SHartmut Brandt hrFSAppleshare hrFSRFS hrFSDGCFS hrFSBFS hrFSFAT32 hrFSLinuxExt2 65d76947f3SHartmut Brandt 66d76947f3SHartmut BrandtMAN= snmp_hostres.3 67d76947f3SHartmut Brandt 68d76947f3SHartmut BrandtDEFS= ${MOD}_tree.def 69d76947f3SHartmut BrandtBMIBS= BEGEMOT-HOSTRES-MIB.txt 70d76947f3SHartmut Brandt 71c6db8143SBaptiste DaroussinLIBADD= kvm devinfo m geom memstat 72d76947f3SHartmut Brandt 73d76947f3SHartmut Brandt.include <bsd.snmpmod.mk> 74d76947f3SHartmut Brandt 752b4da8aaSMarcel Moolenaarprintcap.pico: printcap.c 76d76947f3SHartmut Brandt ${CC} ${PICFLAG} -DPIC ${CFLAGS:C/^-W.*//} -c ${.IMPSRC} -o ${.TARGET} 77