2005-03-16 20:39:33 +00:00
|
|
|
# New ports collection makefile for: sysutils/symon
|
|
|
|
# Date created: 17.02.2005
|
|
|
|
# Whom: Ulrich Spoerlein <q@uni.de>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= symon
|
2007-02-18 18:41:03 +00:00
|
|
|
PORTVERSION= 2.75
|
2005-03-16 20:39:33 +00:00
|
|
|
CATEGORIES= sysutils
|
|
|
|
MASTER_SITES= http://www.xs4all.nl/~wpd/symon/philes/
|
|
|
|
|
2006-05-29 20:46:13 +00:00
|
|
|
MAINTAINER= uspoerlein@gmail.com
|
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)
|
2007-07-05 06:19:49 +00:00
|
|
|
LIB_DEPENDS+= rrd.2:${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
|
|
|
|
2007-10-04 06:10:15 +00:00
|
|
|
# Symux doesn't need additional LIBS.
|
2005-03-16 20:39:33 +00:00
|
|
|
post-patch:
|
2005-04-26 14:32:53 +00:00
|
|
|
@${REINPLACE_CMD} 's/^LIBS+=/LIBS=/' ${WRKSRC}/symux/Makefile
|
2005-03-16 20:39:33 +00:00
|
|
|
|
|
|
|
pre-install:
|
|
|
|
@${SH} ${PKGINSTALL} ${PORTNAME} PRE-INSTALL
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2007-10-04 06:10:15 +00:00
|
|
|
.include <bsd.port.mk>
|