summaryrefslogtreecommitdiff
path: root/net/bmon/Makefile
blob: 040261a5a02cacb3b7dcd97d3960d5c469558777 (plain)
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
# $NetBSD: Makefile,v 1.8 2007/01/07 09:14:02 rillig Exp $
#

DISTNAME=	bmon-2.0.1
PKGREVISION=	1
CATEGORIES=	net
MASTER_SITES=	http://people.suug.ch/~tgr/bmon/files/

MAINTAINER=	hsaliak@gmail.com
HOMEPAGE=	http://people.suug.ch/~tgr/bmon/
COMMENT=	Bmon is an interface bandwidth monitor

PKG_INSTALLATION_TYPES=	overwrite pkgviews

GNU_CONFIGURE=	yes
MAKE_FILE=	GNUmakefile
USE_TOOLS+=	gmake

# In NetBSD 1.6.x the native curses implementation has problems with bmon.
# So mark it as incompatible and link bmon against the
# 3rd party ncurses library in NetBSD 1.6.x.
INCOMPAT_CURSES= NetBSD-1.6*-*

CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFDIR:Q}

EGDIR=		${PREFIX}/share/examples/bmon
CONF_FILES=	${EGDIR}/bmon.conf ${PKG_SYSCONFDIR}/bmon.conf

INSTALLATION_DIRS=	bin ${PKGMANDIR}/man1

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/src/bmon ${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/man/bmon.1 ${PREFIX}/${PKGMANDIR}/man1
	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/bmon
	${INSTALL_DATA} ${WRKSRC}/etc/bmon.conf	\
		${PREFIX}/share/examples/bmon/bmon.conf

.include "../../devel/ncurses/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"