Merge branch 'qby-master-patch-35957' into 'master'

AdGuard

See merge request nonguix/nonguix!432
This commit is contained in:
qby 2025-02-03 20:15:35 +00:00
commit e3b0133940
2 changed files with 68 additions and 0 deletions

39
adGuard.scm Normal file
View File

@ -0,0 +1,39 @@
(define-module (my-module adguard-home)
#:use-module (guix git-download)
#:use-module (guix packages)
#:use-module (guix build-system gnu))
(define-public adguard-home
(package
(name "adguard-home")
(version "<commit-or-tag>")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/AdguardTeam/AdGuardHome.git")
(commit version)
))
(file-name (git-file-name name version))
(sha256 (base32 "0mdqa9w1p6cmli6976v4wi0sw9r4p5prkj7lzfd1877wk11c9c73")) ;; empty hash
))
(build-system gnu-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'configure
(lambda* (#:key inputs outputs #:allow-other-keys)
(invoke "./configure" "--prefix" (assoc-ref outputs "out"))))
(replace 'build
(lambda* (#:key inputs outputs #:allow-other-keys)
(invoke "make"))))))
(inputs `())
(synopsis "Network-wide software for blocking ads & tracking")
(description
"AdGuard Home is a network-wide software for blocking and tracking.
After you set it up, it'll cover ALL your home devices, and you don't need client-side software
for that. It operates as a DNS server that re-routes tracking domains to
a 'black hole,' thus preventing your devices from connecting
to those servers.")
(license license:gpl3)
(home-page "https://github.com/AdguardTeam/AdGuardHome")))

View File

@ -0,0 +1,29 @@
(define-module (my-packages anonsurf)
#:use-module (guix packages)
#:use-module (guix git-download)
#:use-module (guix build-system gnu))
(define-public anonsurf
(package
(name "anonsurf")
(version version) ;; Insert the appropriate version number
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/ParrotSec/anonsurf")
(commit version)))
(file-name (string-append name "-" version))
(sha256
(base32
hash)))) ;; Update SHA256 hash
(build-system gnu-build-system)
(arguments `(#:phases
(modify-phases %standard-phases
(add-before 'configure 'pre-configure
(lambda _
(invoke "make")
#t)))))
(home-page "https://github.com/ParrotSec/anonsurf")
(synopsis "Parrot AnonSurf Module")
(description "AnonSurf is a script designed to start TOR and set the iptables properly to prevent traffic from passing outside the TOR network.")
(license license:license))) ;; Update the license if different