summaryrefslogtreecommitdiff
path: root/net/nidentd/patches
diff options
context:
space:
mode:
authorhubertf <hubertf@pkgsrc.org>2002-03-27 22:25:18 +0000
committerhubertf <hubertf@pkgsrc.org>2002-03-27 22:25:18 +0000
commitacb1c365f5430a7f91981af0a0be7749623f35ea (patch)
tree08215ea95c5185d5dcbbd01160b8466ba2592cb4 /net/nidentd/patches
parent13f685bb2dc80e8b702660d90a71f8cb94457545 (diff)
downloadpkgsrc-acb1c365f5430a7f91981af0a0be7749623f35ea.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/nidentd/patches')
-rw-r--r--net/nidentd/patches/patch-aa22
1 files changed, 22 insertions, 0 deletions
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 ]