[Lunar-commits] <moonbase-other> erlang: version bumped to 17.4.

Florin Braescu florin at lunar-linux.org
Thu Dec 25 14:34:39 CET 2014


commit f01f2c1d483d8e9798044bd0c29a6e7eafc6b3ec
Author: Florin Braescu <florin at lunar-linux.org>
Date: Thu, 25 Dec 2014 15:34:21 +0200
URL: https://github.com/lunar-linux/moonbase-other/commit/f01f2c1d483d8e9798044bd0c29a6e7eafc6b3ec

erlang: version bumped to 17.4.
---
  compilers/erlang/BUILD                  | +10/-15   
  compilers/erlang/CONFIGURE              | +4/-5     
  compilers/erlang/DEPENDS                | +8/-1     
  compilers/erlang/DETAILS                | +3/-3     
  compilers/erlang/epmd.conf              | +3/-0     
  compilers/erlang/systemd.d/epmd.service | +11/-0    
  compilers/erlang/systemd.d/epmd.socket  | +9/-0     
  7 files changed, 48 insertions(+), 24 deletions(-)

--- a/compilers/erlang/BUILD
+++ b/compilers/erlang/BUILD
@@ -1,18 +1,13 @@
-(
+if [ `arch` == "x86_64" ] ; then
+  OPTS="--enable-m64-build"
+else
+  OPTS="--enable-m32-build"
+fi &&
 
-  if [ `arch` == "x86_64" ] ; then
-    OPTS="--enable-m64-build"
-   else
-    OPTS="--enable-m32-build"
-  fi &&
+# enable threads
+OPTS+=" --enable-threads" &&
 
-# threads are automatic with enabled smp support
-  if [ "$USE_SMP" == "n" ]; then
-    OPTS+=" --disable-smp-support --enable-threads"
-   else
-    OPTS+=" --enable-smp-support --enable-threads"
-  fi &&
+default_build  &&
 
-  default_build
-
-) > $C_FIFO 2>&1
+mkdir -p /etc/config.d &&
+install -Dm644 $SCRIPT_DIRECTORY/epmd.conf "/etc/config.d/epmd"
--- a/compilers/erlang/CONFIGURE
+++ b/compilers/erlang/CONFIGURE
@@ -1,5 +1,4 @@
-mquery ENABLE_SMP "Enable SMP support?" y
-mquery ENABLE_KER_POLL "Enable kernel poll support?" n "--enable-kernel-poll" "--disable-kernel-pol"
-mquery ENABLE_SCTP "Enable sctp support?" y "--enable-sctp" "--disable-sctp"
-mquery ENABLE_HIPE "Enable hipe support?" y "--enable-hipe" "--disable-hipe"
-
+mquery ENABLE_KER_POLL "Enable kernel poll support?" n " --enable-kernel-poll" " --disable-kernel-pol"
+mquery ENABLE_SMP "Enable SMP support?" y " --enable-smp-support" " --disable-smp-support"
+mquery ENABLE_SCTP "Enable sctp support?" y " --enable-sctp" " --disable-sctp"
+mquery ENABLE_HIPE "Enable hipe support?" y " --enable-hipe" " --disable-hipe"
--- a/compilers/erlang/DEPENDS
+++ b/compilers/erlang/DEPENDS
@@ -1,5 +1,12 @@
 depends perl
+depends m4
+depends sed
 
-optional_depends zlib      "--enable-shared-zlib" "--disable-shared-zlib" "for zlib support"
+optional_depends glu     "" "" "for GL support"
+optional_depends wxGTK   "" "" "for WxGTK support"
+
+optional_depends ncurses   "--with-termcap"       "--without-termcap"     "for ncurses support"
+optional_depends zlib      "--enable-shared-zlib" "--enable-builtin-zlib" "for zlib support"
 optional_depends openssl   "--with-ssl"           "--without-ssl"         "for ssl support"
 optional_depends %JAVA_SDK "--with-javac"         "--without-javac"       "for java support"
+optional_depends unixODBC  "--enable-odbc"        "--disable-odbc"        "for ODBC support"
--- a/compilers/erlang/DETAILS
+++ b/compilers/erlang/DETAILS
@@ -1,12 +1,12 @@
           MODULE=erlang
-         VERSION=R16B01
+         VERSION=17.4
           SOURCE=otp_src_${VERSION}.tar.gz
 SOURCE_DIRECTORY=$BUILD_DIRECTORY/otp_src_${VERSION%-*}
       SOURCE_URL=http://www.erlang.org/download
-      SOURCE_VFY=sha1:33faca88bcc3e6a841945c18952a05f1414cc397
+      SOURCE_VFY=sha256:0d82eda6ae7ac6f0f860093324e540fa514497068ec3b4177800284e8c761f56
         WEB_SITE=http://www.erlang.org
          ENTERED=20021120
-         UPDATED=20130622
+         UPDATED=20141225
            SHORT="General-purpose programming language and runtime environment"
 
 cat << EOF
--- /dev/null
+++ b/compilers/erlang/epmd.conf
@@ -0,0 +1,3 @@
+#ERL_EPMD_ADDRESS=
+#ERL_EPMD_PORT=4369
+#ERL_EPMD_RELAXED_COMMAND_CHECK=
--- /dev/null
+++ b/compilers/erlang/systemd.d/epmd.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Erlang Port Mapper Daemon
+
+[Service]
+EnvironmentFile=/etc/config.d/epmd
+ExecStart=/usr/bin/epmd -daemon $EPMD_OPTS
+ExecStop=/usr/bin/epmd -kill
+Type=forking
+
+[Install]
+WantedBy=multi-user.target
--- /dev/null
+++ b/compilers/erlang/systemd.d/epmd.socket
@@ -0,0 +1,9 @@
+[Unit]
+Conflicts=epmd.service
+
+[Socket]
+ListenStream=4369
+Accept=no
+
+[Install]
+WantedBy=sockets.target




More information about the Lunar-commits mailing list