1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

Add nsswitch support, required when running on -CURRENT.

Obtained from:	Daniel Néri <dne@mayonnaise.net>
This commit is contained in:
Jimmy Olgeni 2003-09-26 11:46:55 +00:00
parent 77c89c1e4f
commit 3114b9d27c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=89445
6 changed files with 48 additions and 2 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= erlang
PORTVERSION= r9c0
PORTREVISION= 2
PORTREVISION= 3
PORTEPOCH= 1
CATEGORIES= lang
MASTER_SITES= ftp://ftp.erlang.org/pub/download/ \

View File

@ -0,0 +1,19 @@
$FreeBSD$
--- lib/kernel/src/inet_config.erl.orig Mon Jul 7 14:06:28 2003
+++ lib/kernel/src/inet_config.erl Fri Sep 19 14:21:14 2003
@@ -78,7 +78,12 @@
error("can't set lookup to native: ~p", [Reason])
end;
freebsd -> %% we may have to check version (2.2.2)
- load_resolv(filename:join(Etc,"host.conf"), host_conf_freebsd);
+ case os:version() of
+ {Major,_,_} when Major >= 5 ->
+ load_resolv(filename:join(Etc,"nsswitch.conf"), nsswitch_conf);
+ _ ->
+ load_resolv(filename:join(Etc,"host.conf"), host_conf_freebsd)
+ end;
'bsd/os' ->
load_resolv(filename:join(Etc,"irs.conf"), host_conf_bsdos);
linux ->

View File

@ -1,4 +1,8 @@
===========================================================================
This package requires a properly configured nsswitch.conf on FreeBSD
5.x, else nameserver queries (and the distribution protocol) will
not work.
Installation tips:
You can find an emacs mode for Erlang here:

View File

@ -7,7 +7,7 @@
PORTNAME= erlang
PORTVERSION= r9c0
PORTREVISION= 2
PORTREVISION= 3
PORTEPOCH= 1
CATEGORIES= lang
MASTER_SITES= ftp://ftp.erlang.org/pub/download/ \

View File

@ -0,0 +1,19 @@
$FreeBSD$
--- lib/kernel/src/inet_config.erl.orig Mon Jul 7 14:06:28 2003
+++ lib/kernel/src/inet_config.erl Fri Sep 19 14:21:14 2003
@@ -78,7 +78,12 @@
error("can't set lookup to native: ~p", [Reason])
end;
freebsd -> %% we may have to check version (2.2.2)
- load_resolv(filename:join(Etc,"host.conf"), host_conf_freebsd);
+ case os:version() of
+ {Major,_,_} when Major >= 5 ->
+ load_resolv(filename:join(Etc,"nsswitch.conf"), nsswitch_conf);
+ _ ->
+ load_resolv(filename:join(Etc,"host.conf"), host_conf_freebsd)
+ end;
'bsd/os' ->
load_resolv(filename:join(Etc,"irs.conf"), host_conf_bsdos);
linux ->

View File

@ -1,4 +1,8 @@
===========================================================================
This package requires a properly configured nsswitch.conf on FreeBSD
5.x, else nameserver queries (and the distribution protocol) will
not work.
Installation tips:
You can find an emacs mode for Erlang here: