mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
Add nicmond 1.1, a network interface monitor.
PR: 52637 Submitted by: Dan Pelleg <daniel+nicmond@pelleg.org>
This commit is contained in:
parent
5f1a602f7b
commit
a974fe2774
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=82089
@ -364,6 +364,7 @@
|
||||
SUBDIR += ngrep
|
||||
SUBDIR += ngrep-lib
|
||||
SUBDIR += nic
|
||||
SUBDIR += nicmond
|
||||
SUBDIR += nitpicker
|
||||
SUBDIR += nload
|
||||
SUBDIR += nocol
|
||||
|
34
net/nicmond/Makefile
Normal file
34
net/nicmond/Makefile
Normal file
@ -0,0 +1,34 @@
|
||||
# New ports collection makefile for: nicmond
|
||||
# Date created: 2003/05/23
|
||||
# Whom: Dan Pelleg <daniel+nicmond@pelleg.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= nicmond
|
||||
PORTVERSION= 1.1
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= http://www.agt.ne.jp/~a-gota/programs/nicmond/ \
|
||||
http://web.cs.cmu.edu/~dpelleg/download/
|
||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||
|
||||
PATCH_SITES= http://web.cs.cmu.edu/~dpelleg/download/
|
||||
PATCHFILES= nicmond-doc-en-1.1.diff
|
||||
|
||||
MAINTAINER= daniel+nicmond@pelleg.org
|
||||
COMMENT= Network interface monitor
|
||||
|
||||
MANLANG= ja
|
||||
MANCOMPRESSED= yes
|
||||
MAN5= nicmond.conf.5
|
||||
MAN8= nicmond.8
|
||||
|
||||
post-install:
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${DOCSDIR}
|
||||
cd ${WRKSRC} && \
|
||||
${INSTALL_DATA} README README.en ${DOCSDIR}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
34
net/nicmond/Makefile~
Normal file
34
net/nicmond/Makefile~
Normal file
@ -0,0 +1,34 @@
|
||||
# New ports collection makefile for: nicmond
|
||||
# Date created: 2003/05/23
|
||||
# Whom: Dan Pelleg <daniel+nicmond@pelleg.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= nicmond
|
||||
PORTVERSION= 1.1
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= http://www.agt.ne.jp/~a-gota/programs/nicmond/ \
|
||||
http://web.cs.cmu.edu/~dpelleg/download/
|
||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||
|
||||
PATCH_SITES= http://web.cs.cmu.edu/~dpelleg/download/
|
||||
PATCHFILES= nicmond-doc-en-1.1.diff
|
||||
|
||||
MAINTAINER= daniel+nicmond@pelleg.org
|
||||
COMMENT= Wait for a carrier signal on a NIC and launch a configuration script
|
||||
|
||||
MANLANG= ja
|
||||
MANCOMPRESSED= yes
|
||||
MAN5= nicmond.conf.5
|
||||
MAN8= nicmond.8
|
||||
|
||||
post-install:
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${DOCSDIR}
|
||||
cd ${WRKSRC} && \
|
||||
${INSTALL_DATA} README README.en ${DOCSDIR}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
2
net/nicmond/distinfo
Normal file
2
net/nicmond/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
MD5 (nicmond-1.1.tar.gz) = 6254f5ede7ede0e1dc3fe6d3d0813ff9
|
||||
MD5 (nicmond-doc-en-1.1.diff) = 76680c7fbbb026ae54cf999eff519995
|
9
net/nicmond/files/patch-aa
Normal file
9
net/nicmond/files/patch-aa
Normal file
@ -0,0 +1,9 @@
|
||||
--- Makefile.org Fri May 23 20:21:18 2003
|
||||
+++ Makefile Fri May 23 20:21:34 2003
|
||||
@@ -1,6 +1,3 @@
|
||||
-CFLAGS= -O2 -Wall
|
||||
-PREFIX= /usr/local
|
||||
-
|
||||
all: nicmond
|
||||
|
||||
nicmond: nicmond.c
|
20
net/nicmond/files/patch-ab
Normal file
20
net/nicmond/files/patch-ab
Normal file
@ -0,0 +1,20 @@
|
||||
--- nicmond.conf.orig Fri May 23 22:01:51 2003
|
||||
+++ nicmond.conf Fri May 23 22:02:43 2003
|
||||
@@ -6,10 +6,11 @@
|
||||
info info
|
||||
|
||||
interface fxp0
|
||||
- up /etc/pccard_ether $device start
|
||||
- up /sbin/rtsol $device
|
||||
- down /etc/pccard_ether $device stop
|
||||
+#select and un-comment "up" and/or "down" actions as needed
|
||||
+# up /etc/pccard_ether $device start
|
||||
+# up /sbin/rtsol $device
|
||||
+# down /etc/pccard_ether $device stop
|
||||
# down /sbin/route delete $myaddr4 localhost
|
||||
- down /sbin/ifconfig $device inet6 $myaddr6 delete
|
||||
- down /usr/local/libexec/cleanup_inet6_route $device
|
||||
- down /sbin/ifconfig $device down
|
||||
+# down /sbin/ifconfig $device inet6 $myaddr6 delete
|
||||
+# down /usr/local/libexec/cleanup_inet6_route $device
|
||||
+# down /sbin/ifconfig $device down
|
7
net/nicmond/pkg-descr
Normal file
7
net/nicmond/pkg-descr
Normal file
@ -0,0 +1,7 @@
|
||||
This program watches the link status of a network interface. When a
|
||||
change of state is detected, a script is launched. This is useful
|
||||
for machines that need to configure themselves whenever they are
|
||||
plugged into or out of the network, such as laptops.
|
||||
|
||||
-- Dan Pelleg
|
||||
daniel+nicmond@pelleg.org
|
7
net/nicmond/pkg-message
Normal file
7
net/nicmond/pkg-message
Normal file
@ -0,0 +1,7 @@
|
||||
To configure nicmond, do the following:
|
||||
|
||||
1. Edit ${PREFIX}/etc/rc.d/nicmond.sh and set "if" to the
|
||||
name of the interface you want to monitor.
|
||||
|
||||
2. Edit ${PREFIX}/etc/nicmond.conf and configure "up"
|
||||
and "down" actions.
|
7
net/nicmond/pkg-plist
Normal file
7
net/nicmond/pkg-plist
Normal file
@ -0,0 +1,7 @@
|
||||
sbin/nicmond
|
||||
etc/nicmond.conf
|
||||
etc/rc.d/nicmond.sh
|
||||
libexec/cleanup_inet6_route
|
||||
%%PORTDOCS%%share/doc/nicmond/README
|
||||
%%PORTDOCS%%share/doc/nicmond/README.en
|
||||
%%PORTDOCS%%@dirrm share/doc/nicmond
|
Loading…
Reference in New Issue
Block a user