SPECS: drbd.spec - Version: 8.0.6 - permissions of drbdsetup and d...
jajcus
jajcus at pld-linux.org
Thu Sep 13 22:28:13 CEST 2007
Author: jajcus Date: Thu Sep 13 20:28:13 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- Version: 8.0.6
- permissions of drbdsetup and drbdmeta updated (suid-root, exec rights for
haclient group), so drbdadm won't complain with default config.
---- Files affected:
SPECS:
drbd.spec (1.99 -> 1.100)
---- Diffs:
================================================================
Index: SPECS/drbd.spec
diff -u SPECS/drbd.spec:1.99 SPECS/drbd.spec:1.100
--- SPECS/drbd.spec:1.99 Thu Sep 13 22:21:02 2007
+++ SPECS/drbd.spec Thu Sep 13 22:28:08 2007
@@ -15,12 +15,12 @@
Summary: drbd is a block device designed to build high availibility clusters
Summary(pl.UTF-8): drbd jest urządzeniem blokowym dla klastrów o wysokiej niezawodności
Name: drbd
-Version: 8.0.5
+Version: 8.0.6
Release: %{_rel}
License: GPL
Group: Base/Kernel
Source0: http://oss.linbit.com/drbd/8.0/%{name}-%{version}.tar.gz
-# Source0-md5: b5463772f1749e86c8c29e56b0e9938b
+# Source0-md5: a91dd9b9526e087507e21521c10c5828
Patch0: %{name}-Makefile.patch
URL: http://www.drbd.org/
%if %{with userspace}
@@ -54,7 +54,11 @@
Summary(pt_BR.UTF-8): Utilitários para gerenciar dispositivos DRBD
Group: Applications/System
Requires(post,preun): /sbin/chkconfig
+Requires(pre): /usr/bin/getgid
+Requires(pre): /usr/sbin/groupadd
+Requires(postun): /usr/sbin/groupdel
Requires: rc-scripts
+Provides: group(haclient)
Conflicts: drbdsetup24
%description -n drbdsetup
@@ -132,6 +136,9 @@
%postun -n kernel%{_alt_kernel}-block-drbd
%depmod %{_kernel_ver}
+%pre -n drbdsetup
+%groupadd -g 60 haclient
+
%post -n drbdsetup
/sbin/chkconfig --add drbd
%service drbd restart
@@ -142,10 +149,18 @@
/sbin/chkconfig --del drbd
fi
+%postun -n drbdsetup
+if [ "$1" = "0" ]; then
+ %groupremove haclient
+fi
+
+
%if %{with userspace}
%files -n drbdsetup
%defattr(644,root,root,755)
-%attr(755,root,root) /sbin/*
+%attr(755,root,root) /sbin/drbdadm
+%attr(2754,root,haclient) /sbin/drbdsetup
+%attr(2754,root,haclient) /sbin/drbdmeta
%attr(754,root,root) /etc/rc.d/init.d/drbd
%attr(755,root,root) %{_sysconfdir}/ha.d/resource.d/drbddisk
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/drbd.conf
@@ -165,6 +180,11 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.100 2007/09/13 20:28:08 jajcus
+- Version: 8.0.6
+- permissions of drbdsetup and drbdmeta updated (suid-root, exec rights for
+ haclient group), so drbdadm won't complain with default config.
+
Revision 1.99 2007/09/13 20:21:02 jajcus
- merge with DEVEL
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/drbd.spec?r1=1.99&r2=1.100&f=u
More information about the pld-cvs-commit
mailing list