mirror of
https://git.proxmox.com/git/libiscsi
synced 2025-10-04 05:34:11 +00:00
Initial commit
This commit is contained in:
commit
97d20cff2c
54
Makefile
Normal file
54
Makefile
Normal file
@ -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}
|
8
debian/changelog
vendored
Normal file
8
debian/changelog
vendored
Normal file
@ -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
|
1
debian/compat
vendored
Normal file
1
debian/compat
vendored
Normal file
@ -0,0 +1 @@
|
||||
7
|
53
debian/control
vendored
Normal file
53
debian/control
vendored
Normal file
@ -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.
|
48
debian/copyright
vendored
Normal file
48
debian/copyright
vendored
Normal file
@ -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:
|
||||
|
||||
|
4
debian/libiscsi-bin.install
vendored
Normal file
4
debian/libiscsi-bin.install
vendored
Normal file
@ -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-*
|
3
debian/libiscsi-dev.install
vendored
Normal file
3
debian/libiscsi-dev.install
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
usr/include/*
|
||||
usr/lib/libiscsi.a
|
||||
usr/lib/libiscsi.so
|
1
debian/libiscsi1.install
vendored
Normal file
1
debian/libiscsi1.install
vendored
Normal file
@ -0,0 +1 @@
|
||||
usr/lib/libiscsi.so.*
|
8
debian/rules
vendored
Executable file
8
debian/rules
vendored
Executable file
@ -0,0 +1,8 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
%:
|
||||
dh $@
|
||||
|
||||
override_dh_auto_configure:
|
||||
./autogen.sh
|
||||
./configure --prefix=/usr --libdir=/usr/lib
|
BIN
libiscsi-1.5.0.tar.gz
Normal file
BIN
libiscsi-1.5.0.tar.gz
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user