From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:47836) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jT9oN-0005f9-MD for guix-patches@gnu.org; Mon, 27 Apr 2020 15:53:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jT9oM-000113-TO for guix-patches@gnu.org; Mon, 27 Apr 2020 15:53:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54885) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jT9oM-0000yc-DR for guix-patches@gnu.org; Mon, 27 Apr 2020 15:53:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jT9oM-0006uj-Bq for guix-patches@gnu.org; Mon, 27 Apr 2020 15:53:02 -0400 Subject: [bug#40910] [PATCH] Add apt-mirror package Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:47426) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jT9lx-0004wD-JJ for guix-patches@gnu.org; Mon, 27 Apr 2020 15:50:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jT9lw-00083U-Dt for guix-patches@gnu.org; Mon, 27 Apr 2020 15:50:33 -0400 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]:50428) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jT9lv-00080x-UK for guix-patches@gnu.org; Mon, 27 Apr 2020 15:50:32 -0400 Received: by mail-wm1-x329.google.com with SMTP id x25so250635wmc.0 for ; Mon, 27 Apr 2020 12:50:31 -0700 (PDT) Received: from guixrules ([2a01:e35:2e0b:a6b0:e2ce:c3ff:fe74:cec8]) by smtp.gmail.com with ESMTPSA id g25sm253445wmh.24.2020.04.27.12.50.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Apr 2020 12:50:28 -0700 (PDT) From: Jean-Baptiste Note Date: Mon, 27 Apr 2020 19:50:26 +0000 Message-ID: <87ftcok8sd.fsf@m4x.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; 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: 40910@debbugs.gnu.org --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Dear guix maintainers, Please find attached a patch adding the apt-mirror utility as a package. I've tried to follow the guidelines (thanks for such detailed instructions), please advise any mistake. Kind regards, Jean-Baptiste --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-gnu-Add-apt-mirror.patch Content-Transfer-Encoding: quoted-printable Content-Description: add apt-mirror From=2082ad467853beae1969720323b4b19d49ed69c2f0 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Note Date: Sun, 26 Apr 2020 05:59:48 -0400 Subject: [PATCH] gnu: Add apt-mirror. * gnu/packages/debian.scm (apt-mirror): New variable. =2D-- gnu/packages/debian.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/debian.scm b/gnu/packages/debian.scm index ff4cccb03d..a3bbd2b907 100644 =2D-- a/gnu/packages/debian.scm +++ b/gnu/packages/debian.scm @@ -27,6 +27,7 @@ #:use-module (gnu packages base) #:use-module (gnu packages compression) #:use-module (gnu packages gnupg) + #:use-module (gnu packages wget) #:use-module (gnu packages perl)) =20 (define-public debian-archive-keyring @@ -190,3 +191,40 @@ scratch, without requiring the availability of @code{d= pkg} or @code{apt}. It does this by downloading .deb files from a mirror site, and carefully unpacking them into a directory which can eventually be chrooted into.") (license license:gpl2))) + + +(define-public apt-mirror + (let ((commit "e664486a5d8947c2579e16dd793d762ea3de4202") + (revision "1")) + (package + (name "apt-mirror") + (version (git-version "0.5.4" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/apt-mirror/apt-mirror/") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0qj6b7gldwcqyfs2kp6amya3ja7s4vrljs08y4zadryfzxf35nqq"))= )) + (build-system gnu-build-system) + (outputs '("out")) + (arguments + `(#:tests? #f + ;; sysconfdir is not PREFIXed in the makefile but DESTDIR is + ;; honored correctly; we therefore use DESTDIR for our + ;; needs. A more correct fix would involve patching. + #:make-flags (list (string-append "DESTDIR=3D" (assoc-ref %output= s "out")) + "PREFIX=3D/") + #:phases (modify-phases %standard-phases (delete 'configure)))) + (inputs + `(("wget" ,wget) + ("perl" ,perl))) + (home-page "http://apt-mirror.github.io/") + (synopsis "Script for mirroring a Debian repository") + (description + "apt-mirror is a small tool that provides the ability to +selectively mirror Debian and Ubuntu GNU/Linux distributions or any +other apt sources typically provided by open source developers.") + (license license:gpl2)))) =2D-=20 2.26.1 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEPxcq3dp4FVY5UpckkC0pVsuz75YFAl6nN4IACgkQkC0pVsuz 75aS9BAAp7+NzmaT+ZwdPnffLvjdafgJUn9QX6bd5zpp9Tnm4ejGTHCIxxjlh/a6 40xuvAm4qXLCmDmJVl1EmlKjotuaPRrC5wI0xf0OyrKESPxbur6xWkthfJHz3gkP hBTVBnUIQgKV1KkYL2ZYYazIwkG6ccbetc0Lyw3K6oGVYDlK70InKasbeMBTa1aS nmSymeZHpqp3l0HOzUflGzjSTCp7WEAZ/A989UX2keM7wq8hpIMCtXLybgHwg4Js b3OEcWGm8PIyzhbwyIeDfDDFCZGrHrm1VlplLUANIbnswjZ0YrjBfhMXNN/T55IH YcVaOKvs+co/hxuEhH1forwUt7a4fd95PyszO0YEWj3dGZuBLcRGotkkqzg1avlE M4OlFCF1R3u/2iadpOUd6L0YyFH7KwjPs0lwHLtFH0SirFjTzHT1NOD2EdeY6RUx v3CJRaYpQHp75IZyI1ufjdaLZsz1hTOj2SwnUdVib+YKwQXU6hXM6GYVb5CLZxGh mBnbFl3VMJ3JC84Bl+dxTFjzYmzg53kRAJ3IKaJdj1yEIPuDi1EPprXBU3iAdskq JPouxF909T0Il4Hfp6d9Cl1pFxnWJGyqKW3nasWQqJKk1ZFSOtI74zCRfYMjGdj9 d02p0pLFCb8bvYNpJ1s6hieXGOWlwI+tBjsFdcyUTeqJjfodC1g= =yIRP -----END PGP SIGNATURE----- --==-=-=--