2013-07-10 13:23:04 +02:00
|
|
|
# Created by: Ulrich Spoerlein <uspoerlein@gmail.com>
|
2005-03-16 21:39:33 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= symon
|
2016-07-02 10:58:57 +02:00
|
|
|
PORTVERSION= 2.87
|
2005-03-16 21:39:33 +01:00
|
|
|
CATEGORIES= sysutils
|
2012-05-25 12:44:36 +02:00
|
|
|
MASTER_SITES= http://wpd.home.xs4all.nl/symon/philes/ \
|
2015-05-14 12:15:04 +02:00
|
|
|
LOCAL/uqs
|
2005-03-16 21:39:33 +01:00
|
|
|
|
2010-05-22 15:06:44 +02:00
|
|
|
MAINTAINER= uqs@FreeBSD.org
|
2005-03-16 21:39:33 +01:00
|
|
|
COMMENT= Performance and information monitoring tool
|
|
|
|
|
2005-04-26 16:32:53 +02:00
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
2015-07-14 21:52:11 +02:00
|
|
|
USES= perl5 shebangfix
|
|
|
|
SHEBANG_FILES= client/getsymonitem.pl
|
2013-09-16 09:29:08 +02:00
|
|
|
USE_PERL5= build
|
2013-07-10 13:23:04 +02:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
|
2013-11-19 12:48:31 +01:00
|
|
|
USERS= _symon
|
2014-09-18 22:35:42 +02:00
|
|
|
GROUPS= _symon
|
2013-11-19 12:48:31 +01:00
|
|
|
|
2005-04-26 16:32:53 +02:00
|
|
|
# Synonym for WITHOUT_SYMUX
|
|
|
|
.if defined(WITHOUT_RRD)
|
|
|
|
WITHOUT_SYMUX= yes
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_SYMUX)
|
2016-04-01 16:25:16 +02:00
|
|
|
LIB_DEPENDS+= librrd.so:databases/rrdtool
|
2005-04-26 16:32:53 +02:00
|
|
|
.endif
|
2005-03-16 21:39:33 +01:00
|
|
|
|
2005-04-26 16:32:53 +02:00
|
|
|
.if defined(WITHOUT_SYMUX) && defined(WITHOUT_SYMON)
|
2005-12-02 17:19:10 +01:00
|
|
|
IGNORE= you have defined both WITHOUT_SYMUX or WITHOUT_RRD *and* WITHOUT_SYMON
|
2005-04-26 16:32:53 +02:00
|
|
|
.endif
|
2005-03-16 21:39:33 +01:00
|
|
|
|
2005-04-26 16:32:53 +02:00
|
|
|
SUBDIR= lib
|
|
|
|
.if !defined(WITHOUT_SYMON)
|
|
|
|
SUBDIR+= symon
|
|
|
|
PLIST_SUB+= SYMON=""
|
2012-08-06 01:19:36 +02:00
|
|
|
USE_RC_SUBR+= symon
|
2005-04-26 16:32:53 +02:00
|
|
|
.else
|
|
|
|
PLIST_SUB+= SYMON="@comment "
|
|
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_SYMUX)
|
|
|
|
SUBDIR+= symux
|
|
|
|
PLIST_SUB+= SYMUX=""
|
2012-08-06 01:19:36 +02:00
|
|
|
USE_RC_SUBR+= symux
|
2005-04-26 16:32:53 +02:00
|
|
|
.else
|
|
|
|
PLIST_SUB+= SYMUX="@comment "
|
|
|
|
.endif
|
|
|
|
SUBDIR+= client
|
|
|
|
|
2013-11-19 12:48:31 +01:00
|
|
|
MAKE_ARGS+= SUBDIR="${SUBDIR}" RRDDIR="${LOCALBASE}" \
|
|
|
|
SYSCONFDIR="${PREFIX}/etc" PREFIX="${STAGEDIR}/${PREFIX}"
|
2005-03-16 21:39:33 +01:00
|
|
|
|
2010-05-22 15:06:44 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2012-08-20 09:50:25 +02:00
|
|
|
post-extract:
|
|
|
|
@${MV} ${WRKDIR}/${PORTNAME} ${WRKSRC}
|
|
|
|
|
2015-05-11 13:23:20 +02:00
|
|
|
post-patch:
|
2013-11-19 12:48:31 +01:00
|
|
|
# We need to teach symon about mbstat changes/removal in r253351 and r253361.
|
|
|
|
.if ${OSVERSION} > 1000000
|
|
|
|
@${RM} ${WRKSRC}/platform/FreeBSD/sm_mbuf.c
|
2010-05-22 15:06:44 +02:00
|
|
|
.endif
|
2015-05-11 13:23:20 +02:00
|
|
|
.if ${OSVERSION} >= 1100070
|
|
|
|
@${REINPLACE_CMD} 's|altq/|net/&|' ${WRKSRC}/platform/FreeBSD/sm_pfq.c
|
|
|
|
.endif
|
2005-03-16 21:39:33 +01:00
|
|
|
|
2010-05-22 15:06:44 +02:00
|
|
|
.include <bsd.port.post.mk>
|