]> git.proxmox.com Git - libiscsi.git/commitdiff
Initial commit
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 17 Jul 2012 08:48:30 +0000 (10:48 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 17 Jul 2012 08:54:07 +0000 (10:54 +0200)
Makefile [new file with mode: 0644]
debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/libiscsi-bin.install [new file with mode: 0644]
debian/libiscsi-dev.install [new file with mode: 0644]
debian/libiscsi1.install [new file with mode: 0644]
debian/rules [new file with mode: 0755]
libiscsi-1.5.0.tar.gz [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..3ced958
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,54 @@
+RELEASE=2.1
+
+PKGVERSION=1.5.0
+PKGRELEASE=1
+PKGDIR=libiscsi-${PKGVERSION}
+PKGSRC=libiscsi-${PKGVERSION}.tar.gz
+
+ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
+
+DEBS=                                                                  \
+       libiscsi-bin_${PKGVERSION}-${PKGRELEASE}_${ARCH}.deb            \
+       libiscsi-dev_${PKGVERSION}-${PKGRELEASE}_${ARCH}.deb            \
+       libiscsi1_${PKGVERSION}-${PKGRELEASE}_${ARCH}.deb 
+
+all: ${DEBS}
+       echo ${DEBS}
+
+${DEBS}: ${PKGSRC}
+       echo ${DEBS}
+       rm -rf ${PKGDIR}
+       tar xf ${PKGSRC} 
+       cp -a debian ${PKGDIR}/debian
+       cat ${PKGDIR}/COPYING >>${PKGDIR}/debian/copyright
+       cd ${PKGDIR}; dpkg-buildpackage -rfakeroot -b -us -uc
+
+.PHONY: download
+${PKGSRC} download:
+       rm -rf ${PKGDIR} libiscsi.git
+       git clone git://github.com/sahlberg/libiscsi.git libiscsi.git
+       cd libiscsi.git; git checkout -b local ${PKGVERSION}
+       rsync -a --exclude .git --exclude .gitignore libiscsi.git/ ${PKGDIR} 
+       tar czf ${PKGSRC}.tmp  ${PKGDIR}
+       rm -rf ${PKGDIR}
+       mv ${PKGSRC}.tmp ${PKGSRC}
+
+.PHONY: upload
+upload: ${DEBS}
+       umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw
+       mkdir -p /pve/${RELEASE}/extra
+       rm -f /pve/${RELEASE}/extra/libiscsi*.deb
+       rm -f /pve/${RELEASE}/extra/Packages*
+       cp ${DEBS} /pve/${RELEASE}/extra
+       cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
+       umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
+
+distclean: clean
+
+.PHONY: clean
+clean:
+       rm -rf *_${ARCH}.deb *.changes *.dsc ${PKGDIR} 
+
+.PHONY: dinstall
+dinstall: ${DEBS}
+       dpkg -i ${DEBS}
diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..b95f97f
--- /dev/null
@@ -0,0 +1,8 @@
+libiscsi (1.5.0-1) unstable; urgency=low
+
+  * import to pve git. This work is based on the original debian package
+    from squeeze-backport. So the packages have the same name and should
+    include the same files as the original debian packages. The difference
+    is that we use latest stable release form git.
+
+ -- Proxmox Support Team <support@proxmox.com>  Tue, 17 Jul 2012 09:47:37 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..7f8f011
--- /dev/null
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..2b83530
--- /dev/null
@@ -0,0 +1,53 @@
+Source: libiscsi
+Section: net
+Priority: optional
+Maintainer: Proxmox Support Team <support@proxmox.com>
+Build-Depends: debhelper (>= 7), libpopt-dev
+Standards-Version: 3.9.2
+Homepage: https://github.com/sahlberg/libiscsi
+
+Package: libiscsi1
+Section: libs
+Architecture: any
+Multi-Arch: same
+Pre-Depends: ${misc:Pre-Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: iSCSI client shared library
+ Libiscsi is a clientside library to implement the iSCSI protocol
+ that can be used to access resource of an iSCSI Target.
+ .
+ The library is fully async with regards to iscsi commands and scsi
+ tasks, but a sync layer is also provided for ease of use for simpler
+ applications.
+ .
+ This package contains the library itself.
+
+Package: libiscsi-dev
+Section: libdevel
+Architecture: any
+Depends: libiscsi1 (= ${binary:Version}), ${misc:Depends}
+Description: iSCSI client shared library
+ Libiscsi is a clientside library to implement the iSCSI protocol
+ that can be used to access resource of an iSCSI Target.
+ .
+ The library is fully async with regards to iscsi commands and scsi
+ tasks, but a sync layer is also provided for ease of use for simpler
+ applications.
+ .
+ This package contains the header files, static library and other files
+ needed to compile applications which uses libiscsi.
+
+Package: libiscsi-bin
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: iSCSI client shared library - utilities
+ Libiscsi is a clientside library to implement the iSCSI protocol
+ that can be used to access resource of an iSCSI Target.
+ .
+ The library is fully async with regards to iscsi commands and scsi
+ tasks, but a sync layer is also provided for ease of use for simpler
+ applications.
+ .
+ This package contains a set of useful iscsi utilities such as logging in
+ to and enumerating all targets on a portal and all devices of a target,
+ all built on top of libiscsi.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..5b64e86
--- /dev/null
@@ -0,0 +1,48 @@
+This work was packaged for Debian by:
+
+    Proxmox Support Team <support@proxmox.com>
+
+    on Tue, 17 Jul 2012 10:34:43 +0200
+
+It was downloaded from:
+
+    git://github.com/sahlberg/libiscsi.git
+
+Upstream Author(s):
+
+    Ronnie Sahlberg <ronniesahlberg@gmail.com>
+
+Copyright:
+
+    Copyright (C) 2010 by Ronnie Sahlberg <ronniesahlberg@gmail.com>
+
+    see COPYING for details.
+
+License: GPL-2
+
+    This program is free software; you can redistribute it and/or modify it
+    under the terms of the GNU General Public License version 2 as published by
+    the Free Software Foundation.
+
+    A copy of this license is included for your convenience in:
+    /usr/share/common-licenses/GPL-2   
+
+License: LGPL-2.1
+
+    This library is free software; you can redistribute it and/or
+    modify it under the terms of the GNU Lesser General Public License
+    as published by the Free Software Foundation; either version 2.1
+    of the License, or (at your option) any later version.
+
+    A copy of this license is included for your convenience in:
+    /usr/share/common-licenses/LGPL-2.1        
+
+The Debian packaging is:
+
+    Copyright (C) 2012 Proxmox Support Team <support@proxmox.com>
+
+    and is licensed under the AGPL version 3
+
+COPYING:
+
+
diff --git a/debian/libiscsi-bin.install b/debian/libiscsi-bin.install
new file mode 100644 (file)
index 0000000..c57850b
--- /dev/null
@@ -0,0 +1,4 @@
+# do not use ld_iscsi.so (which is built on linux) for now,
+# to avoid complications with multilib.  Note that this
+# shared object is put to /usr/bin by upstream, which is wrong.
+usr/bin/iscsi-*
diff --git a/debian/libiscsi-dev.install b/debian/libiscsi-dev.install
new file mode 100644 (file)
index 0000000..4bd8e0b
--- /dev/null
@@ -0,0 +1,3 @@
+usr/include/*
+usr/lib/libiscsi.a
+usr/lib/libiscsi.so
diff --git a/debian/libiscsi1.install b/debian/libiscsi1.install
new file mode 100644 (file)
index 0000000..fcd3c71
--- /dev/null
@@ -0,0 +1 @@
+usr/lib/libiscsi.so.*
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..64887ad
--- /dev/null
@@ -0,0 +1,8 @@
+#!/usr/bin/make -f
+
+%:
+       dh $@
+
+override_dh_auto_configure:
+       ./autogen.sh
+       ./configure --prefix=/usr --libdir=/usr/lib
diff --git a/libiscsi-1.5.0.tar.gz b/libiscsi-1.5.0.tar.gz
new file mode 100644 (file)
index 0000000..103c151
Binary files /dev/null and b/libiscsi-1.5.0.tar.gz differ