aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/xymon-client/Makefile
blob: 23f733b956bbb5cd1eb8f153ca114abdc357cb38 (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
# $FreeBSD$

PORTNAME=   xymon
PORTVERSION=    4.3.11
CATEGORIES= net-mgmt www
MASTER_SITES=   SF/xymon/Xymon/${PORTVERSION}
PKGNAMESUFFIX=  -client${PKGNAMESUFFIX2}
DIST_SUBDIR=    repacked

MAINTAINER= feld@feld.me
COMMENT=    System for monitoring servers and networks - Client

LICENSE=    GPLv2

USERS=  xymon
GROUPS= xymon

# Options
XYMONUSER?= xymon
XYMONHOSTIP?=   127.0.0.1

MAKE_JOBS_UNSAFE=   yes
USE_GMAKE=  yes
CONFIGURE_ENV=  MAKE=gmake
MAKE_ENV+=  XYMONUSER="${XYMONUSER}"
MAKE_ENV+=  XYMONHOSTIP="${XYMONHOSTIP}"
USE_RC_SUBR=    xymon-client
PLIST_SUB+= XYMONUSER="${XYMONUSER}"
CONFIG_FILES=   clientlaunch.cfg xymonclient.cfg localclient.cfg

# Configure script is interactive
do-configure:
    ${CP} ${FILESDIR}/Makefile ${WRKSRC}/

post-install:
.for i in ${CONFIG_FILES}
    ${CP} -np ${WWWDIR}/client/etc/${i}.DIST \
        ${WWWDIR}/client/etc/${i}
.endfor

.include <bsd.port.mk>