# $OpenBSD: Makefile,v 1.15 2011/03/28 16:42:54 sthen Exp $ COMMENT = console interface for nagios DISTNAME = cnagios-0.29 REVISION = 0 CATEGORIES = net HOMEPAGE = http://noc.hep.wisc.edu/cnagios.txt MAINTAINER= Simon Kuhnle WANTLIB = c perl util curses m # ISC PERMIT_PACKAGE_CDROM = Yes PERMIT_PACKAGE_FTP = Yes PERMIT_DISTFILES_CDROM =Yes PERMIT_DISTFILES_FTP = Yes MASTER_SITES = ftp://noc.hep.wisc.edu/src/cnagios/ \ ftp://noc.hep.wisc.edu/src/cnagios/old-versions/ NO_REGRESS = Yes USE_GROFF = Yes RUN_DEPENDS = net/nagios/nagios>=3.0 CONFIGURE_STYLE = gnu CONFIGURE_ARGS = --with-nagios-data=3 \ --with-etc-dir="${SYSCONFDIR}/cnagios" \ --with-var-dir="/var/nagios" \ --with-status-file="/var/nagios/status.dat" MODGNU_CONFIG_GUESS_DIRS=${WRKSRC}/config ALL_TARGET = cnagios do-install: $(INSTALL_PROGRAM) $(WRKSRC)/cnagios ${PREFIX}/bin/ $(INSTALL_DATA_DIR) ${PREFIX}/share/doc/cnagios $(INSTALL_DATA) $(WRKSRC)/cnagios.help ${PREFIX}/share/doc/cnagios/ $(INSTALL_DATA) $(WRKSRC)/README ${PREFIX}/share/doc/cnagios/ @perl -pi -e 's,/usr/local/nagios/etc,${SYSCONFDIR}/cnagios,g;' \ -e 's,/usr/local/nagios/bin,${TRUEPREFIX}/bin,' \ ${PREFIX}/share/doc/cnagios/README $(INSTALL_DATA_DIR) ${PREFIX}/share/examples/cnagios $(INSTALL_SCRIPT) $(WRKSRC)/cnagios.pl ${PREFIX}/share/examples/cnagios $(INSTALL_SCRIPT) $(WRKSRC)/cnagiosrc ${PREFIX}/share/examples/cnagios $(INSTALL_MAN) $(WRKSRC)/cnagios.1 ${PREFIX}/man/man1 .include