diff options
author | Oliver Lehmann <oliver@FreeBSD.org> | 2005-04-26 19:17:32 +0000 |
---|---|---|
committer | Oliver Lehmann <oliver@FreeBSD.org> | 2005-04-26 19:17:32 +0000 |
commit | 39baf03e56f6b08644601e8047ac1e95576260f8 (patch) | |
tree | d7d279408016a794429dc24c869e2650e3cefb31 /security/courier-authlib-base/files/patch-userdb::pw2userdb.in | |
parent | - retire non working port, no more releases, project stalled. (diff) |
move mail/courier-authlib to security/courier-authlib which is a meta-port now.
Submitted by: Yarema <yds@CoolRat.org>
In corporation with: Jose M Rodriguez <josemi@freebsd.jazztel.es>, Milan Obuch <ports@dino.sk>, myself
Notes
Notes:
svn path=/head/; revision=134220
Diffstat (limited to 'security/courier-authlib-base/files/patch-userdb::pw2userdb.in')
-rw-r--r-- | security/courier-authlib-base/files/patch-userdb::pw2userdb.in | 104 |
1 files changed, 0 insertions, 104 deletions
diff --git a/security/courier-authlib-base/files/patch-userdb::pw2userdb.in b/security/courier-authlib-base/files/patch-userdb::pw2userdb.in deleted file mode 100644 index 7cb79aa49b02..000000000000 --- a/security/courier-authlib-base/files/patch-userdb::pw2userdb.in +++ /dev/null @@ -1,104 +0,0 @@ ---- userdb/pw2userdb.in.orig Wed Jul 19 13:55:15 2000 -+++ userdb/pw2userdb.in Tue Mar 1 21:58:51 2005 -@@ -7,6 +7,8 @@ - # Copyright 1998 - 1999 Double Precision, Inc. See COPYING for - # distribution information. - -+# Adapted to BSD master.passwd -+ - use Getopt::Long; - - # -@@ -22,42 +24,66 @@ - if $vpopuid; - - $passwd="/etc/passwd" unless $passwd =~ /./; --$shadow="/etc/shadow" unless $shadow =~ /./; -+$shadow="/etc/master.passwd" unless $shadow =~ /./; - - $domain="" unless $domain =~ /./; - $domain="\@$domain" if $domain =~ /./; - --open(PASSWD, $passwd) || die "$!\n"; -- --while (<PASSWD>) -+if (! $noshadow && $shadow =~ /master.passwd$/) - { -- chop if /\n$/; -- next if /^#/; -- ($acct,$passwd,$uid,$gid,$name,$home,$shell)=split( /:/ ); -- -- ($uid,$gid)=($fixed_uid,$fixed_gid) if $vpopuid; -- -- $PASSWORD{$acct}=$passwd if $passwd ne "x"; -- $UID{$acct}=$uid; -- $GID{$acct}=$gid; -- $HOME{$acct}=$home; -- $SHELL{$acct}=$shell; -- -- $name =~ s/\|/./g; # Just in case -- $GECOS{$acct}=$name; --} --close (PASSWD); -+ open(PASSWD, $shadow) || die "$!\n"; - --if ( -f $shadow && ! $noshadow) --{ -- open (SHADOW, $shadow) || die "$!\n"; -- while (<SHADOW>) -+ while (<PASSWD>) - { -+ chop if /\n$/; - next if /^#/; -- ($acct,$passwd,$dummy)=split(/:/); -+ ($acct,$passwd,$uid,$gid,$class,$change,$expire,$name,$home,$shell)=split( /:/ ); -+ -+ ($uid,$gid)=($fixed_uid,$fixed_gid) if $vpopuid; -+ $name =~ s/\|/./g; # Just in case -+ - $PASSWORD{$acct}=$passwd; -+ $UID{$acct}=$uid; -+ $GID{$acct}=$gid; -+ $HOME{$acct}=$home; -+ $SHELL{$acct}=$shell; -+ $GECOS{$acct}=$name; -+ } -+ close (PASSWD); -+} else { -+ open(PASSWD, $passwd) || die "$!\n"; -+ -+ while (<PASSWD>) -+ { -+ chop if /\n$/; -+ next if /^#/; -+ ($acct,$passwd,$uid,$gid,$name,$home,$shell)=split( /:/ ); -+ -+ ($uid,$gid)=($fixed_uid,$fixed_gid) if $vpopuid; -+ -+ $PASSWORD{$acct}=$passwd if $passwd ne "x"; -+ $UID{$acct}=$uid; -+ $GID{$acct}=$gid; -+ $HOME{$acct}=$home; -+ $SHELL{$acct}=$shell; -+ -+ $name =~ s/\|/./g; # Just in case -+ $GECOS{$acct}=$name; -+ } -+ close (PASSWD); -+ -+ if ( -f $shadow && ! $noshadow) -+ { -+ open (SHADOW, $shadow) || die "$!\n"; -+ while (<SHADOW>) -+ { -+ -+ next if /^#/; -+ ($acct,$passwd,$dummy)=split(/:/); -+ $PASSWORD{$acct}=$passwd; -+ } -+ close (SHADOW); - } -- close (SHADOW); - } - - while ( defined ($key=each %UID)) |