blob: 1b5931b0bcf32f9f2fb7d6aacf23a5358ce33a9d (
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
72
73
74
75
76
77
|
# New ports collection makefile for: sysutils/symon
# Date created: 17.02.2005
# Whom: Ulrich Spoerlein <q@uni.de>
#
# $FreeBSD$
#
PORTNAME= symon
PORTVERSION= 2.72
CATEGORIES= sysutils
MASTER_SITES= http://www.xs4all.nl/~wpd/symon/philes/
MAINTAINER= q@galgenberg.net
COMMENT= Performance and information monitoring tool
BROKEN= Incomplete pkg-plist
USE_REINPLACE= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
SUB_FILES= pkg-message
# Synonym for WITHOUT_SYMUX
.if defined(WITHOUT_RRD)
WITHOUT_SYMUX= yes
.endif
.if !defined(WITHOUT_SYMUX)
LIB_DEPENDS+= rrd.2:${PORTSDIR}/net/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
MAN8+= symon.8
PLIST_SUB+= SYMON=""
USE_RC_SUBR+= symon.sh
.else
PLIST_SUB+= SYMON="@comment "
.endif
.if !defined(WITHOUT_SYMUX)
SUBDIR+= symux
MAN8+= symux.8
PLIST_SUB+= SYMUX=""
USE_RC_SUBR+= symux.sh
.else
PLIST_SUB+= SYMUX="@comment "
.endif
SUBDIR+= client
MAKE_ARGS+= SUBDIR="${SUBDIR}" RRDDIR="${LOCALBASE}"
.include <bsd.port.pre.mk>
# Symux doesn't need additional LIBS. Symon doesn't need libkvm on FreeBSD 4.x
post-patch:
@${REINPLACE_CMD} 's/^LIBS+=/LIBS=/' ${WRKSRC}/symux/Makefile
.if ${OSVERSION} < 500000
@${REINPLACE_CMD} 's/-lkvm//' ${WRKSRC}/platform/FreeBSD/Makefile.inc
.endif
pre-install:
@${SH} ${PKGINSTALL} ${PORTNAME} PRE-INSTALL
post-install:
.if !defined(WITHOUT_SYMON)
${INSTALL_SCRIPT} -m 555 ${WRKDIR}/symon.sh ${PREFIX}/etc/rc.d/symon.sh
.endif
.if !defined(WITHOUT_SYMUX)
${INSTALL_SCRIPT} -m 555 ${WRKDIR}/symux.sh ${PREFIX}/etc/rc.d/symux.sh
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
|