1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-24 09:25:01 +00:00
freebsd-ports/sysutils/symon/Makefile
Doug Barton f6c773adf1 Fix problem introduced in r302141. The directory for the unpacked source
files is unversioned, so it conflicts with the name of the rc.d script in
WRKDIR after SUB_FILES is applied.
2012-08-20 07:50:25 +00:00

74 lines
1.4 KiB
Makefile

# New ports collection makefile for: sysutils/symon
# Date created: 17.02.2005
# Whom: Ulrich Spoerlein <uspoerlein@gmail.com>
#
# $FreeBSD$
#
PORTNAME= symon
PORTVERSION= 2.85
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://wpd.home.xs4all.nl/symon/philes/ \
${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= uqs
MAINTAINER= uqs@FreeBSD.org
COMMENT= Performance and information monitoring tool
SUB_FILES= pkg-message
USE_PERL5_BUILD= yes
# Synonym for WITHOUT_SYMUX
.if defined(WITHOUT_RRD)
WITHOUT_SYMUX= yes
.endif
.if !defined(WITHOUT_SYMUX)
LIB_DEPENDS+= rrd:${PORTSDIR}/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
MAN8+= symon.8
PLIST_SUB+= SYMON=""
USE_RC_SUBR+= symon
.else
PLIST_SUB+= SYMON="@comment "
.endif
.if !defined(WITHOUT_SYMUX)
SUBDIR+= symux
MAN8+= symux.8
PLIST_SUB+= SYMUX=""
USE_RC_SUBR+= symux
.else
PLIST_SUB+= SYMUX="@comment "
.endif
SUBDIR+= client
MAKE_ARGS+= SUBDIR="${SUBDIR}" RRDDIR="${LOCALBASE}"
.include <bsd.port.pre.mk>
post-extract:
@${MV} ${WRKDIR}/${PORTNAME} ${WRKSRC}
.if ${OSVERSION} < 700000
post-patch:
@${REINPLACE_CMD} 's/^LIBS+=/LIBS= -pthread /' ${WRKSRC}/symux/Makefile
.endif
pre-install:
@${SH} ${PKGINSTALL} ${PORTNAME} PRE-INSTALL
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>