diff --git a/net-mgmt/icingadb/Makefile b/net-mgmt/icingadb/Makefile index b1ad81f33784..fa83e0fdbc78 100644 --- a/net-mgmt/icingadb/Makefile +++ b/net-mgmt/icingadb/Makefile @@ -1,49 +1,50 @@ PORTNAME= icingadb +PORTREVISION= 1 DISTVERSIONPREFIX= v DISTVERSION= 1.2.0 CATEGORIES= net-mgmt MAINTAINER= dvl@FreeBSD.org COMMENT= Publish, synchronize, and visualize Icinga data WWW= https://icinga.com/docs/icinga-db/latest/doc/02-Installation/ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/LICENSE USES= go:modules pgsql WANT_PGSQL= contrib USE_RC_SUBR= icingadb PLIST_SUB= PORTNAME=${PORTNAME} # As copied from net-mgmt/icinga2 ICINGA2USER?= icinga ICINGA2GROUP?= icinga USERS= ${ICINGA2USER} GROUPS= ${ICINGA2GROUP} SUB_LIST= ICINGA2GROUP=${ICINGA2GROUP} \ ICINGA2USER=${ICINGA2USER} USE_GITHUB= yes GH_ACCOUNT= Icinga GH_PROJECT= icingadb GO_MODULE= github.com/icinga/icingadb GO_TARGET= ./cmd/icingadb SUB_LIST+= ICINGA2USER=${ICINGA2USER} \ PREFIX=${PREFIX} post-patch: @${REINPLACE_CMD} -e 's|%%PREFIX|${PREFIX}|g' ${WRKSRC}/pkg/config/config.go post-install: ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${MKDIR} ${STAGEDIR}${ETCDIR} - (cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}) + (cd ${WRKSRC} && ${COPYTREE_SHARE} "schema" ${STAGEDIR}${EXAMPLESDIR}) ${INSTALL_DATA} ${WRKSRC}/config.example.yml ${STAGEDIR}${ETCDIR}/config.yml.sample .include diff --git a/net-mgmt/icingadb/pkg-plist b/net-mgmt/icingadb/pkg-plist index dd7f07a70e47..2f3a3e154b7c 100644 --- a/net-mgmt/icingadb/pkg-plist +++ b/net-mgmt/icingadb/pkg-plist @@ -1,8 +1,12 @@ bin/%%PORTNAME%% @sample(root,wheel,0640) etc/%%PORTNAME%%/config.yml.sample +%%EXAMPLESDIR%%/schema/pgsql/upgrades/optional/1.2-0-history.sql %%EXAMPLESDIR%%/schema/pgsql/upgrades/1.1.1.sql +%%EXAMPLESDIR%%/schema/pgsql/upgrades/1.2.0.sql %%EXAMPLESDIR%%/schema/pgsql/schema.sql %%EXAMPLESDIR%%/schema/mysql/schema.sql +%%EXAMPLESDIR%%/schema/mysql/upgrades/optional/1.2.0-history.sql %%EXAMPLESDIR%%/schema/mysql/upgrades/1.1.1.sql %%EXAMPLESDIR%%/schema/mysql/upgrades/1.0.0.sql %%EXAMPLESDIR%%/schema/mysql/upgrades/1.0.0-rc2.sql +%%EXAMPLESDIR%%/schema/mysql/upgrades/1.2.0.sql