aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authorolgeni <olgeni@FreeBSD.org>2003-09-26 19:46:55 +0800
committerolgeni <olgeni@FreeBSD.org>2003-09-26 19:46:55 +0800
commite7a147fc9ca3a3fd93095a91fd3e1a3959e29299 (patch)
tree905fbb55f6b5976c3b7fb4d95ce6e1b3bec26de0 /lang
parent6bccded79fd2833e4d262ac55da88acfdbdbc24c (diff)
downloadfreebsd-ports-graphics-e7a147fc9ca3a3fd93095a91fd3e1a3959e29299.tar.gz
freebsd-ports-graphics-e7a147fc9ca3a3fd93095a91fd3e1a3959e29299.tar.zst
freebsd-ports-graphics-e7a147fc9ca3a3fd93095a91fd3e1a3959e29299.zip
Add nsswitch support, required when running on -CURRENT.
Obtained from: Daniel NĂ©ri <dne@mayonnaise.net>
Diffstat (limited to 'lang')
-rw-r--r--lang/erlang/Makefile2
-rw-r--r--lang/erlang/files/patch-lib_kernel_src_inet__config.erl19
-rw-r--r--lang/erlang/pkg-message4
-rw-r--r--lang/erlang14/Makefile2
-rw-r--r--lang/erlang14/files/patch-lib_kernel_src_inet__config.erl19
-rw-r--r--lang/erlang14/pkg-message4
6 files changed, 48 insertions, 2 deletions
diff --git a/lang/erlang/Makefile b/lang/erlang/Makefile
index efe5f199653..c1a21a35ebf 100644
--- a/lang/erlang/Makefile
+++ b/lang/erlang/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/erlang/files/patch-lib_kernel_src_inet__config.erl b/lang/erlang/files/patch-lib_kernel_src_inet__config.erl
new file mode 100644
index 00000000000..362a217ce49
--- /dev/null
+++ b/lang/erlang/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/erlang/pkg-message b/lang/erlang/pkg-message
index 97bf3e663e0..1fd1cd3c433 100644
--- a/lang/erlang/pkg-message
+++ b/lang/erlang/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:
diff --git a/lang/erlang14/Makefile b/lang/erlang14/Makefile
index efe5f199653..c1a21a35ebf 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 00000000000..362a217ce49
--- /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 97bf3e663e0..1fd1cd3c433 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: