diff options
author | will <will@FreeBSD.org> | 2003-06-03 02:31:10 +0000 |
---|---|---|
committer | will <will@FreeBSD.org> | 2003-06-03 02:31:10 +0000 |
commit | 4f1fc47c3e77003d0b12073da90714ad641471a9 (patch) | |
tree | dd15d0726d373cfa7cd08a7c1e7b8d699f45a1df /net/nicmond | |
parent | b24c79c859eecd1a9a03aa6c4a8c63cf8cbf01a3 (diff) | |
download | FreeBSD-ports-4f1fc47c3e77003d0b12073da90714ad641471a9.zip FreeBSD-ports-4f1fc47c3e77003d0b12073da90714ad641471a9.tar.gz |
Add nicmond 1.1, a network interface monitor.
PR: 52637
Submitted by: Dan Pelleg <daniel+nicmond@pelleg.org>
Diffstat (limited to 'net/nicmond')
-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 |
8 files changed, 120 insertions, 0 deletions
diff --git a/net/nicmond/Makefile b/net/nicmond/Makefile new file mode 100644 index 0000000..2ad597b --- /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 0000000..0002ba65 --- /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 0000000..a143ad3 --- /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 0000000..bcef2fe --- /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 0000000..35533c6 --- /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 0000000..1626bb2 --- /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 0000000..cd5769c --- /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 0000000..71b096a --- /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 |