bab9bb6b69
Create new directories: ceph config config-files filesystem kernel kernel/kernel-modules ldap logging strorage-drivers tools utilities virt Retire directories: connectivity core devtools support extended Delete two packages: tgt irqbalance Relocated packages: base/ dhcp initscripts libevent lighttpd linuxptp memcached net-snmp novnc ntp openssh pam procps sanlock shadow sudo systemd util-linux vim watchdog ceph/ python-cephclient config/ facter puppet-4.8.2 puppet-modules filesystem/ e2fsprogs nfs-utils nfscheck kernel/ kernel-std kernel-rt kernel/kernel-modules/ mlnx-ofa_kernel ldap/ nss-pam-ldapd openldap logging/ syslog-ng logrotate networking/ lldpd iproute mellanox python-ryu mlx4-config python/ python-2.7.5 python-django python-gunicorn python-setuptools python-smartpm python-voluptuous security/ shim-signed shim-unsigned tboot strorage-drivers/ python-3parclient python-lefthandclient virt/ cloud-init libvirt libvirt-python qemu tools/ storage-topology vm-topology utilities/ tis-extensions namespace-utils nova-utils update-motd Change-Id: I37ade764d873c701b35eac5881eb40412ba64a86 Story: 2002801 Task: 22687 Signed-off-by: Scott Little <scott.little@windriver.com>
64 lines
2.2 KiB
Diff
64 lines
2.2 KiB
Diff
shadow-utils: add additional service into spec
|
|
|
|
clear_shadow_locks.service service is ported from clear_shadow_lock
|
|
systemv init script.
|
|
|
|
---
|
|
SPECS/shadow-utils.spec | 17 ++++++++++++++++-
|
|
1 file changed, 16 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/SPECS/shadow-utils.spec b/SPECS/shadow-utils.spec
|
|
index e7f98da..d7e2ba9 100644
|
|
--- a/SPECS/shadow-utils.spec
|
|
+++ b/SPECS/shadow-utils.spec
|
|
@@ -8,6 +8,8 @@ Source0: http://pkg-shadow.alioth.debian.org/releases/shadow-%{version}.tar.bz2
|
|
Source3: http://pkg-shadow.alioth.debian.org/releases/shadow-%{version}.tar.bz2.sig
|
|
Source1: shadow-utils.login.defs
|
|
Source2: shadow-utils.useradd
|
|
+Source4: login.defs.cgcs
|
|
+Source5: clear_shadow_locks.service
|
|
Patch0: shadow-4.1.5-redhat.patch
|
|
Patch1: shadow-4.1.5.1-goodname.patch
|
|
Patch2: shadow-4.1.5.1-info-parent-dir.patch
|
|
@@ -133,9 +135,11 @@ make
|
|
rm -rf $RPM_BUILD_ROOT
|
|
make install DESTDIR=$RPM_BUILD_ROOT gnulocaledir=$RPM_BUILD_ROOT/%{_datadir}/locale MKINSTALLDIRS=`pwd`/mkinstalldirs
|
|
install -d -m 755 $RPM_BUILD_ROOT/%{_sysconfdir}/default
|
|
-install -p -c -m 0644 %{SOURCE1} $RPM_BUILD_ROOT/%{_sysconfdir}/login.defs
|
|
+install -p -c -m 0644 %{SOURCE4} $RPM_BUILD_ROOT/%{_sysconfdir}/login.defs
|
|
install -p -c -m 0600 %{SOURCE2} $RPM_BUILD_ROOT/%{_sysconfdir}/default/useradd
|
|
|
|
+install -d -m 755 $RPM_BUILD_ROOT/%{_sysconfdir}/init.d
|
|
+install -D -m644 %{SOURCE5} $RPM_BUILD_ROOT/%{_unitdir}/clear_shadow_locks.service
|
|
|
|
ln -s useradd $RPM_BUILD_ROOT%{_sbindir}/adduser
|
|
#ln -s %{_mandir}/man8/useradd.8 $RPM_BUILD_ROOT/%{_mandir}/man8/adduser.8
|
|
@@ -221,6 +225,8 @@ rm -rf $RPM_BUILD_ROOT
|
|
%{_sbindir}/adduser
|
|
%attr(0750,root,root) %{_sbindir}/user*
|
|
%attr(0750,root,root) %{_sbindir}/group*
|
|
+%{_unitdir}/clear_shadow_locks.service
|
|
+
|
|
%{_sbindir}/grpck
|
|
%{_sbindir}/pwck
|
|
%{_sbindir}/*conv
|
|
@@ -248,6 +254,15 @@ rm -rf $RPM_BUILD_ROOT
|
|
%{_mandir}/man8/vipw.8*
|
|
%{_mandir}/man8/vigr.8*
|
|
|
|
+%post
|
|
+%systemd_post clear_shadow_locks.service
|
|
+
|
|
+%preun
|
|
+%systemd_preun clear_shadow_locks.service
|
|
+
|
|
+%postun
|
|
+%systemd_postun_with_restart clear_shadow_locks.service
|
|
+
|
|
%changelog
|
|
* Tue Jun 28 2016 Tomáš Mráz <tmraz@redhat.com> - 2:4.1.5.1-24
|
|
- useradd: fix typo in japanese translation (#1202629)
|
|
--
|
|
1.8.3.1
|
|
|