summaryrefslogtreecommitdiff
path: root/net/py-hatop/Makefile
blob: 31afc38686e89aa80de8e12769f03c6f9bcce0d9 (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
# $NetBSD: Makefile,v 1.3 2016/08/28 15:48:34 wiz Exp $

DISTNAME=	hatop-0.7.7
PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
CATEGORIES=	net
MASTER_SITES=	http://hatop.googlecode.com/files/

MAINTAINER=	rodent@NetBSD.org
HOMEPAGE=	http://feurix.org/projects/hatop/
COMMENT=	Interactive client and monitoring tool for HAProxy
LICENSE=	gnu-gpl-v3

DEPENDS+=	haproxy>=1.4:../../net/haproxy
DEPENDS+=	${PYPKGPREFIX}-curses-[0-9]*:../../devel/py-curses

USE_LANGUAGES=	# none
NO_BUILD=	yes

PYTHON_VERSIONS_ACCEPTED=	27
REPLACE_PYTHON=			bin/hatop
INSTALLATION_DIRS+=		bin ${PKGMANDIR}/man1
PY_PATCHPLIST=			yes

do-configure:
	# XXX: Blank, but we can't define NO_CONFIGURE and use REPLACE_PYTHON...

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/bin/hatop \
		${DESTDIR}${PREFIX}/bin/hatop${PYVERSSUFFIX}
	${INSTALL_MAN} ${WRKSRC}/man/hatop.1 \
		${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/hatop${PYVERSSUFFIX}.1

.include "../../lang/python/application.mk"
.include "../../lang/python/extension.mk"
.include "../../mk/bsd.pkg.mk"