freebsd-ports/net-mgmt/netmond/Makefile
Matthias Andree e52140621e Fix @dirrm auto-generation for PORTDOCS/PORTEXAMPLES/PORTDATA with globs.
Fix up net-mgmt/netmond pkg-plist for @mode (regression with pkg from
r347404 committed by rene@) and remove two @dirrm lines that are now excess.

Exp-run completed.

PR:		191746
Reviewed by:	antoine
Approved by:	portmgr (antoine)
2014-08-27 21:52:25 +00:00

54 lines
1.6 KiB
Makefile

# Created by: vfom@narod.ru
# $FreeBSD$
PORTNAME= netmond
PORTVERSION= 2.2b6
PORTREVISION= 7
CATEGORIES= net-mgmt
MASTER_SITES= http://freebsd.unixfreunde.de/sources/:daemon \
ftp://ftp.risp.ru/pub/RinetSoftware/:daemon \
http://vfom.narod.ru/download/:docs
DISTFILES= ${PORTNAME}-2.2-b6${EXTRACT_SUFX}:daemon
EXTRACT_ONLY= ${PORTNAME}-2.2-b6${EXTRACT_SUFX}
MAINTAINER= ports@FreeBSD.org
COMMENT= Netmond - IP network monitoring daemon
WRKSRC= ${WRKDIR}/${PORTNAME}-2.2-b6
USERS= netmon
GROUPS= ${USERS}
GNU_CONFIGURE= yes
DISABLE_MAKE_JOBS=yes
USES= bison tar:tgz
CFLAGS+= -Wno-return-type
USE_RC_SUBR= netmond
SUB_FILES+= pkg-message netmond_watchdog netmondctl
PORTDOCS= README README.ru CHANGES README.port.eng README.port.ru index.html netmond.css en/* ru/*
OPTIONS_DEFINE= DOCS GD
OPTIONS_SUB= yes
GD_LIB_DEPENDS= libgd.so:${PORTSDIR}/graphics/gd
GD_CONFIGURE_OFF= --without-ifgraph
DOCS_DISTFILES= ${PORTNAME}-2.2-b6.docs${EXTRACT_SUFX}:docs
.include <bsd.port.options.mk>
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/netmond ${STAGEDIR}${PREFIX}/sbin/netmond
.if ${PORT_OPTIONS:MGD}
${INSTALL_PROGRAM} ${WRKSRC}/ifgraph ${STAGEDIR}${PREFIX}/sbin/ifgraph
.endif
${INSTALL_SCRIPT} ${WRKDIR}/netmond_watchdog ${STAGEDIR}${PREFIX}/sbin/netmond_watchdog
${INSTALL_SCRIPT} ${WRKDIR}/netmondctl ${STAGEDIR}${PREFIX}/sbin/netmondctl
${INSTALL_DATA} ${WRKSRC}/netmon.conf.sample ${STAGEDIR}${PREFIX}/etc/netmond.conf.sample
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${TAR} -zxf ${DISTDIR}/${PORTNAME}-2.2-b6.docs${EXTRACT_SUFX} -C ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>