mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
- Fix/improve use of option MACRESOLV:
- Register www/p5-libwww as a dependency. - Install missing files. - Print a message how to update the MAC database after installation. - Fix path of the configuration file. PR: 169716 Submitted by: Fabian Wenk <fabian@wenks.ch> Approved by: maintainer timeout (>6 weeks)
This commit is contained in:
parent
a04cad0c19
commit
ae15f3ecef
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=321019
5 changed files with 47 additions and 15 deletions
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
PORTNAME= ndpmon
|
PORTNAME= ndpmon
|
||||||
PORTVERSION= 1.4.0
|
PORTVERSION= 1.4.0
|
||||||
PORTREVISION= 1
|
PORTREVISION= 2
|
||||||
CATEGORIES= net-mgmt ipv6
|
CATEGORIES= net-mgmt ipv6
|
||||||
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-1.4/
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-1.4/
|
||||||
EXTRACT_SUFX= .tgz
|
EXTRACT_SUFX= .tgz
|
||||||
|
@ -18,7 +18,7 @@ OPTIONS_DEFINE= PY4SUITE MACRESOLV
|
||||||
OPTIONS_DEFAULT=
|
OPTIONS_DEFAULT=
|
||||||
|
|
||||||
PY4SUITE_DESC= Depend on py-4suite-xml (for generating HTML)
|
PY4SUITE_DESC= Depend on py-4suite-xml (for generating HTML)
|
||||||
MACRESOLV_DESC= Enable MAC Manufacturer Resolution
|
MACRESOLV_DESC= Enable MAC Manufacturer Resolution (use p5-libwww)
|
||||||
|
|
||||||
.include <bsd.port.options.mk>
|
.include <bsd.port.options.mk>
|
||||||
|
|
||||||
|
@ -45,8 +45,11 @@ PORTDOCS= INSTALL README
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MMACRESOLV}
|
.if ${PORT_OPTIONS:MMACRESOLV}
|
||||||
CONFIGURE_ARGS+=--enable-mac-resolv
|
CONFIGURE_ARGS+=--enable-mac-resolv
|
||||||
|
BUILD_DEPENDS+= p5-libwww>=6.05:${PORTSDIR}/www/p5-libwww
|
||||||
|
RUN_DEPENDS+= p5-libwww>=6.05:${PORTSDIR}/www/p5-libwww
|
||||||
|
PLIST_SUB+= MACRESOLV=""
|
||||||
.else
|
.else
|
||||||
CONFIGURE_ARGS+=--disable-mac-resolv
|
PLIST_SUB+= MACRESOLV="@comment "
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
post-patch:
|
post-patch:
|
||||||
|
@ -69,6 +72,12 @@ do-install:
|
||||||
.if ${PORT_OPTIONS:MPY4SUITE}
|
.if ${PORT_OPTIONS:MPY4SUITE}
|
||||||
${INSTALL_SCRIPT} ${WRKSRC}/create_html_table.py ${DATADIR}
|
${INSTALL_SCRIPT} ${WRKSRC}/create_html_table.py ${DATADIR}
|
||||||
.endif
|
.endif
|
||||||
|
.if ${PORT_OPTIONS:MMACRESOLV}
|
||||||
|
${MKDIR} ${DATADIR}/plugins/mac_resolv
|
||||||
|
${INSTALL_SCRIPT} ${WRKSRC}/plugins/mac_resolv/make-manuf ${DATADIR}/plugins/mac_resolv
|
||||||
|
${INSTALL_DATA} ${WRKSRC}/plugins/mac_resolv/*.tmpl ${DATADIR}/plugins/mac_resolv
|
||||||
|
${INSTALL_DATA} ${WRKSRC}/plugins/mac_resolv/manuf ${DATADIR}/plugins/mac_resolv
|
||||||
|
.endif
|
||||||
|
|
||||||
${MKDIR} ${ETCDIR}
|
${MKDIR} ${ETCDIR}
|
||||||
${INSTALL_DATA} ${WRKSRC}/config_ndpmon.xml ${ETCDIR}/config_ndpmon.xml-dist
|
${INSTALL_DATA} ${WRKSRC}/config_ndpmon.xml ${ETCDIR}/config_ndpmon.xml-dist
|
||||||
|
@ -81,5 +90,8 @@ post-install:
|
||||||
${MKDIR} ${DOCSDIR}
|
${MKDIR} ${DOCSDIR}
|
||||||
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
|
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
|
||||||
.endif
|
.endif
|
||||||
|
.if ${PORT_OPTIONS:MMACRESOLV}
|
||||||
|
@${CAT} ${PKGMESSAGE}.MACRESOLV
|
||||||
|
.endif
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -1,8 +1,13 @@
|
||||||
|
--- config_ndpmon.xml.in.orig 2009-08-13 11:22:21.000000000 +0200
|
||||||
$FreeBSD$
|
+++ config_ndpmon.xml.in 2013-06-10 00:36:17.000000000 +0200
|
||||||
|
@@ -1,6 +1,6 @@
|
||||||
--- config_ndpmon.xml.in.orig
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||||
+++ config_ndpmon.xml.in
|
<?xml-stylesheet type="text/xsl" href="config.xsl" ?>
|
||||||
|
-<!DOCTYPE config_ndpmon SYSTEM "@CONFDIR@/ndpmon/config_ndpmon.dtd">
|
||||||
|
+<!DOCTYPE config_ndpmon SYSTEM "%%PREFIX%%/share/ndpmon/config_ndpmon.dtd">
|
||||||
|
<config_ndpmon>
|
||||||
|
<ignor_autoconf>1</ignor_autoconf>
|
||||||
|
<syslog_facility>LOG_LOCAL1</syslog_facility>
|
||||||
@@ -8,12 +8,12 @@
|
@@ -8,12 +8,12 @@
|
||||||
<actions_low_pri>
|
<actions_low_pri>
|
||||||
<sendmail>1</sendmail>
|
<sendmail>1</sendmail>
|
||||||
|
|
|
@ -1,13 +1,12 @@
|
||||||
|
--- ndpmon_defs.h.in.orig 2009-08-13 11:22:21.000000000 +0200
|
||||||
$FreeBSD$
|
+++ ndpmon_defs.h.in 2013-06-09 22:25:30.000000000 +0200
|
||||||
|
@@ -9,12 +9,12 @@
|
||||||
--- ndpmon_defs.h.in.orig
|
#include "./plugins/mac_resolv/mac_resolv.h"
|
||||||
+++ ndpmon_defs.h.in
|
|
||||||
@@ -10,11 +10,11 @@
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define _CONFIG_PATH_ "@CONFDIR@/ndpmon/config_ndpmon.xml"
|
-#define _CONFIG_PATH_ "@CONFDIR@/ndpmon/config_ndpmon.xml"
|
||||||
-#define _CONFIG_DTD_PATH_ "@CONFDIR@/ndpmon/config_ndpmon.dtd"
|
-#define _CONFIG_DTD_PATH_ "@CONFDIR@/ndpmon/config_ndpmon.dtd"
|
||||||
|
+#define _CONFIG_PATH_ "@prefix@/etc/ndpmon/config_ndpmon.xml"
|
||||||
+#define _CONFIG_DTD_PATH_ "@prefix@/share/ndpmon/config_ndpmon.dtd"
|
+#define _CONFIG_DTD_PATH_ "@prefix@/share/ndpmon/config_ndpmon.dtd"
|
||||||
#define _CACHE_PATH_ "@VARDATADIR@/ndpmon/neighbor_list.xml"
|
#define _CACHE_PATH_ "@VARDATADIR@/ndpmon/neighbor_list.xml"
|
||||||
-#define _CACHE_DTD_PATH_ "@VARDATADIR@/ndpmon/neighbor_list.dtd"
|
-#define _CACHE_DTD_PATH_ "@VARDATADIR@/ndpmon/neighbor_list.dtd"
|
||||||
|
|
10
net-mgmt/ndpmon/pkg-message.MACRESOLV
Normal file
10
net-mgmt/ndpmon/pkg-message.MACRESOLV
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
|
||||||
|
*****************************************************************
|
||||||
|
* *
|
||||||
|
* To update to local MAC database run the following commands: *
|
||||||
|
* *
|
||||||
|
* cd /usr/local/share/ndpmon/plugins/mac_resolv/ *
|
||||||
|
* ./make-manuf *
|
||||||
|
* /usr/local/etc/rc.d/ndpmonitor restart *
|
||||||
|
* *
|
||||||
|
*****************************************************************
|
|
@ -4,8 +4,14 @@ sbin/ndpmon
|
||||||
%%DATADIR%%/demopipeprogram.pl.sample
|
%%DATADIR%%/demopipeprogram.pl.sample
|
||||||
%%DATADIR%%/neighbor_list.dtd
|
%%DATADIR%%/neighbor_list.dtd
|
||||||
%%PY%%%%DATADIR%%/create_html_table.py
|
%%PY%%%%DATADIR%%/create_html_table.py
|
||||||
|
%%MACRESOLV%%%%DATADIR%%/plugins/mac_resolv/make-manuf
|
||||||
|
%%MACRESOLV%%%%DATADIR%%/plugins/mac_resolv/manuf.tmpl
|
||||||
|
%%MACRESOLV%%%%DATADIR%%/plugins/mac_resolv/wka.tmpl
|
||||||
|
%%MACRESOLV%%%%DATADIR%%/plugins/mac_resolv/manuf
|
||||||
var/ndpmon/neighbor_list.xml
|
var/ndpmon/neighbor_list.xml
|
||||||
@dirrmtry var/ndpmon
|
@dirrmtry var/ndpmon
|
||||||
@dirrmtry var
|
@dirrmtry var
|
||||||
|
@dirrmtry %%DATADIR%%/plugins/mac_resolv
|
||||||
|
@dirrmtry %%DATADIR%%/plugins
|
||||||
@dirrmtry %%DATADIR%%
|
@dirrmtry %%DATADIR%%
|
||||||
@dirrmtry %%ETCDIR%%
|
@dirrmtry %%ETCDIR%%
|
||||||
|
|
Loading…
Add table
Reference in a new issue