summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO34
-rw-r--r--PKGBUILD72
-rw-r--r--epmd.conf3
-rw-r--r--epmd.service11
-rw-r--r--epmd.socket9
5 files changed, 129 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..716ed382590
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,34 @@
+pkgbase = erlang-nox-r17
+ pkgdesc = General-purpose concurrent functional programming language developed by Ericsson (headless version)
+ pkgver = 17.5
+ pkgrel = 1
+ url = http://www.erlang.org/
+ arch = x86_64
+ arch = i686
+ license = custom
+ makedepends = perl
+ makedepends = lksctp-tools
+ makedepends = unixodbc
+ makedepends = git
+ makedepends = libxslt
+ makedepends = fop
+ depends = ncurses
+ depends = openssl
+ optdepends = erlang-unixodbc: database support
+ optdepends = java-environment: for Java support
+ optdepends = lksctp-tools: for SCTP support
+ conflicts = erlang
+ options = staticlibs
+ source = git://github.com/erlang/otp.git#tag=OTP-17.5
+ source = http://www.erlang.org/download/otp_doc_man_17.5.tar.gz
+ source = epmd.service
+ source = epmd.socket
+ source = epmd.conf
+ sha256sums = SKIP
+ sha256sums = 85b1b2a1011fc01af550f1fe9e5a599a4c5f2a35d264d2804af1d05590a857c3
+ sha256sums = b121ec9053fb37abca5f910a81c526f93ec30fe13b574a12209223b346886a9e
+ sha256sums = 998a759e4cea4527f9d9b241bf9f32527d7378d63ea40afa38443c6c3ceaea34
+ sha256sums = 78ce5e67b21758c767d727e56b20502f75dc4385ff9b6c6db312d8e8506f2df2
+
+pkgname = erlang-nox-r17
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..cf1cdc6fbb0
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,72 @@
+# $Id$
+# Maintainer: Alexander Rødseth <rodseth@gmail.com>
+# Contributor: Lukas Fleischer <archlinux@cryptocrack.de>
+# Contributor: Vesa Kaihlavirta <vesa@archlinux.org>
+# Contributor: Sarah Hay <sarahhay@mb.sympatico.ca>
+# Contributor: Tom Burdick <thomas.burdick@wrightwoodtech.com>
+# Contributor: Ricardo Catalinas Jiménez <jimenezrick@gmail.com>
+
+pkgname=erlang-nox-r17
+pkgver=17.5
+pkgrel=1
+pkgdesc='General-purpose concurrent functional programming language developed by Ericsson (headless version)'
+arch=('x86_64' 'i686')
+url='http://www.erlang.org/'
+license=('custom')
+depends=('ncurses' 'openssl')
+makedepends=('perl' 'lksctp-tools' 'unixodbc' 'git' 'libxslt' 'fop')
+conflicts=('erlang')
+optdepends=('erlang-unixodbc: database support'
+ 'java-environment: for Java support'
+ 'lksctp-tools: for SCTP support')
+options=('staticlibs')
+source=("git://github.com/erlang/otp.git#tag=OTP-$pkgver"
+ "http://www.erlang.org/download/otp_doc_man_$pkgver.tar.gz"
+ 'epmd.service'
+ 'epmd.socket'
+ 'epmd.conf')
+sha256sums=('SKIP'
+ '85b1b2a1011fc01af550f1fe9e5a599a4c5f2a35d264d2804af1d05590a857c3'
+ 'b121ec9053fb37abca5f910a81c526f93ec30fe13b574a12209223b346886a9e'
+ '998a759e4cea4527f9d9b241bf9f32527d7378d63ea40afa38443c6c3ceaea34'
+ '78ce5e67b21758c767d727e56b20502f75dc4385ff9b6c6db312d8e8506f2df2')
+
+prepare() {
+ cd otp
+ ./otp_build setup
+}
+
+build() {
+ cd otp
+ ./configure --prefix=/usr --enable-smp-support --with-odbc
+ make
+}
+
+package() {
+ make -C otp DESTDIR="$pkgdir" install
+
+ # Documentation
+ install -d "$pkgdir/usr/share/doc/erlang"
+ install -m0644 "$srcdir/otp/README.md" \
+ "$srcdir"/{README,COPYRIGHT} \
+ "$pkgdir/usr/share/doc/erlang"
+
+ # Compressed man pages
+ for page in "$srcdir/man/man?/*"; do gzip $page; done
+ cp -r "$srcdir/man" "$pkgdir/usr/lib/erlang"
+
+ # License
+ install -Dm0644 "$srcdir/otp/EPLICENCE" \
+ "$pkgdir/usr/share/licenses/$pkgname/EPLICENCE"
+
+ # 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:
diff --git a/epmd.conf b/epmd.conf
new file mode 100644
index 00000000000..e4f831c39cc
--- /dev/null
+++ b/epmd.conf
@@ -0,0 +1,3 @@
+#ERL_EPMD_ADDRESS=
+#ERL_EPMD_PORT=4369
+#ERL_EPMD_RELAXED_COMMAND_CHECK=
diff --git a/epmd.service b/epmd.service
new file mode 100644
index 00000000000..643eff3b251
--- /dev/null
+++ b/epmd.service
@@ -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
diff --git a/epmd.socket b/epmd.socket
new file mode 100644
index 00000000000..ae359424294
--- /dev/null
+++ b/epmd.socket
@@ -0,0 +1,9 @@
+[Unit]
+Conflicts=epmd.service
+
+[Socket]
+ListenStream=4369
+Accept=no
+
+[Install]
+WantedBy=sockets.target