diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2013-12-27 23:55:53 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2013-12-27 23:55:53 +0000 |
commit | 65eeff79fff8a1bfdf67ca51d147384f46f4d5c0 (patch) | |
tree | fbfdff322b28d9a3c37e6e31c94caf1d8e48dac1 /community/erlang-nox | |
parent | d53c44f055929b18d7d1b25f8367ee5836c435fc (diff) |
Fri Dec 27 23:54:04 UTC 2013
Diffstat (limited to 'community/erlang-nox')
-rw-r--r-- | community/erlang-nox/PKGBUILD | 22 | ||||
-rw-r--r-- | community/erlang-nox/epmd.conf | 3 | ||||
-rw-r--r-- | community/erlang-nox/epmd.service | 11 | ||||
-rw-r--r-- | community/erlang-nox/epmd.socket | 9 |
4 files changed, 40 insertions, 5 deletions
diff --git a/community/erlang-nox/PKGBUILD b/community/erlang-nox/PKGBUILD index 49ce66717..c90038f3c 100644 --- a/community/erlang-nox/PKGBUILD +++ b/community/erlang-nox/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 99621 2013-10-30 16:14:28Z arodseth $ +# $Id: PKGBUILD 102627 2013-12-16 21:55:26Z arodseth $ # Maintainer: Alexander Rødseth <rodseth@gmail.com> # Contributor: Lukas Fleischer <archlinux@cryptocrack.de> # Contributor: Vesa Kaihlavirta <vesa@archlinux.org> @@ -7,7 +7,7 @@ # Contributor: Ricardo Catalinas Jiménez <jimenezrick@gmail.com> pkgname=erlang-nox -pkgver=R16B02 +pkgver=R16B03 pkgrel=2 pkgdesc='General-purpose concurrent functional programming language developed by Ericsson (headless version)' arch=('x86_64' 'i686') @@ -21,9 +21,15 @@ optdepends=('erlang-unixodbc: database support' '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") -sha256sums=('6ab8ad1df8185345554a4b80e10fd8be06c4f2b71b69dcfb8528352787b32f85' - 'b79ceb0383415088b5f040f2f3705632b425cb3f29c3955ef2219556abec5789') + "http://www.erlang.org/download/otp_doc_man_${pkgver/_/-}.tar.gz" + 'epmd.service' + 'epmd.socket' + 'epmd.conf') +sha256sums=('6133b3410681a5c934e54c76eee1825f96dead8d6a12c31a64f6e160daf0bb06' + 'a2038d32e7c940d5d04f7338406e11b723cac0d26e82d7834596105eea492452' + 'b121ec9053fb37abca5f910a81c526f93ec30fe13b574a12209223b346886a9e' + '998a759e4cea4527f9d9b241bf9f32527d7378d63ea40afa38443c6c3ceaea34' + '78ce5e67b21758c767d727e56b20502f75dc4385ff9b6c6db312d8e8506f2df2') build() { cd "otp_src_${pkgver/_1/}" @@ -53,6 +59,12 @@ package() { # 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/community/erlang-nox/epmd.conf b/community/erlang-nox/epmd.conf new file mode 100644 index 000000000..e4f831c39 --- /dev/null +++ b/community/erlang-nox/epmd.conf @@ -0,0 +1,3 @@ +#ERL_EPMD_ADDRESS= +#ERL_EPMD_PORT=4369 +#ERL_EPMD_RELAXED_COMMAND_CHECK= diff --git a/community/erlang-nox/epmd.service b/community/erlang-nox/epmd.service new file mode 100644 index 000000000..643eff3b2 --- /dev/null +++ b/community/erlang-nox/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/community/erlang-nox/epmd.socket b/community/erlang-nox/epmd.socket new file mode 100644 index 000000000..ae3594242 --- /dev/null +++ b/community/erlang-nox/epmd.socket @@ -0,0 +1,9 @@ +[Unit] +Conflicts=epmd.service + +[Socket] +ListenStream=4369 +Accept=no + +[Install] +WantedBy=sockets.target |