aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/netmond/Makefile
blob: 55d1a38c7174043cf9bd0f5acabf7b34797529c2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Created by: vfom@narod.ru
# $FreeBSD$

PORTNAME=	netmond
PORTVERSION=	2.2b6
PORTREVISION=	6
CATEGORIES=	net-mgmt
MASTER_SITES=	http://freebsd.unixfreunde.de/sources/:daemon \
		ftp://ftp.risp.ru/pub/RinetSoftware/:daemon \
		http://vfom.narod.ru/download/:docs
EXTRACT_SUFX=	.tgz
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
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>