=================================================================== RCS file: /cvs/ports/www/pnp4nagios/Attic/Makefile,v retrieving revision 1.1 retrieving revision 1.6 diff -u -r1.1 -r1.6 --- ports/www/pnp4nagios/Attic/Makefile 2016/02/04 22:05:43 1.1 +++ ports/www/pnp4nagios/Attic/Makefile 2016/02/08 22:31:55 1.6 @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.1 2016/02/04 22:05:43 kirby Exp $ +# $OpenBSD: Makefile,v 1.6 2016/02/08 22:31:55 kirby Exp $ # #SHARED_ONLY = ??? @@ -25,41 +25,46 @@ MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=pnp4nagios/} -#MODULES = ??? +MODULES = lang/php BUILD_DEPENDS = net/rrdtool -RUN_DEPENDS-main = net/rrdtool +RUN_DEPENDS-main = net/icinga/core \ + net/rrdtool +RUN_DEPENDS-cgi = lang/php/${MODPHP_VERSION},-gd \ + www/pnp4nagios,-main #LIB_DEPENDS = ??? -#MAKE_FLAGS = ??? -#MAKE_ENV = INSTALL_OPTS="-o roog -g bin" -FAKE_FLAGS = INSTALL_OPTS="-o roog -g bin" +FAKE_FLAGS = INSTALL_OPTS="-o roog -g bin" \ + SYSCONFDIR=${PREFIX}/share/examples/pnp4nagios/ -#SEPARATE_BUILD = Yes (build in a directory other than WRKSRC) -#SEPARATE_BUILD = flavored (distinct flavors may share a common WRKSRC) -#USE_GROFF = Yes -#USE_LIBTOOL= gnu +SYSCONFDIR = ${BASESYSCONFDIR}/pnp4nagios/ +LOCALSTATEDIR = ${BASELOCALSTATEDIR}/pnp4nagios + CONFIGURE_STYLE = gnu -CONFIGURE_ARGS += ${CONFIGURE_SHARED} \ +CONFIGURE_ARGS += --with-nagios-user=_icinga --with-nagios-group=_icinga \ --datarootdir=/var/www/pnp4nagios/ \ --libexecdir=${PREFIX}/libexec/nagios \ --with-perfdata-dir=/var/www/pnp4nagios/rrd \ - --with-perfdata-spool-dir=/var/spool/pnp4nagios \ + --with-perfdata-spool-dir=/var/spool/icinga \ --with-perfdata-logfile=/var/log/pnp4nagios.log -#CONFIGURE_ENV = ??? MULTI_PACKAGES = -main -cgi -PREFIX-cgi = /var/www +PREFIX-cgi = ${VARBASE}/www NO_TEST = Yes PKG_ARCH-cgi = * -#ALL_TARGET = ??? -#TEST_TARGET = ??? +INSTALL_TARGET = install install-config # fix broken symlink in tarbal post-extract: ln -sf ${WRKSRC}/share/pnp/documents/en_US/dwnld.html \ ${WRKSRC}/share/pnp/documents/de_DE/dwnld.html +post-install: + ${INSTALL_DATA_DIR} ${WRKINST}/${VARBASE}/www/conf/modules.sample/ + ${INSTALL_DATA} ${WRKSRC}/sample-config/httpd.conf \ + ${WRKINST}/${VARBASE}/www/conf/modules.sample/pnp4nagios.conf.dist + ${INSTALL_SCRIPT} ${WRKSRC}/scripts/verify_pnp_config_v2.pl \ + ${PREFIX}/libexec/nagios/verify_pnp_config.pl .include