mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04: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
6 changed files with 48 additions and 2 deletions
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
PORTNAME= erlang
|
PORTNAME= erlang
|
||||||
PORTVERSION= r9c0
|
PORTVERSION= r9c0
|
||||||
PORTREVISION= 2
|
PORTREVISION= 3
|
||||||
PORTEPOCH= 1
|
PORTEPOCH= 1
|
||||||
CATEGORIES= lang
|
CATEGORIES= lang
|
||||||
MASTER_SITES= ftp://ftp.erlang.org/pub/download/ \
|
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:
|
Installation tips:
|
||||||
|
|
||||||
You can find an emacs mode for Erlang here:
|
You can find an emacs mode for Erlang here:
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
PORTNAME= erlang
|
PORTNAME= erlang
|
||||||
PORTVERSION= r9c0
|
PORTVERSION= r9c0
|
||||||
PORTREVISION= 2
|
PORTREVISION= 3
|
||||||
PORTEPOCH= 1
|
PORTEPOCH= 1
|
||||||
CATEGORIES= lang
|
CATEGORIES= lang
|
||||||
MASTER_SITES= ftp://ftp.erlang.org/pub/download/ \
|
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:
|
Installation tips:
|
||||||
|
|
||||||
You can find an emacs mode for Erlang here:
|
You can find an emacs mode for Erlang here:
|
||||||
|
|
Loading…
Add table
Reference in a new issue