2001-03-24 18:49:56 +00:00
|
|
|
# New ports collection makefile for: ipcheck
|
|
|
|
# Date created: 24 Mar 2001
|
|
|
|
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= ipcheck
|
2003-02-17 14:33:59 +00:00
|
|
|
PORTVERSION= 0.200
|
2001-12-04 21:37:15 +00:00
|
|
|
PORTEPOCH= 1
|
2001-03-29 02:01:02 +00:00
|
|
|
CATEGORIES= net
|
2003-02-17 14:33:59 +00:00
|
|
|
MASTER_SITES= http://ipcheck.sourceforge.net/releases/
|
2002-12-19 00:59:29 +00:00
|
|
|
MASTER_SITE_SUBDIR= lioux
|
2003-02-17 14:33:59 +00:00
|
|
|
DISTNAME= ${PORTNAME}.${PORTVERSION:S/^0.//}
|
|
|
|
EXTRACT_SUFX=
|
|
|
|
EXTRACT_ONLY=
|
2001-03-24 18:49:56 +00:00
|
|
|
|
|
|
|
MAINTAINER= lioux@FreeBSD.org
|
|
|
|
|
2001-04-03 04:22:20 +00:00
|
|
|
USE_PYTHON= yes
|
2001-03-24 18:49:56 +00:00
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
NO_BUILD= yes
|
|
|
|
|
2002-06-21 16:12:30 +00:00
|
|
|
.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
|
|
|
|
|
2001-03-24 18:49:56 +00:00
|
|
|
do-patch:
|
2003-02-17 14:33:59 +00:00
|
|
|
@${SED} \
|
2002-12-19 00:59:29 +00:00
|
|
|
-e "s!/usr/bin/python!${LOCALBASE}/bin/python!" \
|
2001-03-24 18:49:56 +00:00
|
|
|
-e "s!ppp0!tun0!" \
|
2003-02-17 14:33:59 +00:00
|
|
|
${DISTDIR}/${DISTNAME} > ${WRKDIR}/${DISTNAME}
|
2001-03-24 18:49:56 +00:00
|
|
|
do-install:
|
2003-02-17 14:33:59 +00:00
|
|
|
@${INSTALL_SCRIPT} ${WRKDIR}/${DISTNAME} ${PREFIX}/bin/${PORTNAME}.py
|
2001-03-24 18:49:56 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|