unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Z572 <zhengjunjie@iscas.ac.cn>
To: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Cc: 72805-done@debbugs.gnu.org
Subject: bug#72805: [PATCH v2] gnu: add apt-cacher-ng.
Date: Tue, 24 Sep 2024 23:09:21 +0800	[thread overview]
Message-ID: <87zfnx9jha.fsf@iscas.ac.cn> (raw)
In-Reply-To: <fb479f67ace166f3d907541c592a137ee26f0e41.1724597715.git.GNUtoo@cyberdimension.org> (Denis Carikli's message of "Sun, 25 Aug 2024 16:55:15 +0200")

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

Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> writes:

> * gnu/packages/debian.scm (apt-cacher-ng): New variable.
>
> Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
> Change-Id: Ia77fa38e3cd7dffef8c950a61c2e8c06971132f2
> ---
>  gnu/packages/debian.scm | 54 ++++++++++++++++++++++++++++++++++++++++-
>  1 file changed, 53 insertions(+), 1 deletion(-)
>
> diff --git a/gnu/packages/debian.scm b/gnu/packages/debian.scm
> index 6f7b809fd2..7df79d988a 100644
> --- a/gnu/packages/debian.scm
> +++ b/gnu/packages/debian.scm
> @@ -2,7 +2,7 @@
>  ;;; Copyright © 2018, 2020-2024 Efraim Flashner <efraim@flashner.co.il>
>  ;;; Copyright © 2018, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
>  ;;; Copyright © 2020 Marius Bakke <marius@gnu.org>
> -;;; Copyright © 2023 Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
> +;;; Copyright © 2023, 2024 Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
>  ;;;
>  ;;; This file is part of GNU Guix.
>  ;;;
> @@ -25,10 +25,12 @@ (define-module (gnu packages debian)
>    #:use-module (guix git-download)
>    #:use-module (guix gexp)
>    #:use-module (guix packages)
> +  #:use-module (guix build-system cmake)
>    #:use-module (guix build-system copy)
>    #:use-module (guix build-system gnu)
>    #:use-module (guix build-system perl)
>    #:use-module (guix build-system trivial)
> +  #:use-module (gnu packages adns)
>    #:use-module (gnu packages autotools)
>    #:use-module (gnu packages backup)
>    #:use-module (gnu packages base)
> @@ -40,12 +42,14 @@ (define-module (gnu packages debian)
>    #:use-module (gnu packages gettext)
>    #:use-module (gnu packages gnupg)
>    #:use-module (gnu packages guile)
> +  #:use-module (gnu packages libevent)
>    #:use-module (gnu packages linux)
>    #:use-module (gnu packages man)
>    #:use-module (gnu packages ncurses)
>    #:use-module (gnu packages perl)
>    #:use-module (gnu packages pkg-config)
>    #:use-module (gnu packages python)
> +  #:use-module (gnu packages tls)
>    #:use-module (gnu packages web)
>    #:use-module (gnu packages wget)
>    #:use-module (srfi srfi-1)
> @@ -529,6 +533,54 @@ (define-public debianutils
>                                       "The SMAIL General Public License, see
>  debian/copyright for more information.")))))
>  
> +(define-public apt-cacher-ng
> +  (package
> +    (name "apt-cacher-ng")
> +    (version "3.7.5")
> +    (source
> +     (origin
> +       (method git-fetch)
> +       (uri (git-reference
> +             (url "https://salsa.debian.org/blade/apt-cacher-ng.git")
> +             (commit "upstream/3.7.5")))
> +       (file-name (git-file-name name version))
> +       (sha256
> +        (base32 "0wxqdmmm2gm27zng7v7lwai4zf6ppj26890r7z2ns237xx33jdp6"))))
> +    (build-system cmake-build-system)
> +    (inputs (list bzip2 ;optional
> +                  c-ares
> +                  libevent
> +                  openssl ;optional
> +                  xz ;optional
> +                  zlib))
> +    (native-inputs (list pkg-config))
> +    (arguments
> +     (list
> +      #:tests? #f ;Tests are "for development only".
> +      #:phases #~(modify-phases %standard-phases
> +                   ;; We want to provide good defaults. Here apt-cacher-ng is built
> +                   ;; without libwrap support so we disable that by default.
> +                   (add-before 'configure 'patch-config
> +                     (lambda _
> +                       (substitute* "conf/acng.conf.in"
> +                         (("# UseWrap: 0")
> +                          "UseWrap: 0")))))))
> +    (home-page "https://www.unix-ag.uni-kl.de/~bloch/acng/")
> +    (synopsis "Caching proxy for packages of various software distributions or
> +repositories")
> +    (description
> +     "It is mainly meant for caching packages of Debian or Debian
> +based distributions (like Trisquel) through HTTP.  It also has partial support
> +for HTTPS and other distributions / repositories (OpenSUSE, Arch Linux,
> +Sourceforge mirror network, Cygwin mirrors) as this requires more
> +configuration and comes with some limitations.  Packages can be imported
> +manually either by copying files from another apt-cacher-ng instance or by
> +importing them from CD, DVD, jigdo, etc.  While apt-cacher-ng can work offline,
> +it requires some online access before that to build valid index files.  It also
> +supports partial mirroring.  It can be configured through configuration files
> +and/or a web interface and/or a command line tool.")
> +    (license license:gpl3+)))
> +
>  (define-public apt-mirror
>    (let ((commit "e664486a5d8947c2579e16dd793d762ea3de4202")
>          (revision "1"))
>
> base-commit: f25ea6847fa4eb1bc0a6bfb965e145b94f20a6f8

push, and adjust description. close.

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

      reply	other threads:[~2024-09-24 15:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-25 14:55 [bug#72805] [PATCH v2] gnu: add apt-cacher-ng Denis 'GNUtoo' Carikli
2024-09-24 15:09 ` Z572 [this message]

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=87zfnx9jha.fsf@iscas.ac.cn \
    --to=zhengjunjie@iscas.ac.cn \
    --cc=72805-done@debbugs.gnu.org \
    --cc=GNUtoo@cyberdimension.org \
    /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).