Search
j0ke.net Open Build Service
>
Projects
>
ha
>
iscsitarget
> iscsitarget.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File iscsitarget.spec of Package iscsitarget (Revision 2)
Currently displaying revision
2
,
show latest
# Generate version information for kernel module #%{!?kernel: %define kernel %(uname -r)} %define kdir %(echo `find /usr/src/kernels -maxdepth 1 -type d |grep "2.6"`) %define kernel %(echo %{kdir} | awk -F/ '{print $NF}' | awk -F- '{print $1"-"$2}') %define kver %(echo %{kernel} | sed -e 's/smp//' -e 's/bigmem//' -e 's/enterprise//') %define ktype %(echo kernel-%{kernel}|sed -e 's/%{kver}//' -e 's/-$//') %define krel %(echo %{kver} | sed -e 's/-/_/g') Summary: iSCSI Enterprise Target Name: iscsitarget Version: 0.4.16 Release: 1 License: GPL Group: System Environment/Daemons URL: http://sourceforge.net/projects/iscsitarget/ Source0: %{name}-%{version}.tar.gz # kernel compatibility patches # unlocked_ioctl API change #Patch2610: %{name}-0.4.12-kernel-compat-2.6.10.patch # __nlmsg_put API change Patch2612: %{name}-r1257-kernel-compat-2.6.12.patch BuildRequires: kernel-devel = %{kver}, gcc, /usr/bin/install, openssl-devel Requires: %{name}-kernel-module = %{version} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %description iSCSI Enterprise Target %package %{ktype} Summary: iSCSI Enterprise Target kernel module Group: System Environment/Kernel Release: %{release}_%{krel} Requires: %{ktype} = %{kver} Provides: %{name}-kernel-module %description %{ktype} iSCSI Enterprise Target kernel module %prep %setup #%patch2610 -p0 %patch2612 -p0 %build make KERNELSRC=/lib/modules/%{kernel}/build %install %{__rm} -rf %{buildroot} make install KERNELSRC=/lib/modules/%{kernel}/build DISTDIR=%{buildroot} install -m 644 -D etc/ietd.conf %{buildroot}/etc/ietd.conf install -m 644 -D etc/initiators.allow %{buildroot}/etc/initiators.allow install -m 644 -D etc/initiators.deny %{buildroot}/etc/initiators.deny install -m 644 -D doc/manpages/ietd.8 %{buildroot}%{_mandir}/man8/ietd.8 install -m 644 -D doc/manpages/ietd.conf.5 %{buildroot}%{_mandir}/man5/ietd.conf.5 %clean %{__rm} -rf %{buildroot} %post /sbin/depmod %{kernel} -A %preun modprobe -r -q --set-version %{kernel} iscsi_trgt /sbin/depmod %{kernel} -A %files %defattr(-, root, root, 0755) /usr/sbin/* /etc/init.d/* %defattr(-, root, root, 0644) %config(noreplace) /etc/ietd.conf %config(noreplace) /etc/initiators.allow %config(noreplace) /etc/initiators.deny %doc COPYING README %{_mandir}/man?/* %files %{ktype} %defattr(-, root, root, 0744) /lib/modules/%{kernel}/kernel/iscsi/iscsi_trgt.ko %changelog * Thu Oct 30 2008 Carsten Schoene <cs@linux-administrator.com> - 0.4.16-1 - update to release 0.4.16 * Thu Nov 03 2005 Bastiaan Bakker <bastiaan.bakker@lifeline.nl> - 0.4.12-6 - added openssl-devel build requirement - removed '.ko' extension in modprobe command * Wed Nov 02 2005 Bastiaan Bakker <bastiaan.bakker@lifeline.nl> - 0.4.12-5 - fixed kernel-devel BuildRequires * Fri Sep 23 2005 Bastiaan Bakker <bastiaan.bakker@lifeline.nl> - 0.4.12-4 - fixed modprobe -r 'FATAL' message - run depmod with correct kernel version * Fri Sep 23 2005 Bastiaan Bakker <bastiaan.bakker@lifeline.nl> - 0.4.12-3 - added config files - set kernel module file permissions to 744 - fixed provides/requires of kernel module - removed BuildArch restriction * Thu Sep 22 2005 Bastiaan Bakker <bastiaan.bakker@lifeline.nl> - 0.4.12-2 - create separate subpackage for kernel module - include man pages - added kernel compatibility patch for kernels < 2.6.11 * Wed Aug 03 2005 Bastiaan Bakker <bastiaan.bakker@lifeline.nl> - First version.