* [bug#49851] [PATCH] gnu: Add libiscsi.
@ 2021-08-03 23:04 Ron Nazarov via Guix-patches via
2022-02-24 5:10 ` bug#49851: " Maxim Cournoyer
0 siblings, 1 reply; 2+ messages in thread
From: Ron Nazarov via Guix-patches via @ 2021-08-03 23:04 UTC (permalink / raw)
To: 49851; +Cc: Ron Nazarov
* gnu/packages/scsi.scm (libiscsi): New variable.
---
gnu/packages/scsi.scm | 34 ++++++++++++++++++++++++++++++++--
1 file changed, 32 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/scsi.scm b/gnu/packages/scsi.scm
index 4c3bfd7e33..ae4f60c10d 100644
--- a/gnu/packages/scsi.scm
+++ b/gnu/packages/scsi.scm
@@ -1,6 +1,7 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2016 Chris Marusich <cmmarusich@gmail.com>
;;; Copyright © 2018, 2020, 2021 Tobias Geerinckx-Rice <me@tobias.gr>
+;;; Copyright © 2021 Noisytoot <noisytoot@disroot.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -19,10 +20,12 @@
(define-module (gnu packages scsi)
#:use-module ((guix licenses)
- #:select (gpl2+ bsd-2 bsd-3))
+ #:select (gpl2+ bsd-2 bsd-3 lgpl2.1+))
#:use-module (guix packages)
#:use-module (guix download)
- #:use-module (guix build-system gnu))
+ #:use-module (guix git-download)
+ #:use-module (guix build-system gnu)
+ #:use-module (gnu packages autotools))
(define-public sg3-utils
(package
@@ -65,3 +68,30 @@ used in C and C++ programs to interact with SCSI devices.")
;; various source code files refer to a file called "BSD_LICENSE" [...]."
;; Some files (like sg_compare_and_write.c) retain their 3-clause headers!
(license (list gpl2+ bsd-2 bsd-3))))
+
+(define-public libiscsi
+ (package
+ (name "libiscsi")
+ (version "1.19.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/sahlberg/libiscsi")
+ (commit version)))
+ (sha256
+ (base32
+ "0ajrkkg5awmi8m4b3mha7h07ylg18k252qprvk1sgq0qbyd66zy7"))
+ (file-name (git-file-name name version))))
+ (build-system gnu-build-system)
+ (native-inputs
+ `(("autoconf" ,autoconf)
+ ("automake" ,automake)
+ ("libtool" ,libtool)))
+ (synopsis "Client-side library for iSCSI")
+ (description "Libiscsi is a client-side library to implement
+the iSCSI protocol that can be used to access the resources of an iSCSI target.
+It is fully asynchronous with regards to iSCSI commands and SCSI tasks,
+but a synchronous layer is also provided for ease of use for simpler applications.")
+ (home-page "https://github.com/sahlberg/libiscsi")
+ (license (list gpl2+ lgpl2.1+))))
--
2.32.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* bug#49851: [PATCH] gnu: Add libiscsi.
2021-08-03 23:04 [bug#49851] [PATCH] gnu: Add libiscsi Ron Nazarov via Guix-patches via
@ 2022-02-24 5:10 ` Maxim Cournoyer
0 siblings, 0 replies; 2+ messages in thread
From: Maxim Cournoyer @ 2022-02-24 5:10 UTC (permalink / raw)
To: Ron Nazarov; +Cc: 49851-done
Hello!
Ron Nazarov <noisytoot@disroot.org> writes:
> * gnu/packages/scsi.scm (libiscsi): New variable.
> ---
> gnu/packages/scsi.scm | 34 ++++++++++++++++++++++++++++++++--
> 1 file changed, 32 insertions(+), 2 deletions(-)
>
> diff --git a/gnu/packages/scsi.scm b/gnu/packages/scsi.scm
> index 4c3bfd7e33..ae4f60c10d 100644
> --- a/gnu/packages/scsi.scm
> +++ b/gnu/packages/scsi.scm
> @@ -1,6 +1,7 @@
> ;;; GNU Guix --- Functional package management for GNU
> ;;; Copyright © 2016 Chris Marusich <cmmarusich@gmail.com>
> ;;; Copyright © 2018, 2020, 2021 Tobias Geerinckx-Rice <me@tobias.gr>
> +;;; Copyright © 2021 Noisytoot <noisytoot@disroot.org>
> ;;;
> ;;; This file is part of GNU Guix.
> ;;;
> @@ -19,10 +20,12 @@
>
> (define-module (gnu packages scsi)
> #:use-module ((guix licenses)
> - #:select (gpl2+ bsd-2 bsd-3))
> + #:select (gpl2+ bsd-2 bsd-3 lgpl2.1+))
> #:use-module (guix packages)
> #:use-module (guix download)
> - #:use-module (guix build-system gnu))
> + #:use-module (guix git-download)
> + #:use-module (guix build-system gnu)
> + #:use-module (gnu packages autotools))
>
> (define-public sg3-utils
> (package
> @@ -65,3 +68,30 @@ used in C and C++ programs to interact with SCSI devices.")
> ;; various source code files refer to a file called "BSD_LICENSE" [...]."
> ;; Some files (like sg_compare_and_write.c) retain their 3-clause headers!
> (license (list gpl2+ bsd-2 bsd-3))))
> +
> +(define-public libiscsi
> + (package
> + (name "libiscsi")
> + (version "1.19.0")
> + (source
> + (origin
> + (method git-fetch)
> + (uri (git-reference
> + (url "https://github.com/sahlberg/libiscsi")
> + (commit version)))
> + (sha256
> + (base32
> + "0ajrkkg5awmi8m4b3mha7h07ylg18k252qprvk1sgq0qbyd66zy7"))
> + (file-name (git-file-name name version))))
> + (build-system gnu-build-system)
> + (native-inputs
> + `(("autoconf" ,autoconf)
> + ("automake" ,automake)
> + ("libtool" ,libtool)))
> + (synopsis "Client-side library for iSCSI")
> + (description "Libiscsi is a client-side library to implement
> +the iSCSI protocol that can be used to access the resources of an iSCSI target.
> +It is fully asynchronous with regards to iSCSI commands and SCSI tasks,
> +but a synchronous layer is also provided for ease of use for simpler applications.")
> + (home-page "https://github.com/sahlberg/libiscsi")
> + (license (list gpl2+ lgpl2.1+))))
Well done! I've modified it a bit like so:
modified gnu/packages/scsi.scm
@@ -87,14 +87,16 @@ (define-public libiscsi
"0ajrkkg5awmi8m4b3mha7h07ylg18k252qprvk1sgq0qbyd66zy7"))
(file-name (git-file-name name version))))
(build-system gnu-build-system)
- (native-inputs
- `(("autoconf" ,autoconf)
- ("automake" ,automake)
- ("libtool" ,libtool)))
+ (native-inputs (list autoconf automake libtool))
For the new style inputs.
(synopsis "Client-side library for iSCSI")
- (description "Libiscsi is a client-side library to implement
-the iSCSI protocol that can be used to access the resources of an iSCSI target.
-It is fully asynchronous with regards to iSCSI commands and SCSI tasks,
-but a synchronous layer is also provided for ease of use for simpler applications.")
+ (description "Libiscsi is a client-side library to implement the iSCSI
+protocol that can be used to access the resources of an iSCSI target. It is
+fully asynchronous with regards to iSCSI commands and SCSI tasks, but a
+synchronous layer is also provided for ease of use for simpler
applications.")
Re-flowed the text in Emacs.
(home-page "https://github.com/sahlberg/libiscsi")
- (license (list gpl2+ lgpl2.1+))))
+ (license (list
+ ;; For the src, examples and test-tool directories, except
+ ;; src/ld_iscsi.c.
+ gpl2+
+ ;; For the lib and include directories.
+ lgpl2.1+))))
Added explanatory comments for the licenses.
And pushed as bf827d6465.
Thank you!
Maxim
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-02-24 5:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-03 23:04 [bug#49851] [PATCH] gnu: Add libiscsi Ron Nazarov via Guix-patches via
2022-02-24 5:10 ` bug#49851: " Maxim Cournoyer
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.