From e56431f08d84bac84c85897966bd9c5985fdae33 Mon Sep 17 00:00:00 2001 From: Michal Sekletar Date: Wed, 20 Mar 2013 18:04:02 +0100 Subject: [PATCH] spec: add system group dip (GID=40) to ppp package --- ppp.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ppp.spec b/ppp.spec index c116bd4..5373315 100644 --- a/ppp.spec +++ b/ppp.spec @@ -1,7 +1,7 @@ Summary: The Point-to-Point Protocol daemon Name: ppp Version: 2.4.5 -Release: 28%{?dist} +Release: 29%{?dist} License: BSD and LGPLv2+ and GPLv2+ and Public Domain Group: System Environment/Daemons URL: http://www.samba.org/ppp @@ -37,6 +37,8 @@ Patch32: ppp-2.4.5-l2tp-multilink.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: pam-devel, libpcap-devel, openssl-devel Requires: glibc >= 2.0.6, /etc/pam.d/system-auth, libpcap >= 14:0.8.3-6 systemd-units +Requires(pre): /usr/bin/getent +Requires(pre): /usr/sbin/groupadd %description The ppp package contains the PPP (Point-to-Point Protocol) daemon and @@ -120,6 +122,9 @@ install -p -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_prefix}/lib/tmpfiles.d/ppp.conf mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d install -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/ppp +%pre +getent group dip >/dev/null 2>&1 || groupadd -r -g 40 dip >/dev/null 2>&1 || : + %files %defattr(-,root,root) %{_sbindir}/chat @@ -156,6 +161,9 @@ install -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/ppp %doc PLUGINS %changelog +* Wed Mar 20 2013 Michal Sekletar - 2.4.5-29 +- Add creation of dip system group + * Wed Mar 20 2013 Michal Sekletar - 2.4.5-28 - Add /etc/logrotate.d to files section since we no longer hard depend on logrotate