summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO49
-rw-r--r--PKGBUILD83
-rw-r--r--epmd.conf3
-rw-r--r--epmd.service12
-rw-r--r--epmd.socket10
5 files changed, 157 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..912e54ce7ff
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,49 @@
+pkgbase = erlang-git
+ pkgver = 22.0.1
+ pkgrel = 1
+ url = https://www.erlang.org
+ arch = x86_64
+ license = Apache
+ makedepends = fop
+ makedepends = git
+ makedepends = glu
+ makedepends = java-environment
+ makedepends = libxslt
+ makedepends = lksctp-tools
+ makedepends = mesa
+ makedepends = perl
+ makedepends = unixodbc
+ makedepends = wxgtk
+ options = staticlibs
+ source = git+https://github.com/erlang/otp.git#tag=OTP-22.0.1
+ source = https://www.erlang.org/download/otp_doc_man_22.0.tar.gz
+ source = epmd.conf
+ source = epmd.service
+ source = epmd.socket
+ sha256sums = SKIP
+ sha256sums = c3acdb3c7c69eaceb8bcd5a69f8a19ba8320d403c176a3b560f9240b943ab370
+ sha256sums = 78ce5e67b21758c767d727e56b20502f75dc4385ff9b6c6db312d8e8506f2df2
+ sha256sums = b3b3b453d14f4bc233054430f1e3aa918c900ba293f09a6ea91e7102df2b87eb
+ sha256sums = 0f139f01547221ae091a868ce66d3bcc52c936facea3615c2932798d610bb74d
+
+pkgname = erlang-git
+ pkgdesc = General-purpose concurrent functional programming language developed by Ericsson
+ depends = ncurses
+ depends = glu
+ depends = wxgtk
+ depends = openssl
+ optdepends = erlang-unixodbc: database support
+ optdepends = java-environment: for Java support
+ optdepends = lksctp-tools: for SCTP support
+ provides = erlang
+ provides = erlang-nox
+ conflicts = erlang
+ conflicts = erlang-nox
+
+pkgname = erlang-unixodbc-git
+ pkgdesc = Unixodbc support for Erlang
+ depends = unixodbc
+ depends = erlang-nox
+ provides = unixodbc
+ conflicts = unixodbc
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..1c3a59d5ed3
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,83 @@
+# # Maintainer: Ian Luites <ian@luites.com>
+# Previous maintainer and contributors of the `erlang` pkg:
+# Contributor: Alexander F. Rødseth <xyproto@archlinux.org>
+# Contributor: Lukas Fleischer <lfleischer@archlinux.org>
+# 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>
+
+pkgbase=erlang-git
+pkgname=(erlang-git erlang-unixodbc-git)
+pkgver=22.0.1
+pkgrel=1
+_docver=22.0
+arch=(x86_64)
+url='https://www.erlang.org'
+license=(Apache)
+makedepends=(fop git glu java-environment libxslt lksctp-tools
+ mesa perl unixodbc wxgtk)
+options=(staticlibs)
+source=("git+https://github.com/erlang/otp.git#tag=OTP-$pkgver"
+ "$url/download/otp_doc_man_$_docver.tar.gz"
+ epmd.conf epmd.service epmd.socket)
+sha256sums=('SKIP'
+ 'c3acdb3c7c69eaceb8bcd5a69f8a19ba8320d403c176a3b560f9240b943ab370'
+ '78ce5e67b21758c767d727e56b20502f75dc4385ff9b6c6db312d8e8506f2df2'
+ 'b3b3b453d14f4bc233054430f1e3aa918c900ba293f09a6ea91e7102df2b87eb'
+ '0f139f01547221ae091a868ce66d3bcc52c936facea3615c2932798d610bb74d')
+
+prepare() {
+ cd otp && ./otp_build autoconf
+}
+
+build() {
+ cd otp
+ ./configure \
+ --prefix=/usr \
+ --enable-builtin-zlib \
+ --enable-smp-support \
+ --with-odbc
+ make
+}
+
+package_erlang-git() {
+ pkgdesc='General-purpose concurrent functional programming language developed by Ericsson'
+ depends=(ncurses glu wxgtk openssl)
+ optdepends=('erlang-unixodbc: database support'
+ 'java-environment: for Java support'
+ 'lksctp-tools: for SCTP support')
+ provides=(erlang erlang-nox)
+ conflicts=(erlang erlang-nox)
+
+ make -C otp DESTDIR="$pkgdir" install
+
+ # move files that belong to the erlang-unixodbc package
+ mkdir -p unixodbc
+ mv "$pkgdir/usr/lib/erlang/lib/odbc"* "$srcdir/unixodbc/"
+
+ # services and configuration
+ 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"
+
+ # readme and licenses
+ install -Dm644 otp/README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
+ install -Dm644 COPYRIGHT "$pkgdir/usr/share/licenses/$pkgname/COPYRIGHT"
+ install -Dm644 otp/LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+ # man pages
+ cp -r man "$pkgdir/usr/lib/erlang/"
+}
+
+package_erlang-unixodbc-git() {
+ pkgdesc='Unixodbc support for Erlang'
+ depends=(unixodbc erlang-nox)
+ provides=(unixodbc)
+ conflicts=(unixodbc)
+
+ install -d "$pkgdir/usr/lib/erlang/lib"
+ mv unixodbc/* "$pkgdir/usr/lib/erlang/lib/"
+ install -Dm644 otp/LICENSE.txt \
+ "$pkgdir/usr/share/licenses/$pkgname/LICENCE.txt"
+}
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..2f3b27fb6d1
--- /dev/null
+++ b/epmd.service
@@ -0,0 +1,12 @@
+[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..4985fad0dcb
--- /dev/null
+++ b/epmd.socket
@@ -0,0 +1,10 @@
+[Unit]
+Conflicts=epmd.service
+
+[Socket]
+ListenStream=4369
+Accept=no
+
+[Install]
+WantedBy=sockets.target
+