Sophie

Sophie

distrib > Mageia > cauldron > i586 > media > core-release-src > by-pkgid > 9ef2285e398b9d1c05bcbb5ce4635f04 > files > 3

iscsitarget-1.4.20.5-3.mga7.src.rpm

Name:		iscsitarget
Version:	1.4.20.5
Release:	%mkrel 3
Summary:	iSCSI target
License:	GPLv2
Group:		Networking/Other
URL:		http://iscsitarget.sourceforge.net/
# Source0:	http://downloads.sourceforge.net/iscsitarget/%{name}-%{version}.tar.gz
#SVN from http://sourceforge.net/code-snapshots/svn/i/is/iscsitarget/code/iscsitarget-code-503-trunk.zip
#Not maintained anymore so Patched and Tarballed to keep it easy
Source0:	%{name}-%{version}.tar.xz
Source1:	iscsitarget.init
BuildRequires:	kernel-devel
Requires:	dkms-%{name}

%define dkmsdir %{_usrsrc}/%{name}-%{version}-%{release}

%description
iSCSI Enterprise Target is for building an iSCSI storage system on
Linux. It is aimed at developing an iSCSI target satisfying enterprise
requirements.

%package -n dkms-%{name}
Summary: iSCSI-target kernel module
Group: Networking/Other
BuildArch: noarch
Requires(preun): dkms
Requires(post): dkms

%description -n dkms-%{name}
This package contains the iscsi-target kernel module.

%prep
%setup -q
find . -name '.svn' -type d |xargs rm -fr {}

