cb9eb050bc
port: - fix icinga-api RUN_DEPENDS (idoutils need not be on the same machine but it does need php). - better log_archive_path - we're building with embedded perl to make it easy to use if wanted, but it's not suitable with all scripts, so in the default configuration set use_embedded_perl_implicitly=0
65 lines
2.0 KiB
Makefile
65 lines
2.0 KiB
Makefile
# $OpenBSD: Makefile,v 1.3 2011/03/31 10:25:25 sthen Exp $
|
|
|
|
# Work in progress. Not yet linked to the build.
|
|
|
|
COMMENT = web UI for icinga
|
|
DISTNAME = icinga-web-$V
|
|
|
|
BUILD_DEPENDS = icinga-api-$V:net/icinga/core,-api
|
|
RUN_DEPENDS = www/pear \
|
|
www/php5/core \
|
|
www/php5/extensions,-ldap \
|
|
www/php5/extensions,-pdo_mysql \
|
|
www/php5/extensions,-xsl \
|
|
icinga-api-$V:net/icinga/core,-api
|
|
# Optional php extensions: gd soap xmlrpc
|
|
# Does this work with pgo_pgsql? So far haven't worked out how.
|
|
|
|
MAKE_FLAGS = PREFIX=/var/www/icinga-web
|
|
FAKE_FLAGS = CFGDIR=${TRUEPREFIX}/share/examples/icinga
|
|
|
|
CONFIGURE_STYLE = gnu
|
|
CONFIGURE_ARGS += \
|
|
--datarootdir=/var/www \
|
|
--with-icinga-api=/var/www/icinga-api \
|
|
--localstatedir=/var/icinga \
|
|
--sbindir=/var/www/cgi-bin/icinga \
|
|
--with-web-apache-path=/var/www/conf/modules.sample \
|
|
--with-api-cmd-file=/var/icinga/rw/icinga.cmd \
|
|
--with-web-user=www \
|
|
--with-web-group=www \
|
|
--with-bin-user=${SHAREOWN} \
|
|
--with-bin-group=${SHAREGRP} \
|
|
--with-db-socket=/var/run/mysql/mysql.sock
|
|
|
|
# --with-db-type=DBTYPE Type of dbms (default mysql)
|
|
# --with-db-host=HOST Host of dbms (default localhost)
|
|
# --with-db-port=PORT Port of the dbms (default 3306)
|
|
# --with-api-type=APICON API type (default CONNECTION_IDO)
|
|
# --with-api-subtype=TYPE DB driver or network connection
|
|
|
|
NO_REGRESS = Yes
|
|
NO_BUILD = Yes
|
|
|
|
INSTALL_TARGET = install install-apache-config
|
|
|
|
PREFIX = /var/www
|
|
|
|
pre-install:
|
|
${INSTALL_DATA_DIR} ${WRKINST}/var/www/icinga-web
|
|
${INSTALL_DATA_DIR} ${WRKINST}/var/www/conf/modules.sample
|
|
|
|
post-install:
|
|
find ${WRKINST} -name '*.orig' -print0 | xargs -0r rm
|
|
cd ${PREFIX}; mv app bin doc etc lib pub icinga-web/ ; \
|
|
mv conf/modules.sample/icinga-web.conf \
|
|
conf/modules.sample/icinga-web.conf.dist
|
|
find ${PREFIX} -name '*.site.xml' -exec mv {} {}.dist \;
|
|
${INSTALL_DATA_DIR} ${WRKINST}/var/www/icinga-web/etc/schema/updates
|
|
cd ${WRKSRC}/etc/schema; \
|
|
${INSTALL_DATA} *sql ${WRKINST}/var/www/icinga-web/etc/schema; \
|
|
${INSTALL_DATA} updates/*sql \
|
|
${WRKINST}/var/www/icinga-web/etc/schema/updates
|
|
|
|
.include <bsd.port.mk>
|