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:
parent
77c89c1e4f
commit
3114b9d27c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=89445
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= erlang
|
||||
PORTVERSION= r9c0
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
PORTEPOCH= 1
|
||||
CATEGORIES= lang
|
||||
MASTER_SITES= ftp://ftp.erlang.org/pub/download/ \
|
||||
|
19
lang/erlang/files/patch-lib_kernel_src_inet__config.erl
Normal file
19
lang/erlang/files/patch-lib_kernel_src_inet__config.erl
Normal 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 ->
|
@ -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:
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= erlang
|
||||
PORTVERSION= r9c0
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
PORTEPOCH= 1
|
||||
CATEGORIES= lang
|
||||
MASTER_SITES= ftp://ftp.erlang.org/pub/download/ \
|
||||
|
19
lang/erlang14/files/patch-lib_kernel_src_inet__config.erl
Normal file
19
lang/erlang14/files/patch-lib_kernel_src_inet__config.erl
Normal 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 ->
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user