%build
%make -C usr CC="gcc %optflags %{?ldflags:%ldflags}" KSRC=$(/bin/ls -d /lib/modules/*/build|tail -1)

%install
make DESTDIR=%{buildroot} KVER=`uname -r` install-usr install-man

# do this manually to install in proper paths
mkdir -p %{buildroot}%{_initrddir}
install %{SOURCE1} %{buildroot}%{_initrddir}/iscsi-target
cp etc/ietd.conf %{buildroot}%{_sysconfdir}
cp etc/*.allow %{buildroot}%{_sysconfdir}

# DKMS
mkdir -p %{buildroot}%{dkmsdir}
cp -r kernel include patches %{buildroot}%{dkmsdir}/
# remove patch backup files
rm -f  %{buildroot}%{dkmsdir}/*/*.r*.orig

sed -e 's@^PACKAGE_VERSION=.*$@PACKAGE_VERSION="%{version}-%{release}"@' dkms.conf > %{buildroot}%{dkmsdir}/dkms.conf

%post -n dkms-%{name}
dkms add -m %{name} -v %{version}-%{release} --rpm_safe_upgrade
dkms build -m %{name} -v %{version}-%{release} --rpm_safe_upgrade
dkms install -m %{name} -v %{version}-%{release} --rpm_safe_upgrade

%post
%_post_service iscsi-target

%preun -n dkms-%{name}
dkms remove -m %{name} -v %{version}-%{release} --rpm_safe_upgrade --all || :

%preun
%_preun_service iscsi-target

%files
%doc ChangeLog COPYING README* RELEASE_NOTES
%config(noreplace) %{_sysconfdir}/ietd.conf
%config(noreplace) %{_sysconfdir}/initiators.allow
%config(noreplace) %{_sysconfdir}/targets.allow
%{_initrddir}/iscsi-target
%{_sbindir}/ietadm
%{_sbindir}/ietd
%{_mandir}/man5/ietd.conf.5*
%{_mandir}/man8/ietd.8*
%{_mandir}/man8/ietadm.8*

%files -n dkms-%{name}
%{dkmsdir}


%changelog
* Sun Sep 23 2018 umeabot <umeabot> 1.4.20.5-3.mga7
  (not released yet)
+ Revision: 1298329
- Mageia 7 Mass Rebuild

* Mon Feb 15 2016 umeabot <umeabot> 1.4.20.5-2.mga6
+ Revision: 960701
- Mageia 6 Mass Rebuild

* Tue Sep 29 2015 zezinho <zezinho> 1.4.20.5-1.mga6
+ Revision: 885061
- fixed build on kernel >= 3.19 with patch seen here : http://lists.openembedded.org/pipermail/openembedded-devel/2015-August/103052.html

* Fri Nov 28 2014 zezinho <zezinho> 1.4.20.4-1.mga5
+ Revision: 799732
- new upstream fix to use against 3.14 kernels

* Wed Oct 15 2014 umeabot <umeabot> 1.4.20.3-9.mga5
+ Revision: 742324
- Second Mageia 5 Mass Rebuild

* Tue Sep 16 2014 umeabot <umeabot> 1.4.20.3-8.mga5
+ Revision: 680571
- Mageia 5 Mass Rebuild

* Sat Oct 19 2013 umeabot <umeabot> 1.4.20.3-7.mga4
+ Revision: 535872
- Mageia 4 Mass Rebuild

* Sat Sep 21 2013 zezinho <zezinho> 1.4.20.3-6.mga4
+ Revision: 482760
- add requires for the dkms

* Tue Sep 17 2013 zezinho <zezinho> 1.4.20.3-5.mga4
+ Revision: 480888
- switch to trunk svn 496 because upstream did not release a tarball for kernel 3.10.x compatibility

* Sat Jan 12 2013 umeabot <umeabot> 1.4.20.3-4.mga3
+ Revision: 354520
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Sun Nov 11 2012 fwang <fwang> 1.4.20.3-3.mga3
+ Revision: 317017
- drop .svn directories
- set dkms package as noarch

* Mon Sep 17 2012 zezinho <zezinho> 1.4.20.3-2.mga3
+ Revision: 295592
- patch from upstream to build against recent kernels

* Fri Mar 09 2012 tv <tv> 1.4.20.3-1.mga2
+ Revision: 222336
- fix init script
- old typo fix
- fix build
- BR kernel-devel
- new release
- new release

* Sun Mar 06 2011 ennael <ennael> 1.4.20.1-2.mga1
+ Revision: 65396
- imported package iscsitarget


* Mon Dec 06 2010 Oden Eriksson <oeriksson@mandriva.com> 1.4.20.1-2mdv2011.0
+ Revision: 612419
- the mass rebuild of 2010.1 packages

* Mon Apr 26 2010 Luca Berra <bluca@mandriva.org> 1.4.20.1-1mdv2010.1
+ Revision: 539186
- update to 1.4.20.1
  remove obsolete patches

* Sat Apr 24 2010 Luca Berra <bluca@mandriva.org> 1.4.20-1mdv2010.1
+ Revision: 538445
- new version 1.4.20
- ESX serial number fix from SVN
- remove openssl buildrequire

* Wed Apr 21 2010 Funda Wang <fwang@mandriva.org> 1.4.19-3mdv2010.1
+ Revision: 537333
- rebuild

* Mon Feb 22 2010 Luca Berra <bluca@mandriva.org> 1.4.19-2mdv2010.1
+ Revision: 509454
- new version 1.4.19 + fixes from svn (r293)
  fix strict aliasing
  fix dkms build on 2.6.33 kernels

  + Thierry Vignaud <tv@mandriva.org>
    - rebuild

  + Buchan Milne <bgmilne@mandriva.org>
    - Kernel-compatibility patches for 2.6.28 and up, from google cache of commit list
      for r199, r200,r211,r214 (since berlios.de svn and list archives is missing)
    - r201 and r214 adjusted slightly to try and not break build due to missing r200
    - Adjust makefile to retry patch with -p1 if -p0 failed (new patches need -p1)
    - Build only in usr dir, usr target in toplevel patches kernel which results in
      double patching when dkms builds

* Mon Jan 12 2009 Jérôme Soyer <saispo@mandriva.org> 0.4.17-1mdv2009.1
+ Revision: 328440
- Remove patch because upstream fixed

* Fri Sep 26 2008 Buchan Milne <bgmilne@mandriva.org> 0.4.16-4mdv2009.0
+ Revision: 288569
- Ship patches for older kernels

* Fri Sep 05 2008 Buchan Milne <bgmilne@mandriva.org> 0.4.16-3mdv2009.0
+ Revision: 280999
- Drop kernel-source requires, kernel-devel pulled in by dkms is sufficient

* Thu Sep 04 2008 Buchan Milne <bgmilne@mandriva.org> 0.4.16-2mdv2009.0
+ Revision: 280460
- Fix building the module for a kernel other than the running kernel
- Include header-related fixes required for 2.6.26 and later from svn

* Tue Jun 17 2008 Pascal Terjan <pterjan@mandriva.org> 0.4.16-1mdv2009.0
+ Revision: 223546
- Add the glibc-2.8 patches

  + Guillaume Rousse <guillomovitch@mandriva.org>
    - new version

* Mon Feb 18 2008 Thierry Vignaud <tv@mandriva.org> 0.4.15-4mdv2008.1
+ Revision: 170900
- rebuild
- better summary
- summary is not licence tag
- kill re-definition of %%buildroot on Pixel's request

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

* Tue Oct 02 2007 Olivier Blin <oblin@mandriva.com> 0.4.15-3mdv2008.0
+ Revision: 94481
- update to new version

* Sat Jun 02 2007 Stefan van der Eijk <stefan@mandriva.org> 0.4.15-2mdv2008.0
+ Revision: 34749
- add patch for 2.6.22

* Mon Apr 30 2007 Stefan van der Eijk <stefan@mandriva.org> 0.4.15-1mdv2008.0
+ Revision: 19637
- disabled patch0, seems to be merged upstream
- reworked dkms config
- 0.4.15
- add %%version to dkms PACKAGE_VERSION


* Fri Oct 20 2006 Andreas Hasenack <andreas@mandriva.com> 0.4.14-1mdv2007.0
+ Revision: 71437
+ Status: not released
- updated to version 0.4.14
- bump release because the previous (failed) build is still in the queue
- added libopenssl-devel buildrequires
- added dkms package for the iscsi_trgt kernel module
- added initial workings of an init script
- Import iscsitarget