packages: aoetools/aoetools.spec - udev rules.

pluto pluto at pld-linux.org
Sat Jul 10 09:49:34 CEST 2010


Author: pluto                        Date: Sat Jul 10 07:49:34 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- udev rules.

---- Files affected:
packages/aoetools:
   aoetools.spec (1.26 -> 1.27) 

---- Diffs:

================================================================
Index: packages/aoetools/aoetools.spec
diff -u packages/aoetools/aoetools.spec:1.26 packages/aoetools/aoetools.spec:1.27
--- packages/aoetools/aoetools.spec:1.26	Sun Jun 27 09:58:02 2010
+++ packages/aoetools/aoetools.spec	Sat Jul 10 09:49:28 2010
@@ -6,7 +6,7 @@
 Release:	1
 License:	GPL v2
 Group:		Base/Utilities
-Source0:	http://dl.sourceforge.net/aoetools/%{name}-%{version}.tar.gz
+Source0:	http://downloads.sourceforge.net/aoetools/%{name}-%{version}.tar.gz
 # Source0-md5:	b87eeb34d50921cdf852780f662630b9
 URL:		http://aoetools.sourceforge.net/
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -23,9 +23,31 @@
 danych za pośrednictwem lokalnej sieci ethernetowej. Program vblade
 (obiekt składowania) eksportuje urządzenie blokowe przy użyciu AoE.
 
+%package udev
+Summary:	udev rules for AoE kernel modules
+Summary(pl.UTF-8):	Reguły udev dla modułów jądra Linuksa dla AoE
+Group:		Base/Kernel
+Requires:	udev-core
+
+%description udev
+udev rules for AoE kernel modules.
+
+%description udev -l pl.UTF-8
+Reguły udev dla modułów jądra Linuksa dla Aoe.
+
 %prep
 %setup -q
 
+cat << 'EOF' > udev.conf
+# aoe char devices
+SUBSYSTEM=="aoe", KERNEL=="discover", NAME="etherd/%k", GROUP="disk", MODE="0220"
+SUBSYSTEM=="aoe", KERNEL=="err", NAME="etherd/%k", GROUP="disk", MODE="0440"
+SUBSYSTEM=="aoe", KERNEL=="interfaces", NAME="etherd/%k", GROUP="disk", MODE="0220"
+SUBSYSTEM=="aoe", KERNEL=="revalidate", NAME="etherd/%k", GROUP="disk", MODE="0220"
+# aoe block devices
+KERNEL=="etherd*", NAME="%k", GROUP="disk"
+EOF
+
 %build
 %{__make} \
 	CC="%{__cc}" \
@@ -37,6 +59,8 @@
 %{__make} install \
 	PREFIX=$RPM_BUILD_ROOT
 
+install -D udev.conf $RPM_BUILD_ROOT/etc/udev/rules.d/60-aoe.rules
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -66,12 +90,19 @@
 %{_mandir}/man8/aoeping.8*
 %{_mandir}/man8/coraid-update.8*
 
+%files udev
+%defattr(644,root,root,755)
+%config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/60-aoe.rules
+
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <feedback at pld-linux.org>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.27  2010/07/10 07:49:28  pluto
+- udev rules.
+
 Revision 1.26  2010/06/27 07:58:02  pluto
 - release 1.
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/aoetools/aoetools.spec?r1=1.26&r2=1.27&f=u



More information about the pld-cvs-commit mailing list