blob: 74beea439a12d063893dc359475bd29b6800d92b (
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# $FreeBSD$
PANDORA_VERSION= 5.1
PANDORA_LICENSE= GPLv2
PANDORA_LICENSE_FILE= ${WRKSRC}/COPYING
PANDORA_SPOOLDIR?= /var/spool/pandora
PANDORA_LOGDIR?= /var/log/pandora
PANDORA_ETCDIR?= ${PREFIX}/etc/pandora
PANDORA_HOMEDIR?= ${PANDORA_ETCDIR}/home
PANDORA_INSTALLER= ${PORTNAME}_installer
PANDORA_INSTALLER_ARGS= --install
PORTVERSION= ${PANDORA_VERSION:C/((SP[0-9]*)?)$/.0\1/}
MASTER_SITES?= SF/pandora/Pandora%20FMS%20${PANDORA_VERSION}/Final/Tarball
.if ${PORTNAME} == "pandora_agent"
DISTNAME= pandorafms_agent_unix-${PANDORA_VERSION}
.else
DISTNAME= ${PORTNAME:S/pandora_/pandorafms_/}-${PANDORA_VERSION}
.endif
DIST_SUBDIR= pandora
NO_BUILD= yes
USERS= pandora
GROUPS= pandora
ETCDIR?= ${PANDORA_ETCDIR}
SPOOLDIR?= ${PANDORA_SPOOLDIR}
LOGDIR?= ${PANDORA_LOGDIR}
HOMEDIR?= ${PANDORA_HOMEDIR}
PLIST_SUB+= SPOOLDIR="${PANDORA_SPOOLDIR}" LOGDIR="${PANDORA_LOGDIR}" \
USE_SPOOL_IN=${USE_SPOOL_IN} USE_SPOOL_OUT=${USE_SPOOL_OUT} \
USE_LOGDIR=${USE_LOGDIR}
SUB_LIST+= PANDORA_VERSION="${PANDORA_VERSION}"
PLIST= ${WRKDIR}/PLIST
PORTDOCS?= AUTHORS ChangeLog
.if ${PORTNAME} == "pandora_server"
USE_LOGDIR= ""
USE_SPOOL_IN= ""
USE_SPOOL_OUT= "@comment "
.elif ${PORTNAME} == "pandora_console"
USE_LOGDIR= "@comment "
USE_SPOOL_IN= ""
USE_SPOOL_OUT= "@comment "
PANDORA_INSTALLER= pandora_console_install
.elif ${PORTNAME} == "pandora_agent"
USE_LOGDIR= ""
USE_SPOOL_IN= "@comment "
USE_SPOOL_OUT= ""
.endif
.if ${PORTNAME} == "pandora_agent"
post-extract:
@${MV} ${WRKDIR}/unix ${WRKSRC}
.else
post-extract:
@${MV} ${WRKDIR}/${PORTNAME} ${WRKSRC}
.endif
pre-install:
@${CAT} ${PKGDIR}/../pandorafms_server/pkg-plist.spool > ${PLIST}
@${CAT} ${PKGDIR}/pkg-plist >> ${PLIST}
do-install:
@cd ${WRKSRC} && ${SH} ${PANDORA_INSTALLER} ${PANDORA_INSTALLER_ARGS}
|