diff options
author | hubertf <hubertf@pkgsrc.org> | 2002-05-05 23:51:27 +0000 |
---|---|---|
committer | hubertf <hubertf@pkgsrc.org> | 2002-05-05 23:51:27 +0000 |
commit | 503887e0ad1ba2b087f1a6dc9273bc7cb4266095 (patch) | |
tree | 6e0779c44298aa65c557e1ecfff4d2bab7363a75 /net/nidentd/patches | |
parent | 379ae4c13c2ed761cfd2801b67546a5abd24a1d3 (diff) | |
download | pkgsrc-503887e0ad1ba2b087f1a6dc9273bc7cb4266095.tar.gz |
Update nidentd to 1.0. Changes:
* fake support
Submitted by Dawid SzymaƱski <dawszy@arhea.net> in private mail.
Diffstat (limited to 'net/nidentd/patches')
-rw-r--r-- | net/nidentd/patches/patch-aa | 29 |
1 files changed, 12 insertions, 17 deletions
diff --git a/net/nidentd/patches/patch-aa b/net/nidentd/patches/patch-aa index 84cd43606d6..6d6da9f2e03 100644 --- a/net/nidentd/patches/patch-aa +++ b/net/nidentd/patches/patch-aa @@ -1,22 +1,17 @@ -$NetBSD: patch-aa,v 1.2 2002/03/29 17:10:02 hubertf Exp $ +$NetBSD: patch-aa,v 1.3 2002/05/05 23:51:28 hubertf Exp $ ---- nidentd.sh.orig Thu Mar 28 13:54:38 2002 -+++ nidentd.sh -@@ -25,7 +25,7 @@ - # - # Path to LSOF ! +--- nidentd.orig Mon May 6 00:37:54 2002 ++++ nidentd +@@ -1,9 +1,9 @@ + #!/bin/sh --lsof="/usr/pkg/sbin/lsof -P -n -i -Di" -+lsof="@LOCALBASE@/sbin/lsof -P -n -i -Di" +-v_lsof="/usr/pkg/sbin/lsof -P -n -Di" ++v_lsof="@LOCALBASE@/sbin/lsof -P -n -Di" + v_ipnat="/usr/sbin/ipnat -l" +-v_nat_conf="/usr/local/etc/nidentd.nat" +-v_fake_conf="/usr/local/etc/nidentd.fake" ++v_nat_conf="@LOCALBASE@/etc/nidentd.nat" ++v_fake_conf="@LOCALBASE@/etc/nidentd.fake" # Protocol independent -@@ -42,7 +42,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 ] |