View | Details | Raw Unified | Return to bug 185187
Collapse All | Expand All

(-)Makefile (-26 / +12 lines)
Lines 11-20 Link Here
11
11
12
LICENSE=	GPLv2
12
LICENSE=	GPLv2
13
13
14
LIB_DEPENDS=	gd:${PORTSDIR}/graphics/gd
14
LIB_DEPENDS=	libgd.so:${PORTSDIR}/graphics/gd
15
RUN_DEPENDS=	${LOCALBASE}/libexec/nagios/check_nagios:${PORTSDIR}/net-mgmt/nagios-plugins
15
RUN_DEPENDS=	${LOCALBASE}/libexec/nagios/check_nagios:${PORTSDIR}/net-mgmt/nagios-plugins
16
16
17
USES=		iconv perl5
17
USES=		iconv perl5 uidfix
18
USE_PERL5=	build
18
USE_PERL5=	build
19
USE_AUTOTOOLS=	autoconf libltdl
19
USE_AUTOTOOLS=	autoconf libltdl
20
USE_PHP=	yes
20
USE_PHP=	yes
Lines 83-114 Link Here
83
EVENT_BROKER_DESC=	Enable event broker functionality
83
EVENT_BROKER_DESC=	Enable event broker functionality
84
UNHANDLED_HACK_DESC=	Display passive checks in unhandled queries
84
UNHANDLED_HACK_DESC=	Display passive checks in unhandled queries
85
85
86
NO_STAGE=	yes
86
OPTIONS_SUB=
87
.include <bsd.port.options.mk>
88
87
89
.if ${PORT_OPTIONS:MEMBEDDED_PERL}
88
EMBEDDED_PERL_USE=	perl5=run
90
USE_PERL5+=	run
89
EMBEDDED_PERL_CONFIGURE_ENABLE=	embedded-perl
91
CONFIGURE_ARGS+=--enable-embedded-perl \
90
EMBEDDED_PERL_CONFIGURE_WITH=	perlcache
92
		--with-perlcache
91
NANOSLEEP_CONFIGURE_ENABLE=	nanosleep
93
PLIST_SUB+=	EMBEDDED_PERL=""
92
EVENT_BROKER_CONFIGURE_ENABLE=	event-broker
94
.else
95
PLIST_SUB+=	EMBEDDED_PERL="@comment "
96
.endif
97
93
98
.if ${PORT_OPTIONS:MNANOSLEEP}
99
CONFIGURE_ARGS+=--enable-nanosleep
100
.endif
101
102
.if ${PORT_OPTIONS:MEVENT_BROKER}
103
CONFIGURE_ARGS+=--enable-event-broker
104
.else
105
CONFIGURE_ARGS+=--disable-event-broker
106
.endif
107
108
post-extract:
94
post-extract:
109
	@${MV} ${WRKDIR}/${PORTNAME} ${WRKSRC}
95
	@${MV} ${WRKDIR}/${PORTNAME} ${WRKSRC}
110
96
97
.include <bsd.port.options.mk>
98
111
post-patch:
99
post-patch:
100
	@${REINPLACE_CMD} -e '/^INSTALL_OPTS=/d' `${FIND} ${WRKSRC} -name Makefile.in`
112
.if ${PORT_OPTIONS:MUNHANDLED_HACK}
101
.if ${PORT_OPTIONS:MUNHANDLED_HACK}
113
	@${REINPLACE_CMD} -e 's#;serviceprops=42\&#;serviceprops=10\&#g' \
102
	@${REINPLACE_CMD} -e 's#;serviceprops=42\&#;serviceprops=10\&#g' \
114
		-e 's#;hostprops=42\"#;hostprops=10\"#g' ${WRKSRC}/html/side.php
103
		-e 's#;hostprops=42\"#;hostprops=10\"#g' ${WRKSRC}/html/side.php
Lines 115-123 Link Here
115
.endif
104
.endif
116
105
117
post-install:
106
post-install:
118
	@${CHMOD} 775 ${NAGIOSDIR} ${NAGIOSDIR}/archives ${NAGIOSDIR}/checkresults ${NAGIOSDIR}/rw
107
	@${MV} ${STAGEDIR}${PREFIX}/${NAGIOSWWWDIR}/config.inc.php ${STAGEDIR}${PREFIX}/${NAGIOSWWWDIR}/config.inc.php.sample
119
	@${CHOWN} ${NAGIOSUSER}:${NAGIOSGROUP} ${NAGIOSDIR} ${NAGIOSDIR}/archives ${NAGIOSDIR}/checkresults
120
	@${CHOWN} ${NAGIOSUSER}:${WWWGRP} ${NAGIOSDIR}/rw
121
	@${CAT} ${PKGMESSAGE}
122
108
123
.include <bsd.port.mk>
109
.include <bsd.port.mk>
(-)pkg-plist (-1 / +3 lines)
Lines 33-39 Link Here
33
%%NAGIOSWWWDIR%%/cgi-bin/summary.cgi
33
%%NAGIOSWWWDIR%%/cgi-bin/summary.cgi
34
%%NAGIOSWWWDIR%%/cgi-bin/tac.cgi
34
%%NAGIOSWWWDIR%%/cgi-bin/tac.cgi
35
%%NAGIOSWWWDIR%%/cgi-bin/trends.cgi
35
%%NAGIOSWWWDIR%%/cgi-bin/trends.cgi
36
%%NAGIOSWWWDIR%%/config.inc.php
36
@unexec if cmp -s %D/%%NAGIOSWWWDIR%%/config.inc.php.sample %D/%%NAGIOSWWWDIR%%/config.inc.php; then rm -f %D/%%NAGIOSWWWDIR%%/config.inc.php; fi
37
%%NAGIOSWWWDIR%%/config.inc.php.sample
38
@exec if [ ! -f %D/%%NAGIOSWWWDIR%%/config.inc.php ] ; then cp -p %D/%F %B/config.inc.php; fi
37
%%NAGIOSWWWDIR%%/contexthelp/A1.html
39
%%NAGIOSWWWDIR%%/contexthelp/A1.html
38
%%NAGIOSWWWDIR%%/contexthelp/A2.html
40
%%NAGIOSWWWDIR%%/contexthelp/A2.html
39
%%NAGIOSWWWDIR%%/contexthelp/A3.html
41
%%NAGIOSWWWDIR%%/contexthelp/A3.html

Return to bug 185187