From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39832) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7dbN-000238-Ql for guix-patches@gnu.org; Mon, 08 May 2017 04:01:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d7dbK-0003VQ-Mq for guix-patches@gnu.org; Mon, 08 May 2017 04:01:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:34676) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d7dbK-0003VD-GQ for guix-patches@gnu.org; Mon, 08 May 2017 04:01:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d7dbK-0003P9-9Z for guix-patches@gnu.org; Mon, 08 May 2017 04:01:02 -0400 Subject: bug#26819: [PATCH] gnu: Add f3. Resent-Message-ID: From: Marius Bakke In-Reply-To: <1494182772-22001-1-git-send-email-h.goebel@crazy-compilers.com> References: <1494182772-22001-1-git-send-email-h.goebel@crazy-compilers.com> Date: Mon, 08 May 2017 10:00:34 +0200 Message-ID: <87lgq7ydzx.fsf@fastmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Hartmut Goebel , 26819@debbugs.gnu.org --=-=-= Content-Type: text/plain Hartmut Goebel writes: > * gnu/packages/disk.scm (f3): New variable. > --- > gnu/packages/disk.scm | 41 +++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 41 insertions(+) > > diff --git a/gnu/packages/disk.scm b/gnu/packages/disk.scm > index 9389527..2889509 100644 > --- a/gnu/packages/disk.scm > +++ b/gnu/packages/disk.scm > @@ -337,3 +337,44 @@ project to detect and manipulate partition tables. Optional file system tools > permit managing file systems not included in libparted.") > ;; The home page says GPLv2, but the source code says GPLv2+. > (license license:gpl2+))) > + > + > +(define-public f3 > + (package > + (name "f3") > + (version "6.0") > + (source > + (origin > + (method url-fetch) > + (uri (string-append "https://github.com/AltraMayor/f3/archive/" > + "v" version ".tar.gz")) > + (file-name (string-append name "-" version ".tar.gz")) > + (sha256 > + (base32 > + "1mgbzc1swvgil45md1336j0aqkmkhwmpxical0ln5g09b2qxsanp")))) > + (build-system gnu-build-system) > + (arguments Indentation is off here. > + '(#:tests? #f ; no check target > + #:make-flags (list "CC=gcc" > + (string-append "PREFIX=" %output)) > + #:phases > + (modify-phases %standard-phases > + (delete 'configure) > + (add-before 'build 'fix-makefile > + (lambda _ > + (substitute* "Makefile" > + ((" -oroot -groot ") " ") > + ;; also build and install experimental tools > + (("^all: ") "all: $(EXPERIMENTAL_TARGETS) ") > + (("^install: ") "install-all: ") > + (("^install-experimental: ") "install: install-all "))))))) Make sure this phase returns a #t. > + (inputs > + `(("eudev" ,eudev) > + ("parted" ,parted))) > + (home-page "http://oss.digirati.com.br/f3/") > + (synopsis "Test real capacity of flash memory cards and such.") > + (description "F3 (Fight Flash Fraud or Fight Fake Flash) tests the full > +capacity of a flash card (flash drive, flash disk, pendrive). F3 writes to > +the card and then checks if can read it. It will assure you haven't been sold > +a card with a smaller capacity than stated.") > + (license license:gpl3))) I can't find any license version information in the source code. Unless a version is explicitly mentioned in the source header, we default to "or later". Other than that LGTM. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlkQJaIACgkQoqBt8qM6 VPqFbQf9EWO4g7i8Njgy/JbR6YOkf3CmKxQYLiAVGTg6uzT42PM3GPru+4nwsUc7 S5Ah8C6ez4RDCDTvewYb1n8maosMctp08fAtXxKUET12k6DEfgIlN+8+YdeaOxkw Mrqi75NRD8kgIHDO3Fjv0xsOBAlDPElkPSESDzbzerhZEdcgQwBiByP2T7L2Xvp7 ZZT77inqNJAwbAyh4t5cwDkOHmg9jRApijJg57skmBJIOsv7InLlH3K93x5sht6m ms1cjQ14TbDe3R6dfUX4e2solJO2ldbf7LdcTeqZbPYgJwBd72XDLgD9mKSa63IC Y3AUZL+ZnsHEvbx+auJo6xate3a38w== =ckMJ -----END PGP SIGNATURE----- --=-=-=--