diff options
author | will <will@FreeBSD.org> | 2003-06-03 10:31:10 +0800 |
---|---|---|
committer | will <will@FreeBSD.org> | 2003-06-03 10:31:10 +0800 |
commit | 4f1fc47c3e77003d0b12073da90714ad641471a9 (patch) | |
tree | dd15d0726d373cfa7cd08a7c1e7b8d699f45a1df /net | |
parent | b24c79c859eecd1a9a03aa6c4a8c63cf8cbf01a3 (diff) | |
download | freebsd-ports-graphics-4f1fc47c3e77003d0b12073da90714ad641471a9.tar.gz freebsd-ports-graphics-4f1fc47c3e77003d0b12073da90714ad641471a9.tar.zst freebsd-ports-graphics-4f1fc47c3e77003d0b12073da90714ad641471a9.zip |
Add nicmond 1.1, a network interface monitor.
PR: 52637
Submitted by: Dan Pelleg <daniel+nicmond@pelleg.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/Makefile | 1 | ||||
-rw-r--r-- | net/nicmond/Makefile | 34 | ||||
-rw-r--r-- | net/nicmond/Makefile~ | 34 | ||||
-rw-r--r-- | net/nicmond/distinfo | 2 | ||||
-rw-r--r-- | net/nicmond/files/patch-aa | 9 | ||||
-rw-r--r-- | net/nicmond/files/patch-ab | 20 | ||||
-rw-r--r-- | net/nicmond/pkg-descr | 7 | ||||
-rw-r--r-- | net/nicmond/pkg-message | 7 | ||||
-rw-r--r-- | net/nicmond/pkg-plist | 7 |
9 files changed, 121 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile index ae4d9fbeae4..c478d637d0f 100644 --- a/net/Makefile +++ b/net/Makefile @@ -364,6 +364,7 @@ SUBDIR += ngrep SUBDIR += ngrep-lib SUBDIR += nic + SUBDIR += nicmond SUBDIR += nitpicker SUBDIR += nload SUBDIR += nocol diff --git a/net/nicmond/Makefile b/net/nicmond/Makefile new file mode 100644 index 00000000000..2ad597bcb88 --- /dev/null +++ b/net/nicmond/Makefile @@ -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> diff --git a/net/nicmond/Makefile~ b/net/nicmond/Makefile~ new file mode 100644 index 00000000000..0002ba65e0d --- /dev/null +++ b/net/nicmond/Makefile~ @@ -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> diff --git a/net/nicmond/distinfo b/net/nicmond/distinfo new file mode 100644 index 00000000000..a143ad391f2 --- /dev/null +++ b/net/nicmond/distinfo @@ -0,0 +1,2 @@ +MD5 (nicmond-1.1.tar.gz) = 6254f5ede7ede0e1dc3fe6d3d0813ff9 +MD5 (nicmond-doc-en-1.1.diff) = 76680c7fbbb026ae54cf999eff519995 diff --git a/net/nicmond/files/patch-aa b/net/nicmond/files/patch-aa new file mode 100644 index 00000000000..bcef2fef821 --- /dev/null +++ b/net/nicmond/files/patch-aa @@ -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 diff --git a/net/nicmond/files/patch-ab b/net/nicmond/files/patch-ab new file mode 100644 index 00000000000..35533c61f47 --- /dev/null +++ b/net/nicmond/files/patch-ab @@ -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 diff --git a/net/nicmond/pkg-descr b/net/nicmond/pkg-descr new file mode 100644 index 00000000000..1626bb203d3 --- /dev/null +++ b/net/nicmond/pkg-descr @@ -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 diff --git a/net/nicmond/pkg-message b/net/nicmond/pkg-message new file mode 100644 index 00000000000..cd5769c4afb --- /dev/null +++ b/net/nicmond/pkg-message @@ -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. diff --git a/net/nicmond/pkg-plist b/net/nicmond/pkg-plist new file mode 100644 index 00000000000..71b096a1205 --- /dev/null +++ b/net/nicmond/pkg-plist @@ -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 |