Author: arekm                        Date: Sun Mar  1 17:37:06 2009 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- initial

---- Files affected:
SPECS:
   tgt.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/tgt.spec
diff -u /dev/null SPECS/tgt.spec:1.1
--- /dev/null   Sun Mar  1 18:37:06 2009
+++ SPECS/tgt.spec      Sun Mar  1 18:37:00 2009
@@ -0,0 +1,94 @@
+# $Revision$, $Date$
+# TODO:
+# - init scripts
+# - config files
+%bcond_with    kernel
+Summary:       Linux SCSI target framework
+Name:          tgt
+Version:       0.9.4
+Release:       0.1
+License:       GPL
+Group:         Networking/Daemons
+Source0:       http://stgt.berlios.de/releases/%{name}-%{version}.tar.bz2
+# Source0-md5: efe76fadd42c4090761be00747c49522
+URL:           http://stgt.berlios.de/
+BuildRequires: librdmacm-devel
+BuildRequires: openssl-devel
+BuildRequires: rpmbuild(macros) >= 1.379
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Linux target framework (tgt) aims to simplify various SCSI target
+driver (iSCSI, Fibre Channel, SRP, etc) creation and maintenance. Our
+key goals are the clean integration into the scsi-mid layer and
+implementing a great portion of tgt in user space.
+
+Target drivers:
+- iSCSI software target driver for Ethernet NICs
+- iSER software target driver for Infiniband and RDMA NICs
+- Virtual SCSI target driver for IBM pSeries
+- FCoE software target driver for Ethernet NICs (in progress)
+- Qlogic qla2xxx FC target driver (in progress)
+- LSI logic FC target driver (not yet)
+- Qlogic qla4xxx iSCSI target driver (not yet)
+- Virtual SCSI target driver for Xen (obsolete)
+
+Device Emulation :
+- SBC: a virtual disk drive that can use a file to store the content.
+- SMC: a virtual media jukebox that can be controlled by the "mtx"
+  tool (partially functional).
+- MMC: a virtual DVD drive that can read DVD-ROM iso files and create
+  burnable DVD+R. It can be combined with SMC to provide a fully
+  operational DVD jukebox.
+- SSC: a virtual tape device (aka VTL) that can use a file to store
+  the content (in progress).
+- OSD: a virtual object-based storage device that can use a file to
+  store the content (in progress).
+
+%prep
+%setup -q
+
+sed -i -e 's#-O2#$(OPTFLAGS)#g' usr/Makefile
+
+%build
+%{__make} -C usr \
+       CC="%{__cc}" \
+       OPTFLAGS="%{rpmcppflags} %{rpmcflags}" \
+%if %{with kernel}
+               KERNELSRC="%{_kernelsrcdir}" \
+               IBMVIO=1 \
+               FCP=1 \
+               FCOE=1 \
+%endif
+       ISCSI=1 \
+       ISCSI_RDMA=1
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT{%{_docdir}/%{name},%{_mandir}/man8}
+
+%{__make} -C usr install \
+       DESTDIR=$RPM_BUILD_ROOT \
+       docdir=$RPM_BUILD_ROOT%{_docdir}/%{name}
+
+install doc/manpages/*.8 $RPM_BUILD_ROOT%{_mandir}/man8
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc doc/*.*
+%attr(755,root,root) %{_sbindir}/tgt*
+%{_mandir}/man8/*
+
+%define        date    %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <[email protected]>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2009/03/01 17:37:00  arekm
+- initial
+
================================================================
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to