unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Marius Bakke <mbakke@fastmail.com>
To: Thomas Danckaert <post@thomasdanckaert.be>,
	Tobias Geerinckx-Rice <me@tobias.gr>
Cc: 26312@debbugs.gnu.org
Subject: bug#26312: [PATCH] gnu: Add cifs-utils.
Date: Sat, 01 Apr 2017 19:18:01 +0200	[thread overview]
Message-ID: <87lgrkavxy.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> (raw)
In-Reply-To: <cucbmsg4oaa.fsf@thomasdanckaert.be>

[-- Attachment #1: Type: text/plain, Size: 4747 bytes --]

Thomas Danckaert <post@thomasdanckaert.be> writes:

> Tobias Geerinckx-Rice <me@tobias.gr> writes:
>
>> Thomas,
>>
>> I don't have any Samba shares to test this on, but will try my hand at
>> this reviewing business anyway.
>
> Thanks!  I followed all of your suggestions.
>
>> Aside: GNU uses ‘file system’, not ‘filesystem’, because GNU is rad. How
>> about expanding the acronym at the same time? E.g.:
>>
>>   ‘the @{Common Internet File System} (CIFS) implementation built into
>>    the Linux kernel’.
>>
>> Bonus points for replacing the horrid word ‘implementation’ :-)
>
> I stole this from somewhere:
>
> “@code{cifs-utils} is a set of user-space utilities for mounting and
> managing @{Common Internet File System} (CIFS) shares using the Linux
> kernel CIFS client.”
>
> Thomas
>
> From 08858a1e8674f868db2fc255e47bb18aa0ee9de9 Mon Sep 17 00:00:00 2001
> From: Thomas Danckaert <post@thomasdanckaert.be>
> Date: Thu, 30 Mar 2017 17:47:00 +0200
> Subject: [PATCH] gnu: Add cifs-utils.
>
> * gnu/packages/samba.scm (cifs-utils): New variable.
> ---
>  gnu/packages/samba.scm | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 48 insertions(+)
>
> diff --git a/gnu/packages/samba.scm b/gnu/packages/samba.scm
> index 3b2a6868d..92531eebf 100644
> --- a/gnu/packages/samba.scm
> +++ b/gnu/packages/samba.scm
> @@ -3,6 +3,7 @@
>  ;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
>  ;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
>  ;;; Copyright © 2016 Adonay "adfeno" Felipe Nogueira <https://libreplanet.org/wiki/User:Adfeno> <adfeno@openmailbox.org>
> +;;; Copyright © 2017 Thomas Danckaert <post@thomasdanckaert.be>
>  ;;;
>  ;;; This file is part of GNU Guix.
>  ;;;
> @@ -26,6 +27,8 @@
>    #:use-module (guix licenses)
>    #:use-module (gnu packages acl)
>    #:use-module (gnu packages admin)
> +  #:use-module (gnu packages autotools)
> +  #:use-module (gnu packages crypto)
>    #:use-module (gnu packages cups)
>    #:use-module (gnu packages databases)
>    #:use-module (gnu packages tls)
> @@ -33,10 +36,55 @@
>    #:use-module (gnu packages pkg-config)
>    #:use-module (gnu packages openldap)
>    #:use-module (gnu packages readline)
> +  #:use-module (gnu packages kerberos)
>    #:use-module (gnu packages linux)
>    #:use-module (gnu packages perl)
>    #:use-module (gnu packages python))
>  
> +(define-public cifs-utils
> +  (package
> +    (name "cifs-utils")
> +    (version "6.7")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (string-append "https://download.samba.org/pub/linux-cifs/"
> +                           name "/" name "-" version ".tar.bz2"))
> +       (sha256 (base32
> +                "1ayghnkryy1n1zm5dyvyyr7n3807nsm6glfcbbki5c2a8w91dwmj"))))
> +    (build-system gnu-build-system)
> +    (native-inputs
> +     `(("autoconf" ,autoconf)
> +       ("automake" ,automake)
> +       ("pkg-config" ,pkg-config)))
> +    (inputs
> +     `(("keytuils" ,keyutils)
> +       ("linux-pam" ,linux-pam)
> +       ("libcap-ng" ,libcap-ng)
> +       ("mit-krb5" ,mit-krb5)
> +       ("samba" ,samba)
> +       ("talloc" ,talloc)))
> +    (arguments
> +     `(#:phases
> +       (modify-phases %standard-phases
> +         ;; The 6.7 tarball is missing ‘install.sh’. Create it.
> +         (add-before 'configure 'autoreconf
> +           (lambda _
> +             (zero? (system* "autoreconf" "-i"))))
> +         (add-before 'configure 'set-root-sbin
> +           (lambda _ ; Don't try to install in "/sbin".
> +             (setenv "ROOTSBINDIR"
> +                     (string-append (assoc-ref %outputs "out") "/sbin"))
> +             #t)))))
> +    (synopsis "User-space utilities for Linux CIFS (Samba) mounts")
> +    (description "@code{cifs-utils} is a set of user-space utilities for
> +mounting and managing @{Common Internet File System} (CIFS) shares using the
                         ^^^
                         This should be @dfn{...}.

> +Linux kernel CIFS client.")
> +    (home-page "https://wiki.samba.org/index.php/LinuxCIFS_utils")
> +    ;; cifs-utils is licensed as GPL3 or later, but 3 files contain LGPL code.
> +    (license
> +     (list gpl3+ lgpl2.1+ lgpl3+))))

Could you mention which files, since it's only three? I also think
listing both lgpl2.1+ and lgpl3+ is redundant; if these source files
interact in some way the result is effectively lgpl3+. If the LGPL2.1+
code is what is installed, I would pick that since it implies LGPL3+.

The rest LGTM!

> +
>  (define-public iniparser
>    (package
>      (name "iniparser")
> -- 
> 2.12.2

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

  reply	other threads:[~2017-04-01 17:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-30 15:48 bug#26312: [PATCH] gnu: Add cifs-utils Thomas Danckaert
2017-03-30 20:19 ` Tobias Geerinckx-Rice
2017-04-01  6:47   ` Thomas Danckaert
2017-04-01 17:18     ` Marius Bakke [this message]
2017-04-02 10:52       ` Thomas Danckaert
2017-04-02 11:35         ` Marius Bakke
2017-04-02 16:14           ` Thomas Danckaert
2017-04-03 20:02           ` Thomas Danckaert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lgrkavxy.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me \
    --to=mbakke@fastmail.com \
    --cc=26312@debbugs.gnu.org \
    --cc=me@tobias.gr \
    --cc=post@thomasdanckaert.be \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).