[arch-commits] Commit in erlang-nox/trunk (4 files)

Alexander Rødseth arodseth at nymeria.archlinux.org
Mon Dec 16 20:01:24 UTC 2013


    Date: Monday, December 16, 2013 @ 21:01:24
  Author: arodseth
Revision: 102622

Fix for FS#38109

Added:
  erlang-nox/trunk/epmd.conf
  erlang-nox/trunk/epmd.service
  erlang-nox/trunk/epmd.socket
Modified:
  erlang-nox/trunk/PKGBUILD

--------------+
 PKGBUILD     |   18 +++++++++++++++---
 epmd.conf    |    3 +++
 epmd.service |   11 +++++++++++
 epmd.socket  |    9 +++++++++
 4 files changed, 38 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-12-16 20:00:39 UTC (rev 102621)
+++ PKGBUILD	2013-12-16 20:01:24 UTC (rev 102622)
@@ -8,7 +8,7 @@
 
 pkgname=erlang-nox
 pkgver=R16B03
-pkgrel=1
+pkgrel=2
 pkgdesc='General-purpose concurrent functional programming language developed by Ericsson (headless version)'
 arch=('x86_64' 'i686')
 url='http://www.erlang.org/'
@@ -21,9 +21,15 @@
             'lksctp-tools: for SCTP support')
 options=('staticlibs')
 source=("http://www.erlang.org/download/otp_src_${pkgver/_/-}.tar.gz"
-        "http://www.erlang.org/download/otp_doc_man_${pkgver/_/-}.tar.gz")
+        "http://www.erlang.org/download/otp_doc_man_${pkgver/_/-}.tar.gz"
+        'epmd.service'
+        'epmd.socket'
+        'epmd.conf')
 sha256sums=('6133b3410681a5c934e54c76eee1825f96dead8d6a12c31a64f6e160daf0bb06'
-            'a2038d32e7c940d5d04f7338406e11b723cac0d26e82d7834596105eea492452')
+            'a2038d32e7c940d5d04f7338406e11b723cac0d26e82d7834596105eea492452'
+            'b121ec9053fb37abca5f910a81c526f93ec30fe13b574a12209223b346886a9e'
+            '998a759e4cea4527f9d9b241bf9f32527d7378d63ea40afa38443c6c3ceaea34'
+            '78ce5e67b21758c767d727e56b20502f75dc4385ff9b6c6db312d8e8506f2df2')
 
 build() {
   cd "otp_src_${pkgver/_1/}"
@@ -53,6 +59,12 @@
 
   # Remove files that are packaged as erlang-unixodbc
   rm -r "$pkgdir/usr/lib/erlang/"{lib/odbc*,man/man3/odbc.3.gz}
+
+  # epmd service, socket and conf
+  cd "$srcdir"
+  install -Dm644 epmd.service "$pkgdir/usr/lib/systemd/system/epmd.service"
+  install -Dm644 epmd.socket "$pkgdir/usr/lib/systemd/system/epmd.socket"
+  install -Dm644 epmd.conf "$pkgdir/etc/conf.d/epmd"
 }
 
 # vim:set ts=2 sw=2 et:

Added: epmd.conf
===================================================================
--- epmd.conf	                        (rev 0)
+++ epmd.conf	2013-12-16 20:01:24 UTC (rev 102622)
@@ -0,0 +1,3 @@
+#ERL_EPMD_ADDRESS=
+#ERL_EPMD_PORT=4369
+#ERL_EPMD_RELAXED_COMMAND_CHECK=

Added: epmd.service
===================================================================
--- epmd.service	                        (rev 0)
+++ epmd.service	2013-12-16 20:01:24 UTC (rev 102622)
@@ -0,0 +1,11 @@
+[Unit]
+Description=Erlang Port Mapper Daemon
+
+[Service]
+EnvironmentFile=/etc/conf.d/epmd
+ExecStart=/usr/bin/epmd -daemon $EPMD_OPTS
+ExecStop=/usr/bin/epmd -kill
+Type=forking
+
+[Install]
+WantedBy=multi-user.target

Added: epmd.socket
===================================================================
--- epmd.socket	                        (rev 0)
+++ epmd.socket	2013-12-16 20:01:24 UTC (rev 102622)
@@ -0,0 +1,9 @@
+[Unit]
+Conflicts=epmd.service
+
+[Socket]
+ListenStream=4369
+Accept=no
+
+[Install]
+WantedBy=sockets.target




More information about the arch-commits mailing list