summaryrefslogtreecommitdiffstats
path: root/dns/ipcheck/Makefile
blob: f3355e447244a7a326ea40e40ed300d248011133 (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
40
41
# New ports collection makefile for:	ipcheck
# Date created:		24 Mar 2001
# Whom:			Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	ipcheck
PORTVERSION=	0.198
PORTEPOCH=	1
CATEGORIES=	net
MASTER_SITES=	${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR=	lioux

MAINTAINER=	lioux@FreeBSD.org

USE_BZIP2=	yes
USE_PYTHON=	yes
USE_REINPLACE=	yes
NO_WRKSUBDIR=	yes
NO_BUILD=	yes

.ifdef(WITH_SNMP)
RUN_DEPENDS+=	${LOCALBASE}/lib/${PYTHON_VERSION}/site-packages/pysnmp/v2c.py:${PORTSDIR}/net/py-snmp
.endif

pre-everything::
.ifndef(WITH_SNMP)
	@${ECHO_MSG} '===> Enable SNMP support by defining WITH_SNMP'
.endif

do-patch:
	@${REINPLACE_CMD} \
		-e "s!/usr/bin/python!${LOCALBASE}/bin/python!" \
		-e "s!ppp0!tun0!" \
			${WRKDIR}/ipcheck.py

do-install:
	@${INSTALL_SCRIPT} ${WRKDIR}/ipcheck.py ${PREFIX}/bin/

.include <bsd.port.mk>
OpenPOWER on IntegriCloud