blob: 4a3c33555726800d6add3d524256a994d3f05a19 (
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
|
# Created by: Ulrich Spoerlein <uspoerlein@gmail.com>
# $FreeBSD$
PORTNAME= symon
PORTVERSION= 2.87
CATEGORIES= sysutils
MASTER_SITES= http://wpd.home.xs4all.nl/symon/philes/ \
LOCAL/uqs
MAINTAINER= uqs@FreeBSD.org
COMMENT= Performance and information monitoring tool
SUB_FILES= pkg-message
USES= perl5 shebangfix
SHEBANG_FILES= client/getsymonitem.pl
USE_PERL5= build
MAKE_JOBS_UNSAFE= yes
USERS= _symon
GROUPS= _symon
# Synonym for WITHOUT_SYMUX
.if defined(WITHOUT_RRD)
WITHOUT_SYMUX= yes
.endif
.if !defined(WITHOUT_SYMUX)
LIB_DEPENDS+= librrd.so:databases/rrdtool
.endif
.if defined(WITHOUT_SYMUX) && defined(WITHOUT_SYMON)
IGNORE= you have defined both WITHOUT_SYMUX or WITHOUT_RRD *and* WITHOUT_SYMON
.endif
SUBDIR= lib
.if !defined(WITHOUT_SYMON)
SUBDIR+= symon
PLIST_SUB+= SYMON=""
USE_RC_SUBR+= symon
.else
PLIST_SUB+= SYMON="@comment "
.endif
.if !defined(WITHOUT_SYMUX)
SUBDIR+= symux
PLIST_SUB+= SYMUX=""
USE_RC_SUBR+= symux
.else
PLIST_SUB+= SYMUX="@comment "
.endif
SUBDIR+= client
MAKE_ARGS+= SUBDIR="${SUBDIR}" RRDDIR="${LOCALBASE}" \
SYSCONFDIR="${PREFIX}/etc" PREFIX="${STAGEDIR}/${PREFIX}"
.include <bsd.port.pre.mk>
post-extract:
@${MV} ${WRKDIR}/${PORTNAME} ${WRKSRC}
post-patch:
# We need to teach symon about mbstat changes/removal in r253351 and r253361.
.if ${OSVERSION} > 1000000
@${RM} ${WRKSRC}/platform/FreeBSD/sm_mbuf.c
.endif
.if ${OSVERSION} >= 1100070
@${REINPLACE_CMD} 's|altq/|net/&|' ${WRKSRC}/platform/FreeBSD/sm_pfq.c
.endif
.include <bsd.port.post.mk>
|