svn commit: r395613 - head/net/exaddos
Dmitry Marakasov
amdmi3 at FreeBSD.org
Sun Aug 30 10:52:06 UTC 2015
Author: amdmi3
Date: Sun Aug 30 10:52:04 2015
New Revision: 395613
URL: https://svnweb.freebsd.org/changeset/ports/395613
Log:
- Add LICENSE_FILE
- Pet portlint
- Switch to @sample
Approved by: portmgr blanket
Modified:
head/net/exaddos/Makefile
head/net/exaddos/pkg-plist
Modified: head/net/exaddos/Makefile
==============================================================================
--- head/net/exaddos/Makefile Sun Aug 30 10:51:47 2015 (r395612)
+++ head/net/exaddos/Makefile Sun Aug 30 10:52:04 2015 (r395613)
@@ -5,19 +5,19 @@ PORTNAME= exaddos
PORTVERSION= 0.4.0
CATEGORIES= net
MASTER_SITES= http://mirrors.rit.edu/zi/
-EXTRACT_SUFX= .tgz
MAINTAINER= zi at FreeBSD.org
COMMENT= Monitor your network for DDoS
LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}snmp4-mibs>=0.1.4:${PORTSDIR}/net-mgmt/py-snmp4-mibs \
${PYTHON_PKGNAMEPREFIX}snmp4>=4.2.3:${PORTSDIR}/net-mgmt/py-snmp4
USE_GITHUB= yes
GH_ACCOUNT= Exa-Networks
-USES= python
+USES= python tar:tgz
SUB_FILES= pkg-message exaddos.sh exaddos.conf.sample
SUB_LIST= PYTHON_LIBDIR=${PYTHON_LIBDIR} PYTHON_CMD=${PYTHON_CMD} \
PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR}
@@ -30,11 +30,11 @@ do-build:
@${PYTHON_CMD} -m compileall ${WRKSRC}/lib
do-install:
- @${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${STAGEDIR}${PREFIX}/sbin/${PORTNAME}
+ ${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 \
+ ${INSTALL_DATA} ${WRKDIR}/exaddos.conf.sample \
${STAGEDIR}${ETCDIR}
.include <bsd.port.mk>
Modified: head/net/exaddos/pkg-plist
==============================================================================
--- head/net/exaddos/pkg-plist Sun Aug 30 10:51:47 2015 (r395612)
+++ head/net/exaddos/pkg-plist Sun Aug 30 10:52:04 2015 (r395613)
@@ -42,7 +42,5 @@ www/exaddos/html/index.html
www/exaddos/html/overview.html
www/exaddos/html/talkers.html
www/exaddos/html/talker.html
- at unexec if cmp -s %D/etc/exaddos/exaddos.conf %D/etc/exaddos/exaddos.conf.sample ; then rm -f %D/etc/exaddos/exaddos.conf ; fi
-etc/exaddos/exaddos.conf.sample
- at exec if [ ! -f %D/etc/exaddos/exaddos.conf ]; then cp -p %D/%F %B/exaddos.conf; fi
+ at sample etc/exaddos/exaddos.conf.sample
@unexec if [ -d %D/%%ETCDIR%% ]; then echo "==> If you are permanently removing this port, you should do a ``rm -rf ${PKG_PREFIX}/etc/exaddos`` to remove any configuration files left."; fi
More information about the svn-ports-all
mailing list