blob: c2fdfecc733c0831989ddc058251f886aa0cefca (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
PORTNAME= icingadb
DISTVERSIONPREFIX= v
DISTVERSION= 1.1.1
PORTREVISION= 10
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})
${INSTALL_DATA} ${WRKSRC}/config.example.yml ${STAGEDIR}${ETCDIR}/config.yml.sample
.include <bsd.port.mk>
|