freebsd-ports/net/exaddos/Makefile
Kai Knoblich cde5acd50e net-mgmt/py-snmp4{-apps,-mibs}: Rename to match canonical upstream name
Rename the following ports:

* net-mgmt/py-snmp4 -> net-mgmt/py-pysnmp
* net-mgmt/py-snmp4-apps -> net-mgmt/py-pysnmp-apps
* net-mgmt/py-snmp4-mibs -> net-mgmt/py-pysnmp-mibs

Bump PORTREVISION for net/exaddos + net-mgmt/py-pysmi

PR:		235120
Submitted by:	John W. O'Brien <john@saltant.com>
Reviewed by:	koobs
Approved by:	miwi (mentor), maintainer
Differential Revision:	https://reviews.freebsd.org/D19134
2019-02-11 10:24:45 +00:00

42 lines
1.2 KiB
Makefile

# Created by: Ryan Steinmetz <zi@FreeBSD.org>
# $FreeBSD$
PORTNAME= exaddos
PORTVERSION= 0.4.0
PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= ZI
MAINTAINER= zi@FreeBSD.org
COMMENT= Monitor your network for DDoS
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pysnmp-mibs>=0.1.4:net-mgmt/py-pysnmp-mibs@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pysnmp>=4.2.3:net-mgmt/py-pysnmp@${PY_FLAVOR}
USE_GITHUB= yes
GH_ACCOUNT= Exa-Networks
USES= python:2.7
SUB_FILES= pkg-message exaddos.sh exaddos.conf.sample
SUB_LIST= PYTHON_LIBDIR=${PYTHON_LIBDIR} PYTHON_CMD=${PYTHON_CMD} \
PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR}
USE_RC_SUBR= ${PORTNAME}
NO_ARCH= yes
USERS= ${PORTNAME}
GROUPS= ${PORTNAME}
do-build:
@${PYTHON_CMD} -m compileall ${WRKSRC}/lib
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${STAGEDIR}${PREFIX}/sbin/${PORTNAME}
@${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME} ${STAGEDIR}${ETCDIR}
@(cd ${WRKSRC}/lib && ${COPYTREE_SHARE} . ${STAGEDIR}${PYTHON_SITELIBDIR})
@(cd ${WRKSRC}/data/${PORTNAME} && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/www/${PORTNAME})
${INSTALL_DATA} ${WRKDIR}/exaddos.conf.sample \
${STAGEDIR}${ETCDIR}
.include <bsd.port.mk>