spec: Change groupadd to handle in security-manager. 41/161241/2 accepted/tizen/4.0/unified/20171124.063627 submit/tizen_4.0/20171123.061645
authorINSUN PYO <insun.pyo@samsung.com>
Wed, 22 Nov 2017 07:40:33 +0000 (16:40 +0900)
committerINSUN PYO <insun.pyo@samsung.com>
Wed, 22 Nov 2017 08:44:10 +0000 (08:44 +0000)
I left groupadd to make this package available from an open source without security-mager.

Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: Id7e1fa341a8588c23bfe4785c9d529e6c81d3b5c

packaging/gumd.spec

index cd30da9..87dc822 100644 (file)
@@ -21,7 +21,9 @@ Conflicts: gum
 %if %{dbus_type} != "p2p"
 Requires: dbus-1
 %endif
-Requires(post): /sbin/ldconfig
+Requires(post):   /sbin/ldconfig
+Requires(post):   /usr/bin/getent
+Requires(post):   /usr/sbin/groupadd
 Requires(postun): /sbin/ldconfig
 BuildRequires: pkgconfig(systemd)
 BuildRequires: pkgconfig(dbus-1)
@@ -32,11 +34,12 @@ BuildRequires: pkgconfig(gio-2.0)
 BuildRequires: pkgconfig(gio-unix-2.0)
 BuildRequires: pkgconfig(gmodule-2.0)
 BuildRequires: pkgconfig(libtzplatform-config)
-Requires: tizen-platform-config
-Provides:      gumd-profile_common = %{version}-%{release}
-Provides:      gumd-profile_mobile = %{version}-%{release}
-Provides:      gumd-profile_tv = %{version}-%{release}
-Provides:      gumd-profile_ivi = %{version}-%{release}
+Requires:      security-config
+Requires:      tizen-platform-config
+Provides:      gumd-profile_common = %{version}-%{release}
+Provides:      gumd-profile_mobile = %{version}-%{release}
+Provides:      gumd-profile_tv = %{version}-%{release}
+Provides:      gumd-profile_ivi = %{version}-%{release}
 
 %description
 %{summary} files
@@ -130,7 +133,7 @@ install -m 644 data/gumd.service %{buildroot}%{_unitdir}
 
 %post
 ldconfig
-getent group gumd > /dev/null || groupadd -r gumd
+getent group gumd > /dev/null || groupadd -r -g 205 gumd
 install -d -m 755 %{_sysconfdir}/%{name}/useradd.d
 install -d -m 755 %{_sysconfdir}/%{name}/userdel.d
 install -d -m 755 %{_sysconfdir}/%{name}/groupadd.d