diff options
author | olgeni <olgeni@FreeBSD.org> | 2003-09-26 19:46:55 +0800 |
---|---|---|
committer | olgeni <olgeni@FreeBSD.org> | 2003-09-26 19:46:55 +0800 |
commit | e7a147fc9ca3a3fd93095a91fd3e1a3959e29299 (patch) | |
tree | 905fbb55f6b5976c3b7fb4d95ce6e1b3bec26de0 /lang/erlang14 | |
parent | 6bccded79fd2833e4d262ac55da88acfdbdbc24c (diff) | |
download | freebsd-ports-gnome-e7a147fc9ca3a3fd93095a91fd3e1a3959e29299.tar.gz freebsd-ports-gnome-e7a147fc9ca3a3fd93095a91fd3e1a3959e29299.tar.zst freebsd-ports-gnome-e7a147fc9ca3a3fd93095a91fd3e1a3959e29299.zip |
Add nsswitch support, required when running on -CURRENT.
Obtained from: Daniel NĂ©ri <dne@mayonnaise.net>
Diffstat (limited to 'lang/erlang14')
-rw-r--r-- | lang/erlang14/Makefile | 2 | ||||
-rw-r--r-- | lang/erlang14/files/patch-lib_kernel_src_inet__config.erl | 19 | ||||
-rw-r--r-- | lang/erlang14/pkg-message | 4 |
3 files changed, 24 insertions, 1 deletions
diff --git a/lang/erlang14/Makefile b/lang/erlang14/Makefile index efe5f199653a..c1a21a35ebf8 100644 --- a/lang/erlang14/Makefile +++ b/lang/erlang14/Makefile @@ -7,7 +7,7 @@ PORTNAME= erlang PORTVERSION= r9c0 -PORTREVISION= 2 +PORTREVISION= 3 PORTEPOCH= 1 CATEGORIES= lang MASTER_SITES= ftp://ftp.erlang.org/pub/download/ \ diff --git a/lang/erlang14/files/patch-lib_kernel_src_inet__config.erl b/lang/erlang14/files/patch-lib_kernel_src_inet__config.erl new file mode 100644 index 000000000000..362a217ce495 --- /dev/null +++ b/lang/erlang14/files/patch-lib_kernel_src_inet__config.erl @@ -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 -> diff --git a/lang/erlang14/pkg-message b/lang/erlang14/pkg-message index 97bf3e663e09..1fd1cd3c4338 100644 --- a/lang/erlang14/pkg-message +++ b/lang/erlang14/pkg-message @@ -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: |