382afb1e13
While on it: - Properly strip the resulting binary - Pet portlint PR: 200249 Submitted by: danny@dannywarren.com Approved by: alexander.4mail@gmail.com (maintainer)
36 lines
845 B
Makefile
36 lines
845 B
Makefile
# Created by: Alexander Y. Grigoryev <alexander.4mail@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= cnagios
|
|
PORTVERSION= 0.31
|
|
PORTREVISION= 1
|
|
CATEGORIES= net-mgmt
|
|
|
|
MAINTAINER= alexander.4mail@gmail.com
|
|
COMMENT= Curses-based interface for nagios
|
|
|
|
LICENSE= ISCL
|
|
|
|
RUN_DEPENDS= nagios>=3.0:${PORTSDIR}/net-mgmt/nagios
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= dannywarren
|
|
|
|
NAGIOSDIR?= /var/spool/nagios
|
|
ETCDIR= ${PREFIX}/etc/nagios
|
|
GNU_CONFIGURE= YES
|
|
CONFIGURE_ARGS= --with-etc-dir="${ETCDIR}" \
|
|
--with-var-dir="${NAGIOSDIR}" \
|
|
--with-status-file="${NAGIOSDIR}/status.dat" \
|
|
--with-nagios-data=3
|
|
USES= perl5
|
|
ALL_TARGET= cnagios
|
|
|
|
post-patch:
|
|
# check in next relase if version match, and adjust/remove the next line
|
|
${REINPLACE_CMD} -e 's/0.30/${PORTVERSION}/' ${WRKSRC}/version.h
|
|
|
|
post-install:
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/cnagios
|
|
|
|
.include <bsd.port.mk>
|