[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#28973] [PATCH 1/1] gnu: Add strongswan.
From: |
Tobias Geerinckx-Rice |
Subject: |
[bug#28973] [PATCH 1/1] gnu: Add strongswan. |
Date: |
Tue, 24 Oct 2017 22:11:11 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 |
Adam,
Adam Van Ymeren wrote on 24/10/17 at 20:58:
> Their website is not very precise about the licensing. It just says
> GPL2, but all the files I checked were GPL2+, except one which says
> "MIT" but is really the text of the Expat license as listen on the FSF
> directory.
That's because what some call ‘MIT’ is almost always what the FSF (and
others) call ‘Expat’. The name ‘MIT’ is ambiguous and best avoided.
So you've made the right call :-)
> I believe the licensing info is correct now but I didn't do an
> exhaustive search of all files.
Unfortunately, that's the only way to be sure.
Most files are indeed GPL2+, or what I presume to be dual-licenced
GPL2+/Expat (e.g. src/swanctl/commands/list_sas.c).
A cursory inspection reveals additional BSD-4 headers in
src/libstrongswan/plugins/{blowfish,des}, BSD-3 in
src/include/sys/queue.h and src/libtncif/tncif*, and something vague in
src/libstrongswan/plugins/curve25519/ref10.
More eyeballs welcome.
> ---
> gnu/packages/networking.scm | 33 +++++++++++++++++++++++++++++++++
> 1 file changed, 33 insertions(+)
>
> diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
> index 633b8ca43..6d639f716 100644
> --- a/gnu/packages/networking.scm
> +++ b/gnu/packages/networking.scm
> @@ -78,6 +78,8 @@
> #:use-module (gnu packages valgrind)
> #:use-module (gnu packages wm)
> #:use-module (gnu packages xml)
> + #:use-module (gnu packages multiprecision)
> + #:use-module (gnu packages gnuzilla)
> #:use-module (ice-9 match))
Please try to keep these alphabetical. Aesthetic nit-picking aside, it
makes it harder to miss duplication, which does happen.
> (define-public macchanger
> @@ -1494,3 +1496,34 @@ interface and a programmable text output for
> scripting.")
> ;; Update the license field when upstream responds.
> (license (list license:bsd-2
> license:expat))))
> +
> +(define-public strongswan
> + (package
> + (name "strongswan")
> + (version "5.6.0")
> + (source
> + (origin
> + (method url-fetch)
> + (uri (string-append "https://download.strongswan.org/strongswan-"
> version ".tar.bz2"))
> + (sha256
> + (base32 "04vvha2zgsg1cq05cnn6sf7a4hq9ndnsfxpw1drm5v9l4vcw0kd1"))
> + (patches
> + (search-patches "strongswan-test_process-disable-all.patch"
> +
> "strongswan-test_time_printf_hook-pass-in-utc.patch"))))
These patches are missing from the series, so I can't build the package.
> + (build-system gnu-build-system)
> + (inputs
> + `(("gmp" ,gmp)
> + ("openssl" ,openssl)
> + ("libgcrypt" ,libgcrypt)
> + ("curl" ,curl)))
Please keep these alphabetically as well (or add explicit header
comments if the ordering is significant).
> + (synopsis "IKEv1/v2 keying daemon")
> + (description "strongswan is an open source IPSec implementation")
Newspeak aside[0], all software in Guix is Free. Removing ‘open source’
leaves us with a very short description indeed...
Is there a README, web, or man page who's opening paragraphs we could
shamelessly plunder?
> + (home-page "https://strongswan.org/")
> + (license
> + ;; Everything seems to be gpl2+ except
> + ;; src/libcharon/plugins/vici/libvici.h which is MIT/expat. The actual
> + ;; source file "libvici.h" claims it's MIT, but the actual text of the
> + ;; license is identical to expat as listed here:
> + ;; https://directory.fsf.org/wiki/License:Expat
The MIT/expat confusion is unfortunate but not unique to this package,
and doesn't need to be explained here.
> + (list license:gpl2+
> + license:expat))))
When possible, I prefer the more compact style of
(list license:foo ; src/frob.[ch], doc/frob.texi
license:bar)))) ; everything else
but that's partly a matter of taste and line length.
Oh, and: thanks for packaging StrongSwan!
Kind regards,
T G-R
[0]: https://www.gnu.org/philosophy/open-source-misses-the-point.en.html