[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
219/334: gnu: Add dnssec-trigger.
From: |
guix-commits |
Subject: |
219/334: gnu: Add dnssec-trigger. |
Date: |
Sat, 15 Aug 2020 16:27:13 -0400 (EDT) |
dannym pushed a commit to branch wip-desktop
in repository guix.
commit 452741e5f0f061170eaba58d164449e281419c25
Author: Raghav Gururajan <raghavgururajan@disroot.org>
AuthorDate: Wed Jul 29 15:49:38 2020 -0400
gnu: Add dnssec-trigger.
* gnu/packages/dns.scm (dnssec-trigger): New variable.
Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
---
gnu/packages/dns.scm | 106 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 106 insertions(+)
diff --git a/gnu/packages/dns.scm b/gnu/packages/dns.scm
index 4639df9..3dd41ad 100644
--- a/gnu/packages/dns.scm
+++ b/gnu/packages/dns.scm
@@ -46,10 +46,12 @@
#:use-module (gnu packages crypto)
#:use-module (gnu packages datastructures)
#:use-module (gnu packages flex)
+ #:use-module (gnu packages freedesktop)
#:use-module (gnu packages gcc)
#:use-module (gnu packages glib)
#:use-module (gnu packages groff)
#:use-module (gnu packages groff)
+ #:use-module (gnu packages gtk)
#:use-module (gnu packages libedit)
#:use-module (gnu packages libevent)
#:use-module (gnu packages libidn)
@@ -75,6 +77,7 @@
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module (guix utils)
+ #:use-module (guix build-system glib-or-gtk)
#:use-module (guix build-system gnu)
#:use-module (guix build-system meson)
#:use-module (guix build-system trivial))
@@ -164,6 +167,109 @@ C it should be a lot faster than Perl.")
(home-page "https://nlnetlabs.nl/projects/ldns/about/")
(license license:bsd-3)))
+(define-public dnssec-trigger
+ (package
+ (name "dnssec-trigger")
+ (version "0.17")
+ (source
+ (origin
+ (method url-fetch)
+ (uri
+ (string-append "https://www.nlnetlabs.nl/downloads/"
+ name "/" name "-" version ".tar.gz"))
+ (sha256
+ (base32 "10928q406x9r66a090xl5kznzgyxpja88w4srwcv454hd351j9f0"))))
+ (build-system glib-or-gtk-build-system)
+ (outputs '("out" "gui" "nm"))
+ (arguments
+ `(#:test-target "test"
+ #:configure-flags
+ (list
+ (string-append "--with-ssl="
+ (assoc-ref %build-inputs "openssl"))
+ "--with-hooks=networkmanager"
+ (string-append "--with-networkmanager-dispatch="
+ (assoc-ref %outputs "nm")
+ "/etc/NetworkManager/dispatcher.d")
+ (string-append "--with-xdg-autostart="
+ (assoc-ref %outputs "gui")
+ "/etc/xdg/autostart")
+ (string-append "--with-uidir="
+ (assoc-ref %outputs "gui")
+ "/share/dnssec-trigger")
+ (string-append "--with-python="
+ (assoc-ref %build-inputs "python")
+ "/bin/python")
+ (string-append "--with-unbound-control="
+ (assoc-ref %build-inputs "unbound")
+ "/sbin/unbound-control")
+ "--with-forward-zones-support")
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'patch-configure
+ (lambda _
+ (substitute* "configure"
+ (("appindicator-0.1")
+ "appindicator3-0.1"))
+ #t))
+ (add-before 'configure 'patch-makefile
+ (lambda _
+ (substitute* "Makefile.in"
+ (("/usr")
+ "$(prefix)")
+ (("/etc")
+ "$(prefix)/etc")
+ ((".*gtk-update-icon-cache.*")
+ ""))
+ #t))
+ (add-after 'install 'remove-systemd
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out")))
+ (delete-file-recursively
+ (string-append out "/lib/systemd"))
+ #t)))
+ (add-after 'remove-systemd 'move-gui
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (gui (assoc-ref outputs "gui")))
+ (mkdir-p (string-append gui "/bin"))
+ (mkdir-p (string-append gui "/share"))
+ (rename-file
+ (string-append out "/bin")
+ (string-append gui "/bin"))
+ (rename-file
+ (string-append out "/share/icons")
+ (string-append gui "/share/icons"))
+ #t)))
+ (add-after 'move-gui 'move-nm
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (nm (assoc-ref outputs "nm")))
+ (mkdir-p (string-append nm "/libexec"))
+ (rename-file
+ (string-append out "/libexec")
+ (string-append nm "/libexec"))
+ #t))))))
+ (native-inputs
+ `(("cmocka" ,cmocka)
+ ("pkg-config" ,pkg-config)
+ ("python" ,python-wrapper)))
+ (inputs
+ `(("gtk+-2" ,gtk+-2)
+ ("ldns" ,ldns)
+ ("libappindicator" ,libappindicator)
+ ("openssl" ,openssl)
+ ("unbound" ,unbound)))
+ (synopsis "DNSSEC protection for the DNS traffic")
+ (description "DNSSEC-Trigger enables your computer to use DNSSEC protection
+for the DNS traffic. It relies on the Unbound DNS resolver running locally on
+your system, which performs DNSSEC validation. It reconfigures Unbound in such
+a way that it will signal it to to use the DHCP obtained forwarders if
possible,
+fallback to doing its own AUTH queries if that fails, and if that fails it will
+prompt the user with the option to go with insecure DNS only.")
+ (home-page "https://www.nlnetlabs.nl/projects/dnssec-trigger/about/")
+ (license license:bsd-3)))
+
(define-public dnsmasq
(package
(name "dnsmasq")
- 151/334: gnu: Add cairomm-1.13., (continued)
- 151/334: gnu: Add cairomm-1.13., guix-commits, 2020/08/15
- 153/334: gnu: Add glibmm-2.64., guix-commits, 2020/08/15
- 164/334: gnu: evolution-data-server: Update package definition., guix-commits, 2020/08/15
- 188/334: gnu: gupnp: Update package definition., guix-commits, 2020/08/15
- 194/334: gnu: gtk-vnc: Update package definition., guix-commits, 2020/08/15
- 212/334: gnu: libzapojit: Update package definition., guix-commits, 2020/08/15
- 209/334: gnu: libnma: Update package definition., guix-commits, 2020/08/15
- 215/334: gnu: mm-common: Update package definition., guix-commits, 2020/08/15
- 216/334: gnu: mobile-broadband-provider-info: Update package definition., guix-commits, 2020/08/15
- 217/334: gnu: Add ldns., guix-commits, 2020/08/15
- 219/334: gnu: Add dnssec-trigger.,
guix-commits <=
- 222/334: gnu: network-manager-applet: Update package definition., guix-commits, 2020/08/15
- 223/334: gnu: phodav: Update package definition., guix-commits, 2020/08/15
- 224/334: Revert "gnu: java-jakarta-oro: Update hash.", guix-commits, 2020/08/15
- 227/334: gnu: vte: Update package definition., guix-commits, 2020/08/15
- 229/334: gnu: libquvi-scripts: Update package definition., guix-commits, 2020/08/15
- 232/334: gnu: Add libstemmer., guix-commits, 2020/08/15
- 233/334: gnu: tracker: Update package definition., guix-commits, 2020/08/15
- 237/334: gnu: cheese: Update package definition., guix-commits, 2020/08/15
- 239/334: gnu: epiphany: Update package definition., guix-commits, 2020/08/15
- 241/334: gnu: evince: Update package definition., guix-commits, 2020/08/15