diff options
author | hubertf <hubertf> | 2002-03-27 22:25:18 +0000 |
---|---|---|
committer | hubertf <hubertf> | 2002-03-27 22:25:18 +0000 |
commit | 0d452d8304d0bb9978dc28ee6c1cc013f35cc2af (patch) | |
tree | 08215ea95c5185d5dcbbd01160b8466ba2592cb4 /net | |
parent | 06974de34088e0c1c6dfeeeaba81d9b683e329d7 (diff) | |
download | pkgsrc-0d452d8304d0bb9978dc28ee6c1cc013f35cc2af.tar.gz |
Add nidentd-0.3.
A IPv6 and IPv4+NAT enabled identd that's absed on lsof for all
the kernel digging stuff.
Diffstat (limited to 'net')
-rw-r--r-- | net/nidentd/DESCR | 1 | ||||
-rw-r--r-- | net/nidentd/MESSAGE | 7 | ||||
-rw-r--r-- | net/nidentd/Makefile | 25 | ||||
-rw-r--r-- | net/nidentd/PLIST | 3 | ||||
-rw-r--r-- | net/nidentd/distinfo | 4 | ||||
-rw-r--r-- | net/nidentd/patches/patch-aa | 22 |
6 files changed, 62 insertions, 0 deletions
diff --git a/net/nidentd/DESCR b/net/nidentd/DESCR new file mode 100644 index 00000000000..8e47e3f5cb2 --- /dev/null +++ b/net/nidentd/DESCR @@ -0,0 +1 @@ +identd that does IPv6, IPv4 and NAT with IPv4. diff --git a/net/nidentd/MESSAGE b/net/nidentd/MESSAGE new file mode 100644 index 00000000000..d85cd180351 --- /dev/null +++ b/net/nidentd/MESSAGE @@ -0,0 +1,7 @@ +** To activate nidentd, you need to add the following lines to your +** /etc/inetd.conf file: +** +** ident stream tcp nowait root ${PREFIX}/libexec/nidentd nidentd -m +** ident stream tcp6 nowait nobody ${PREFIX}/libexec/nidentd nidentd -6 +** +** After that, restart/HUP inetd: kill -HUP `cat /var/run/inetd.conf` diff --git a/net/nidentd/Makefile b/net/nidentd/Makefile new file mode 100644 index 00000000000..4cbd5071f3d --- /dev/null +++ b/net/nidentd/Makefile @@ -0,0 +1,25 @@ +# $NetBSD: Makefile,v 1.1.1.1 2002/03/27 22:25:18 hubertf Exp $ +# + +DISTNAME= nidentd-0.3 +CATEGORIES= net sysutils +MASTER_SITES= ftp://ftp.arhea.net/pub/NetBSD/nidentd/ +EXTRACT_SUFX= .tgz + +MAINTAINER= hubertf@netbsd.org +COMMENT= identd that supports IPv4, IPv6 and NAT + +DEPENDS+= lsof-*:../../sysutils/lsof + +WRKSRC= ${WRKDIR}/nidentd + +do-build: + ${SED} \ + -e 's,@LOCALBASE@,${LOCALBASE},' \ + <${WRKSRC}/nidentd.sh >${WRKSRC}/nidentd + +do-install: + ${INSTALL_DATA} ${WRKSRC}/identn.conf ${PREFIX}/etc/nidentd.conf.example ; \ + ${INSTALL_SCRIPT} ${WRKSRC}/nidentd ${PREFIX}/libexec + +.include "../../mk/bsd.pkg.mk" diff --git a/net/nidentd/PLIST b/net/nidentd/PLIST new file mode 100644 index 00000000000..4fe8680efad --- /dev/null +++ b/net/nidentd/PLIST @@ -0,0 +1,3 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2002/03/27 22:25:18 hubertf Exp $ +libexec/nidentd +etc/nidentd.conf.example diff --git a/net/nidentd/distinfo b/net/nidentd/distinfo new file mode 100644 index 00000000000..c6ff6bb4bda --- /dev/null +++ b/net/nidentd/distinfo @@ -0,0 +1,4 @@ + +SHA1 (nidentd-0.3.tgz) = 0cc1e450e148aef5cdcebb19c959528c60967135 +Size (nidentd-0.3.tgz) = 1151 bytes +SHA1 (patch-aa) = f6660e147074ef955fe369f5e554bb48ade3d5e2 diff --git a/net/nidentd/patches/patch-aa b/net/nidentd/patches/patch-aa new file mode 100644 index 00000000000..af7db1b9c18 --- /dev/null +++ b/net/nidentd/patches/patch-aa @@ -0,0 +1,22 @@ +$NetBSD: patch-aa,v 1.1.1.1 2002/03/27 22:25:18 hubertf Exp $ + +--- nidentd.sh.orig Tue Mar 26 13:20:06 2002 ++++ nidentd.sh +@@ -21,7 +21,7 @@ + # + # Path to LSOF ! + +-lsof="/usr/pkg/sbin/lsof" ++lsof="@LOCALBASE@/sbin/lsof -Di" + + # Protocol independent + +@@ -38,7 +38,7 @@ + masqip=`/usr/sbin/ipnat -l | grep MAP | egrep " $qlport " | egrep " $qrport" | awk '{ print $2 }' | tr -c -d '.1234567890'` + lport=`/usr/sbin/ipnat -l | grep MAP | egrep " $qlport " | egrep " $qrport" | awk '{ print $7 }'` + rport=`/usr/sbin/ipnat -l | grep MAP | egrep " $qlport " | egrep " $qrport" | awk '{ print $9 }' | tr -d ] ` +-hostn=`grep ^$masqip /usr/local/etc/identn.conf | awk -F: '{ print $2 }'` ++hostn=`grep ^$masqip /usr/local/etc/nidentd.conf | awk -F: '{ print $2 }'` + if [ -n $qlport ] && [ -n $qrport ] && [ -n $lport ] && [ $rport ] + then + if [ $qlport -eq $lport ] && [ $qrport -eq $rport ] |