freebsd-ports/net-mgmt/icinga-core/Makefile.common
Mathieu Arnold 8d6597e0bb Remove ${PORTSDIR}/ from dependencies, categories m, n, o, and p.
With hat:	portmgr
Sponsored by:	Absolight
2016-04-01 14:16:16 +00:00

70 lines
1.8 KiB
Text

# $FreeBSD$
PORTVERSION= 1.13.3
CATEGORIES= net-mgmt
MASTER_SITES= https://github.com/Icinga/${PORTNAME}-core/releases/download/v${PORTVERSION}/
MAINTAINER= lme@FreeBSD.org
LICENSE= GPLv2
LIB_DEPENDS+= libltdl.so:devel/libltdl
USES= cpe gmake perl5
GNU_CONFIGURE= yes
ICINGAUSER?= icinga
ICINGAGROUP?= icinga
USERS= ${ICINGAUSER}
GROUPS= ${ICINGAGROUP}
ICINGADIR?= /var/spool/icinga
ICINGALOGDIR?= /var/log/icinga
ICINGAWWWDIR?= www/icinga
ICINGAHTMURL?= /icinga
ICINGACGIURL?= ${ICINGAHTMURL}/cgi-bin
ETCDIR= ${PREFIX}/etc/icinga
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS= --with-command-user=${ICINGAUSER} \
--with-command-group=${WWWGRP} \
--with-icinga-user=${ICINGAUSER} \
--with-icinga-group=${ICINGAGROUP} \
--with-htmurl=${ICINGAHTMURL} \
--with-cgiurl=${ICINGACGIURL} \
--sbindir=${PREFIX}/${ICINGAWWWDIR}/cgi-bin \
--datarootdir=${PREFIX}/${ICINGAWWWDIR} \
--datadir=${PREFIX}/${ICINGAWWWDIR} \
--sysconfdir=${PREFIX}/etc/icinga \
--localstatedir=${ICINGADIR} \
--with-checkresult-dir=${ICINGADIR}/checkresults \
--libexecdir=${PREFIX}/libexec/icinga \
--with-plugin-dir=${LOCALBASE}/libexec/nagios \
--with-log-dir=${ICINGALOGDIR} \
--with-httpd-conf=${EXAMPLESDIR}/apache2 \
--enable-event-broker \
--enable-nanosleep \
ac_cv_lib_iconv_main=no
CONFIGURE_ENV= PERL=${PERL} \
HOME=${WRKDIR} # prevent creation of .rnd file
MAKE_ARGS= INSTALL_OPTS= INSTALL_OPTS_WEB= COMMAND_OPTS=
PLIST_SUB= ICINGADIR=${ICINGADIR} \
ICINGALOGDIR=${ICINGALOGDIR} \
ICINGAWWWDIR=${ICINGAWWWDIR} \
ICINGAUSER=${ICINGAUSER} \
ICINGAGROUP=${ICINGAGROUP} \
ICINGAHTMURL=${ICINGAHTMURL} \
ICINGACGIURL=${ICINGACGIURL} \
WWWGRP=${WWWGRP}
SUB_FILES= pkg-message
# XXX: Don't remove PREFIX from SUB_LIST here.
SUB_LIST= PREFIX=${PREFIX} \
${PLIST_SUB}