=================================================================== RCS file: /cvs/ports/www/pnp4nagios/Attic/Makefile,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- ports/www/pnp4nagios/Attic/Makefile 2016/02/04 22:05:43 1.1 +++ ports/www/pnp4nagios/Attic/Makefile 2016/02/05 11:25:52 1.2 @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.1 2016/02/04 22:05:43 kirby Exp $ +# $OpenBSD: Makefile,v 1.2 2016/02/05 11:25:52 kirby Exp $ # #SHARED_ONLY = ??? @@ -25,19 +25,19 @@ MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=pnp4nagios/} -#MODULES = ??? +MODULES = lang/php BUILD_DEPENDS = net/rrdtool RUN_DEPENDS-main = net/rrdtool +RUN_DEPENDS-cgi = lang/php/${MODPHP_VERSION},-gd #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/pnp4nagios/etc/ -#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/ + CONFIGURE_STYLE = gnu CONFIGURE_ARGS += ${CONFIGURE_SHARED} \ --datarootdir=/var/www/pnp4nagios/ \ @@ -45,21 +45,25 @@ --with-perfdata-dir=/var/www/pnp4nagios/rrd \ --with-perfdata-spool-dir=/var/spool/pnp4nagios \ --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 = ??? +INSTALL_TARGET = install install-config #TEST_TARGET = ??? # 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 .include