- add OPTION for PY4SUITE which is needet for create_html_table.py
- some minor cleanups (${PREFIX}/etc/ndpmon -> ${ETCDIR} ... PR: ports/153287 Submitted by: Geoffroy Desvernay <dgeo@centrale-marseille.fr> Approved by: maintainer timeout
This commit is contained in:
parent
f3a4008bf9
commit
a043e36f79
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=280589
5 changed files with 41 additions and 20 deletions
|
@ -14,36 +14,53 @@ EXTRACT_SUFX= .tgz
|
|||
MAINTAINER= janos.mohacsi@bsd.hu
|
||||
COMMENT= On-link icmpv6 message monitoring and reporting daemon
|
||||
|
||||
OPTIONS= PY4SUITE "Depend on py-4suite-xml (for generating HTML)" off
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if defined(WITHOUT_PY4SUITE)
|
||||
PLIST_SUB+= PY="@comment "
|
||||
.else
|
||||
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/Ft/Xml/Domlette.py:${PORTSDIR}/textproc/py-4suite-xml
|
||||
USE_PYTHON= 2.6+
|
||||
PLIST_SUB+= PY=""
|
||||
.endif
|
||||
|
||||
USE_GNOME= libxml2
|
||||
USE_PERL5_RUN= yes
|
||||
USE_RC_SUBR= ndpmonitor
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ENV= OSTYPE=FreeBSD
|
||||
CONFIGURE_ARGS= --with-var-datadir=${PREFIX}/var --with-confdir=${PREFIX}/etc
|
||||
CONFIGURE_ARGS= --with-var-datadir=${PREFIX}/var --with-confdir=${ETCDIR}
|
||||
|
||||
MAN8= ndpmon.8
|
||||
PORTDOCS= INSTALL README
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \
|
||||
-e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
|
||||
${WRKSRC}/ndpmon.8 \
|
||||
${WRKSRC}/create_html_table.py \
|
||||
${WRKSRC}/demopipeprogram.pl.sample
|
||||
${WRKSRC}/demopipeprogram.pl.sample \
|
||||
${WRKSRC}/config_ndpmon.xml.in \
|
||||
${WRKSRC}/config_ndpmon.xml
|
||||
(cd ${WRKSRC}; ${MAKE} clean)
|
||||
|
||||
do-install:
|
||||
${INSTALL_MAN} ${WRKSRC}/ndpmon.8 ${PREFIX}/man/man8
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/ndpmon ${PREFIX}/sbin
|
||||
|
||||
${MKDIR} ${DATADIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/*.dtd \
|
||||
${DATADIR}
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/demopipeprogram.pl.sample \
|
||||
${DATADIR}
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/create_html_table.py \
|
||||
${DATADIR}
|
||||
${MKDIR} ${PREFIX}/etc/ndpmon
|
||||
${INSTALL_DATA} ${WRKSRC}/config_ndpmon.xml ${PREFIX}/etc/ndpmon/config_ndpmon.xml-dist
|
||||
${INSTALL_DATA} ${WRKSRC}/*.dtd ${DATADIR}
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/demopipeprogram.pl.sample ${DATADIR}
|
||||
.if defined(WITH_PY4SUITE)
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/create_html_table.py ${DATADIR}
|
||||
.endif
|
||||
|
||||
${MKDIR} ${ETCDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/config_ndpmon.xml ${ETCDIR}/config_ndpmon.xml-dist
|
||||
|
||||
${MKDIR} ${PREFIX}/var/ndpmon
|
||||
${INSTALL_DATA} ${WRKSRC}/neighbor_list.xml ${PREFIX}/var/ndpmon/neighbor_list.xml
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ name="ndpmonitor"
|
|||
rcvar=`set_rcvar`
|
||||
|
||||
command="%%PREFIX%%/sbin/ndpmon"
|
||||
required_files=%%PREFIX%%/etc/ndpmon/config_ndpmon.xml
|
||||
required_files=%%ETCDIR%%/config_ndpmon.xml
|
||||
|
||||
load_rc_config $name
|
||||
|
||||
|
|
|
@ -1,8 +1,14 @@
|
|||
|
||||
$FreeBSD$
|
||||
|
||||
--- create_html_table.py.orig
|
||||
+++ create_html_table.py
|
||||
--- create_html_table.py.orig 2010-12-18 23:33:50.000000000 +0100
|
||||
+++ create_html_table.py 2010-12-18 23:35:24.000000000 +0100
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/python
|
||||
+#!%%LOCALBASE%%/bin/python
|
||||
|
||||
# takes in input the alerts via the pipe
|
||||
# write the alerts in a file in XML format
|
||||
@@ -11,7 +11,7 @@
|
||||
from xml.dom import Node
|
||||
|
||||
|
|
|
@ -8,5 +8,3 @@ by writing in the syslog and in some cases by sending an email
|
|||
report.
|
||||
|
||||
WWW: http://ndpmon.sourceforge.net
|
||||
|
||||
Janos Mohacsi <janos.mohacsi@bsd.hu>
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
%%ETCDIR%%/config_ndpmon.xml-dist
|
||||
sbin/ndpmon
|
||||
%%DATADIR%%/config_ndpmon.dtd
|
||||
%%DATADIR%%/neighbor_list.dtd
|
||||
%%DATADIR%%/demopipeprogram.pl.sample
|
||||
%%DATADIR%%/create_html_table.py
|
||||
@dirrmtry %%DATADIR%%
|
||||
%%DATADIR%%/neighbor_list.dtd
|
||||
%%PY%%%%DATADIR%%/create_html_table.py
|
||||
var/ndpmon/neighbor_list.xml
|
||||
@dirrmtry var/ndpmon
|
||||
@dirrmtry var
|
||||
etc/ndpmon/config_ndpmon.xml-dist
|
||||
@dirrmtry etc/ndpmon
|
||||
@dirrmtry %%DATADIR%%
|
||||
@dirrmtry %%ETCDIR%%
|
||||
|
|
Loading…
Reference in a new issue