Accepting request 227279 from devel:languages:erlang:Factory

(forwarded request 227187 from matwey)

OBS-URL: https://build.opensuse.org/request/show/227279
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/erlang?expand=0&rev=27
This commit is contained in:
Stephan Kulow 2014-03-25 12:20:51 +00:00 committed by Git OBS Bridge
commit eed82696db
4 changed files with 57 additions and 2 deletions

10
README.SUSE Normal file
View File

@ -0,0 +1,10 @@
# Erlang in openSUSE
## Erlang Port-mapper Daemon and systemd
Erlang Port-mapper Daemon in openSUSE uses systemd socket-activation. In order to fulfill security considerations, EPMd listens on loop-back interface by default. This is enough to run rabbitmq-server, ejabberd and user-started beam processes.
For clustering, please, use ```/etc/systemd/system/epmd.socket.d/``` to configure interfaces to listen on. See man systemd.unit(5) for details.
### Upgrading from sysvinit
```/etc/sysconfig/erlang``` has no effect now, to configure EPMd use systemd capabilities instead.

View File

@ -2,7 +2,7 @@
Description=Erlang Port Mapper Daemon Activation Socket
[Socket]
ListenStream=4369
ListenStream=127.0.0.1:4369
Accept=false
[Install]

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Sun Mar 23 07:51:54 UTC 2014 - matwey.kornilov@gmail.com
- Add README.SUSE, modify epmd.socket: fix bnc#869112
-------------------------------------------------------------------
Sun Mar 23 06:46:23 UTC 2014 - matwey.kornilov@gmail.com
- Add erlang-observer package (observer depends on wx)
-------------------------------------------------------------------
Thu Feb 20 07:35:16 UTC 2014 - matwey.kornilov@gmail.com

View File

@ -35,6 +35,7 @@ Source5: erlang.sysconfig
Source6: macros.erlang
Source7: epmd.service
Source8: epmd.socket
Source9: README.SUSE
# PATCH-MISSING-TAG -- See http://en.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch0: otp-R16B-rpath.patch
# PATCH-MISSING-TAG -- See http://en.opensuse.org/openSUSE:Packaging_Patches_guidelines
@ -160,6 +161,17 @@ dependencies and enables interactive customization of a
target system. The backend provides a batch interface
for generation of customized target systems.
%package observer
Summary: A GUI tool for observing an erlang system
Group: Development/Languages/Other
Requires: %{name} = %{version}
Requires: %{name}-wx = %{version}
%description observer
The observer is gui frontend containing various tools to inspect a system.
It displays system information, application structures, process information,
ets or mnesia tables and a frontend for tracing with ttb.
%package src
Summary: Erlang/OTP applications sources
Group: Development/Languages/Other
@ -230,6 +242,16 @@ Erlang sources for the reltool application in the Erlang/OTP system.
They are useful for educational purpose and as a base for creating
embedded systems.
%package observer-src
Summary: Erlang/OTP observer application sources
Group: Development/Languages/Other
Requires: %{name}-observer = %{version}
%description observer-src
Erlang sources for the observer application in the Erlang/OTP system.
They are useful for educational purpose and as a base for creating
embedded systems.
%package toolbar-src
Summary: Erlang/OTP toolbar application sources
Group: Development/Languages/Other
@ -300,6 +322,7 @@ A Graphics System used to write platform independent user interfaces.
%patch5 -p1
%patch6 -p1
%patch7 -p1
cp %{S:9} .
./otp_build autoconf
# enable dynamic linking for ssl
@ -438,6 +461,9 @@ install -D -m 0644 %{S:6} %{buildroot}%{_sysconfdir}/rpm/macros.erlang
%files
%defattr(-,root,root)
%doc AUTHORS EPLICENCE README
%if 0%{?have_systemd}
%doc README.SUSE
%endif
%doc %{_libdir}/erlang/PR.template
%doc %{_libdir}/erlang/README
%doc %{_libdir}/erlang/COPYRIGHT
@ -475,7 +501,6 @@ install -D -m 0644 %{S:6} %{buildroot}%{_sysconfdir}/rpm/macros.erlang
%{_libdir}/erlang/lib/kernel-*/
%{_libdir}/erlang/lib/megaco-*/
%{_libdir}/erlang/lib/mnesia-*/
%{_libdir}/erlang/lib/observer-*/
%{_libdir}/erlang/lib/odbc-*/
%{_libdir}/erlang/lib/orber-*/
%{_libdir}/erlang/lib/os_mon-*/
@ -549,6 +574,11 @@ install -D -m 0644 %{S:6} %{buildroot}%{_sysconfdir}/rpm/macros.erlang
%{_libdir}/erlang/lib/reltool-*/
%exclude %{_libdir}/erlang/lib/reltool-*/src
%files observer
%defattr(-,root,root)
%{_libdir}/erlang/lib/observer-*/
%exclude %{_libdir}/erlang/lib/observer-*/src
%files toolbar
%defattr(-,root,root)
%{_libdir}/erlang/lib/toolbar-*/
@ -576,6 +606,7 @@ install -D -m 0644 %{S:6} %{buildroot}%{_sysconfdir}/rpm/macros.erlang
%exclude %{_libdir}/erlang/lib/gs-*/src
%exclude %{_libdir}/erlang/lib/jinterface-*/java_src
%exclude %{_libdir}/erlang/lib/reltool-*/src
%exclude %{_libdir}/erlang/lib/observer-*/src
%exclude %{_libdir}/erlang/lib/toolbar-*/src
%exclude %{_libdir}/erlang/lib/tv-*/src
%exclude %{_libdir}/erlang/lib/wx-*/src
@ -604,6 +635,10 @@ install -D -m 0644 %{S:6} %{buildroot}%{_sysconfdir}/rpm/macros.erlang
%defattr(-,root,root)
%{_libdir}/erlang/lib/reltool-*/src
%files observer-src
%defattr(-,root,root)
%{_libdir}/erlang/lib/observer-*/src
%files toolbar-src
%defattr(-,root,root)
%{_libdir}/erlang/lib/toolbar-*/src