1b200b052d
ok (and advice about the right way to do this) naddy.
46 lines
1.3 KiB
Makefile
46 lines
1.3 KiB
Makefile
# $OpenBSD: Makefile,v 1.2 2008/02/23 18:06:51 sthen Exp $
|
|
|
|
COMMENT = console interface for nagios
|
|
|
|
DISTNAME = cnagios-0.21
|
|
CATEGORIES = net/nagios
|
|
|
|
HOMEPAGE = http://noc.hep.wisc.edu/cnagios.html
|
|
|
|
MAINTAINER = Stuart Henderson <sthen@openbsd.org>
|
|
|
|
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/pub/src/cnagios/
|
|
|
|
NO_REGRESS = Yes
|
|
|
|
RUN_DEPENDS = ::net/nagios/nagios
|
|
CONFIGURE_STYLE = gnu
|
|
CONFIGURE_ARGS = --with-nagios-data=2 \
|
|
--with-etc-dir="${SYSCONFDIR}/cnagios" \
|
|
--with-var-dir="/var/nagios"
|
|
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
|
|
|
|
.include <bsd.port.mk>
|