From 59867aa612beebea9e0eca9ca8b0a305f1ffd32e Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Mar 31 2014 08:39:45 +0000 Subject: Create group and user for EPMD Signed-off-by: Peter Lemenkov --- diff --git a/erlang.spec b/erlang.spec index 6fbba7e..0df6175 100644 --- a/erlang.spec +++ b/erlang.spec @@ -32,7 +32,7 @@ Name: erlang Version: %{upstream_ver} -Release: %{upstream_rel_for_rpm}.3%{?dist} +Release: %{upstream_rel_for_rpm}.4%{?dist} Summary: General-purpose programming language and runtime environment Group: Development/Languages @@ -131,6 +131,8 @@ BuildRequires: xemacs-packages-extra-el %endif %if 0%{?el7}%{?fedora} +# for +BuildRequires: systemd-devel Requires(post): systemd Requires(preun):systemd Requires(postun):systemd @@ -1177,6 +1179,13 @@ install -D -p -m 0644 %{SOURCE6} %{buildroot}%{_unitdir}/epmd.socket %endif +%pre erts +getent group epmd >/dev/null || groupadd -r epmd +getent passwd epmd >/dev/null || \ +useradd -r -g epmd -d /tmp -s /sbin/nologin \ +-c "Erlang Port Mapper Daemon" epmd 2>/dev/null || : + + %clean rm -rf $RPM_BUILD_ROOT @@ -2316,6 +2325,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Fri Mar 28 2014 Peter Lemenkov - R16B-03.4 +- Create group and user for EPMD + * Thu Mar 27 2014 Peter Lemenkov - R16B-03.3 - Ver. R16B03-1 (Bugfix release) - Enabled systemd support in EPMD