summaryrefslogtreecommitdiff
path: root/gnu/packages/debian.scm
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2024-08-25 16:55:15 +0200
committerZheng Junjie <zhengjunjie@iscas.ac.cn>2024-09-24 22:57:14 +0800
commit0995c8605cbbeaa7e78f5ee1a4649be5115bea6a (patch)
tree597e314e9745fdac4baa22447dae38d05ee17606 /gnu/packages/debian.scm
parent60dfa7f673344f7f81faafc225191c4492f9dd03 (diff)
gnu: Add apt-cacher-ng.
* gnu/packages/debian.scm (apt-cacher-ng): New variable. Change-Id: Ia77fa38e3cd7dffef8c950a61c2e8c06971132f2 Signed-off-by: Zheng Junjie <zhengjunjie@iscas.ac.cn>
Diffstat (limited to 'gnu/packages/debian.scm')
-rw-r--r--gnu/packages/debian.scm54
1 files changed, 53 insertions, 1 deletions
diff --git a/gnu/packages/debian.scm b/gnu/packages/debian.scm
index bbbcf924211..d7e8edabb29 100644
--- a/gnu/packages/debian.scm
+++ b/gnu/packages/debian.scm
@@ -2,7 +2,7 @@
2;;; Copyright © 2018, 2020-2024 Efraim Flashner <efraim@flashner.co.il> 2;;; Copyright © 2018, 2020-2024 Efraim Flashner <efraim@flashner.co.il>
3;;; Copyright © 2018, 2020 Tobias Geerinckx-Rice <me@tobias.gr> 3;;; Copyright © 2018, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
4;;; Copyright © 2020 Marius Bakke <marius@gnu.org> 4;;; Copyright © 2020 Marius Bakke <marius@gnu.org>
5;;; Copyright © 2023 Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> 5;;; Copyright © 2023, 2024 Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
6;;; 6;;;
7;;; This file is part of GNU Guix. 7;;; This file is part of GNU Guix.
8;;; 8;;;
@@ -25,10 +25,12 @@
25 #:use-module (guix git-download) 25 #:use-module (guix git-download)
26 #:use-module (guix gexp) 26 #:use-module (guix gexp)
27 #:use-module (guix packages) 27 #:use-module (guix packages)
28 #:use-module (guix build-system cmake)
28 #:use-module (guix build-system copy) 29 #:use-module (guix build-system copy)
29 #:use-module (guix build-system gnu) 30 #:use-module (guix build-system gnu)
30 #:use-module (guix build-system perl) 31 #:use-module (guix build-system perl)
31 #:use-module (guix build-system trivial) 32 #:use-module (guix build-system trivial)
33 #:use-module (gnu packages adns)
32 #:use-module (gnu packages autotools) 34 #:use-module (gnu packages autotools)
33 #:use-module (gnu packages backup) 35 #:use-module (gnu packages backup)
34 #:use-module (gnu packages base) 36 #:use-module (gnu packages base)
@@ -40,12 +42,14 @@
40 #:use-module (gnu packages gettext) 42 #:use-module (gnu packages gettext)
41 #:use-module (gnu packages gnupg) 43 #:use-module (gnu packages gnupg)
42 #:use-module (gnu packages guile) 44 #:use-module (gnu packages guile)
45 #:use-module (gnu packages libevent)
43 #:use-module (gnu packages linux) 46 #:use-module (gnu packages linux)
44 #:use-module (gnu packages man) 47 #:use-module (gnu packages man)
45 #:use-module (gnu packages ncurses) 48 #:use-module (gnu packages ncurses)
46 #:use-module (gnu packages perl) 49 #:use-module (gnu packages perl)
47 #:use-module (gnu packages pkg-config) 50 #:use-module (gnu packages pkg-config)
48 #:use-module (gnu packages python) 51 #:use-module (gnu packages python)
52 #:use-module (gnu packages tls)
49 #:use-module (gnu packages web) 53 #:use-module (gnu packages web)
50 #:use-module (gnu packages wget) 54 #:use-module (gnu packages wget)
51 #:use-module (srfi srfi-1) 55 #:use-module (srfi srfi-1)
@@ -529,6 +533,54 @@ in installation scripts of Debian packages. The programs included are
529 "The SMAIL General Public License, see 533 "The SMAIL General Public License, see
530debian/copyright for more information."))))) 534debian/copyright for more information.")))))
531 535
536(define-public apt-cacher-ng
537 (package
538 (name "apt-cacher-ng")
539 (version "3.7.5")
540 (source
541 (origin
542 (method git-fetch)
543 (uri (git-reference
544 (url "https://salsa.debian.org/blade/apt-cacher-ng.git")
545 (commit "upstream/3.7.5")))
546 (file-name (git-file-name name version))
547 (sha256
548 (base32 "0wxqdmmm2gm27zng7v7lwai4zf6ppj26890r7z2ns237xx33jdp6"))))
549 (build-system cmake-build-system)
550 (inputs (list bzip2 ;optional
551 c-ares
552 libevent
553 openssl ;optional
554 xz ;optional
555 zlib))
556 (native-inputs (list pkg-config))
557 (arguments
558 (list
559 #:tests? #f ;Tests are "for development only".
560 #:phases #~(modify-phases %standard-phases
561 ;; We want to provide good defaults. Here apt-cacher-ng is built
562 ;; without libwrap support so we disable that by default.
563 (add-before 'configure 'patch-config
564 (lambda _
565 (substitute* "conf/acng.conf.in"
566 (("# UseWrap: 0")
567 "UseWrap: 0")))))))
568 (home-page "https://www.unix-ag.uni-kl.de/~bloch/acng/")
569 (synopsis "Caching proxy for packages of various software distributions or
570repositories")
571 (description
572 "This package mainly meant for caching packages of Debian or Debian
573based distributions (like Trisquel) through HTTP. It also has partial support
574for HTTPS and other distributions / repositories (OpenSUSE, Arch Linux,
575Sourceforge mirror network, Cygwin mirrors) as this requires more
576configuration and comes with some limitations. Packages can be imported
577manually either by copying files from another apt-cacher-ng instance or by
578importing them from CD, DVD, jigdo, etc. While apt-cacher-ng can work offline,
579it requires some online access before that to build valid index files. It also
580supports partial mirroring. It can be configured through configuration files
581and/or a web interface and/or a command line tool.")
582 (license license:gpl3+)))
583
532(define-public apt-mirror 584(define-public apt-mirror
533 (let ((commit "e664486a5d8947c2579e16dd793d762ea3de4202") 585 (let ((commit "e664486a5d8947c2579e16dd793d762ea3de4202")
534 (revision "1")) 586 (revision "1"))