2005-03-16 20:39:33 +00:00
|
|
|
# New ports collection makefile for: sysutils/symon
|
|
|
|
# Date created: 17.02.2005
|
2008-05-04 17:47:17 +00:00
|
|
|
# Whom: Ulrich Spoerlein <uspoerlein@gmail.com>
|
2005-03-16 20:39:33 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= symon
|
2011-05-22 10:04:55 +00:00
|
|
|
PORTVERSION= 2.83
|
2005-03-16 20:39:33 +00:00
|
|
|
CATEGORIES= sysutils
|
2010-05-31 08:03:53 +00:00
|
|
|
MASTER_SITES= http://www.xs4all.nl/~wpd/symon/philes/ \
|
2010-11-26 08:01:49 +00:00
|
|
|
${MASTER_SITE_LOCAL}
|
|
|
|
MASTER_SITE_SUBDIR= uqs
|
2005-03-16 20:39:33 +00:00
|
|
|
|
2010-05-22 13:06:44 +00:00
|
|
|
MAINTAINER= uqs@FreeBSD.org
|
2005-03-16 20:39:33 +00:00
|
|
|
COMMENT= Performance and information monitoring tool
|
|
|
|
|
2005-04-26 14:32:53 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
2007-10-16 03:30:09 +00:00
|
|
|
USE_PERL5_BUILD= yes
|
|
|
|
|
2005-04-26 14:32:53 +00:00
|
|
|
# Synonym for WITHOUT_SYMUX
|
|
|
|
.if defined(WITHOUT_RRD)
|
|
|
|
WITHOUT_SYMUX= yes
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_SYMUX)
|
2008-09-04 12:41:09 +00:00
|
|
|
LIB_DEPENDS+= rrd:${PORTSDIR}/databases/rrdtool
|
2005-04-26 14:32:53 +00:00
|
|
|
.endif
|
2005-03-16 20:39:33 +00:00
|
|
|
|
2005-04-26 14:32:53 +00:00
|
|
|
.if defined(WITHOUT_SYMUX) && defined(WITHOUT_SYMON)
|
2005-12-02 16:19:10 +00:00
|
|
|
IGNORE= you have defined both WITHOUT_SYMUX or WITHOUT_RRD *and* WITHOUT_SYMON
|
2005-04-26 14:32:53 +00:00
|
|
|
.endif
|
2005-03-16 20:39:33 +00:00
|
|
|
|
2005-04-26 14:32:53 +00:00
|
|
|
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
|
|
|
|
|
2005-10-22 10:22:02 +00:00
|
|
|
MAKE_ARGS+= SUBDIR="${SUBDIR}" RRDDIR="${LOCALBASE}"
|
2005-03-16 20:39:33 +00:00
|
|
|
|
2010-05-22 13:06:44 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} < 700000
|
2005-03-16 20:39:33 +00:00
|
|
|
post-patch:
|
2010-05-22 13:06:44 +00:00
|
|
|
@${REINPLACE_CMD} 's/^LIBS+=/LIBS= -pthread /' ${WRKSRC}/symux/Makefile
|
|
|
|
.endif
|
2005-03-16 20:39:33 +00:00
|
|
|
|
|
|
|
pre-install:
|
|
|
|
@${SH} ${PKGINSTALL} ${PORTNAME} PRE-INSTALL
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2010-05-22 13:06:44 +00:00
|
|
|
.include <bsd.port.post.mk>
|