SPECS: e2fsprogs.spec - subpackage uuidd, like upstream - rename u...
glen
glen at pld-linux.org
Mon Feb 4 17:52:20 CET 2008
Author: glen Date: Mon Feb 4 16:52:20 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- subpackage uuidd, like upstream
- rename user/group: libuuid -> uuidd
- useradd/groupadd deps
---- Files affected:
SPECS:
e2fsprogs.spec (1.175 -> 1.176)
---- Diffs:
================================================================
Index: SPECS/e2fsprogs.spec
diff -u SPECS/e2fsprogs.spec:1.175 SPECS/e2fsprogs.spec:1.176
--- SPECS/e2fsprogs.spec:1.175 Mon Feb 4 17:04:48 2008
+++ SPECS/e2fsprogs.spec Mon Feb 4 17:52:15 2008
@@ -1,4 +1,6 @@
# $Revision$, $Date$
+# TODO
+# - run uidd via init.d
#
# Conditional build:
%bcond_with allstatic # link everything statically
@@ -53,6 +55,7 @@
BuildRequires: automake
BuildRequires: device-mapper-devel >= 1.02.18-2
BuildRequires: gettext-devel >= 0.11
+BuildRequires: rpmbuild(macros) >= 1.202
BuildRequires: texinfo
%if %{with static}
BuildRequires: device-mapper-static
@@ -532,6 +535,28 @@
%description -n libuuid-static -l pl.UTF-8
Biblioteka umożliwiająca dostęp i zmiany UUID - wersja statyczna.
+%package -n uuidd
+Summary: helper daemon to guarantee uniqueness of time-based UUIDs
+License: GPL v2
+Group: Daemons
+Requires(postun): /usr/sbin/groupdel
+Requires(postun): /usr/sbin/userdel
+Requires(pre): /bin/id
+Requires(pre): /usr/bin/getgid
+Requires(pre): /usr/sbin/groupadd
+Requires(pre): /usr/sbin/groupmod
+Requires(pre): /usr/sbin/useradd
+Requires(pre): /usr/sbin/usermod
+Requires: libuuid = %{version}-%{release}
+Provides: group(uuidd)
+Provides: user(uuidd)
+Conflicts: libuuid < 1.40.5-0.1
+
+%description -n uuidd
+The uuidd package contains a userspace daemon (uuidd) which guarantees
+uniqueness of time-based UUID generation even at very high rates on
+SMP systems.
+
%package -n fsck
Summary: Check and repair a Linux file system
Summary(pl.UTF-8): Sprawdzenie i naprawa linuksowego systemu plików
@@ -683,18 +708,24 @@
%post -n libcom_err -p /sbin/ldconfig
%postun -n libcom_err -p /sbin/ldconfig
-%pre -n libuuid
-%groupadd -g 222 libuuid
-%useradd -u 222 -r -d /var/lib/libuuid -s /bin/false -c "libuuid" -g libuuid libuuid
-
%post -n libuuid -p /sbin/ldconfig
+%postun -n libuuid -p /sbin/ldconfig
+
+%pre -n uuidd
+if [ "$(getgid libuuid)" = "222" ]; then
+ /usr/sbin/groupmod -n uuidd libuuid
+fi
+%groupadd -g 222 uuidd
+if [ "$(id -u libuuid 2>/dev/null)" = "222" ]; then
+ /usr/sbin/usermod -l uuidd libuuid
+fi
+%useradd -u 222 -r -d /var/lib/libuuid -s /bin/false -c "UUID generator helper daemon" -g uuidd uuidd
-%postun -n libuuid
+%postun -n uuidd
if [ "$1" = "0" ]; then
- %userremove libuuid
- %groupremove libuuid
+ %userremove uuidd
+ %groupremove uuidd
fi
-/sbin/ldconfig
%post -n fsck -p /sbin/ldconfig
%postun -n fsck -p /sbin/ldconfig
@@ -887,14 +918,11 @@
%defattr(644,root,root,755)
%doc lib/uuid/COPYING
%attr(755,root,root) %{_bindir}/uuidgen
-%attr(6755,libuuid,libuuid) %{_sbindir}/uuidd
%if %{without allstatic}
%attr(755,root,root) /%{_lib}/libuuid.so.*.*
%attr(755,root,root) %ghost /%{_lib}/libuuid.so.1
%endif
-%attr(750,libuuid,libuuid) /var/lib/libuuid
%{_mandir}/man1/uuidgen.1*
-%{_mandir}/man8/uuidd.8*
%lang(ja) %{_mandir}/ja/man1/uuidgen.1*
%files -n libuuid-devel
@@ -910,6 +938,12 @@
%defattr(644,root,root,755)
%{_libdir}/libuuid.a
+%files -n uuidd
+%defattr(644,root,root,755)
+%attr(2775,uuidd,uuidd) /var/lib/libuuid
+%attr(6755,uuidd,uuidd) %{_sbindir}/uuidd
+%{_mandir}/man8/uuidd.8*
+
%files -n fsck
%defattr(644,root,root,755)
%attr(755,root,root) /sbin/fsck
@@ -935,6 +969,11 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.176 2008-02-04 16:52:15 glen
+- subpackage uuidd, like upstream
+- rename user/group: libuuid -> uuidd
+- useradd/groupadd deps
+
Revision 1.175 2008-02-04 16:04:48 glen
- no bashism in configure
- remove make -j1 (changelog says it's fixed)
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/e2fsprogs.spec?r1=1.175&r2=1.176&f=u
More information about the pld-cvs-commit
mailing list