mirror of
https://codeberg.org/hako/Rosenthal.git
synced 2025-11-16 09:24:58 +00:00
Compare commits
No commits in common. "eea37a108a39f398036e849022dae94e7d3aca17" and "e4c02fb83474643648d222406513a43bc5564b21" have entirely different histories.
eea37a108a
...
e4c02fb834
@ -49,56 +49,6 @@
|
|||||||
website owners block unwanted AI crawlers from accessing their sites.")
|
website owners block unwanted AI crawlers from accessing their sites.")
|
||||||
(license license:expat)))
|
(license license:expat)))
|
||||||
|
|
||||||
(define-public anubis-anti-crawler
|
|
||||||
(package
|
|
||||||
(name "anubis-anti-crawler")
|
|
||||||
(version "1.19.1")
|
|
||||||
(source (origin
|
|
||||||
(method url-fetch)
|
|
||||||
(uri (string-append
|
|
||||||
"https://github.com/TecharoHQ/anubis/releases/download/v"
|
|
||||||
version "/anubis-src-vendor-npm-" version ".tar.gz"))
|
|
||||||
(sha256
|
|
||||||
(base32
|
|
||||||
"1638q9d0bnlbs93qr3mnawrgyr7m96afyhi5bzgalz7arp93aya9"))))
|
|
||||||
(build-system go-build-system)
|
|
||||||
(arguments
|
|
||||||
(list #:tests? (not (%current-target-system)) ;FIXME
|
|
||||||
#:go go-1.24
|
|
||||||
#:install-source? #f
|
|
||||||
#:import-path "./cmd/anubis"
|
|
||||||
#:build-flags
|
|
||||||
#~(list (string-append
|
|
||||||
"-ldflags="
|
|
||||||
" -X github.com/TecharoHQ/anubis.Version="
|
|
||||||
#$(package-version this-package)))
|
|
||||||
#:modules
|
|
||||||
'(((guix build gnu-build-system) #:prefix gnu:)
|
|
||||||
(guix build go-build-system)
|
|
||||||
(guix build utils))
|
|
||||||
#:phases
|
|
||||||
#~(modify-phases %standard-phases
|
|
||||||
(replace 'unpack
|
|
||||||
(lambda args
|
|
||||||
(unsetenv "GO111MODULE")
|
|
||||||
(apply (assoc-ref gnu:%standard-phases 'unpack) args)))
|
|
||||||
(replace 'install-license-files
|
|
||||||
(assoc-ref gnu:%standard-phases 'install-license-files))
|
|
||||||
(delete 'check)
|
|
||||||
(add-after 'install 'check
|
|
||||||
(lambda* (#:key tests? #:allow-other-keys)
|
|
||||||
(when tests?
|
|
||||||
(let ((cmd (in-vicinity #$output "bin/anubis")))
|
|
||||||
(invoke cmd "--help")
|
|
||||||
(invoke cmd "--version"))))))))
|
|
||||||
(home-page "https://anubis.techaro.lol/")
|
|
||||||
(synopsis "Proof-of-work check to stop crawlers")
|
|
||||||
(description
|
|
||||||
"Anubis checks incoming HTTP requests using one or more challenges in
|
|
||||||
order to protect upstream resources from web crawlers.")
|
|
||||||
(license license:expat)
|
|
||||||
(properties '((upstream-name . "anubis")))))
|
|
||||||
|
|
||||||
(define-public caddy
|
(define-public caddy
|
||||||
(package
|
(package
|
||||||
(name "caddy")
|
(name "caddy")
|
||||||
@ -193,7 +143,7 @@ from serving static websites to running dynamic web applications.")
|
|||||||
(package
|
(package
|
||||||
(inherit caddy)
|
(inherit caddy)
|
||||||
(name "caddy-hako")
|
(name "caddy-hako")
|
||||||
(version "2025.06.09-2")
|
(version "2025.05.23-1")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
(uri (git-reference
|
(uri (git-reference
|
||||||
@ -202,7 +152,7 @@ from serving static websites to running dynamic web applications.")
|
|||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0v3i4rlpvbb1hxppwk58bslrn4i43khp0yr9i48sq74dg3xxcman"))))
|
"03jdlyakaxysz5wmxbwrdwl3rgkp0a0ws10g27hj1lmkdic860h9"))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(modify-inputs (package-native-inputs caddy)
|
(modify-inputs (package-native-inputs caddy)
|
||||||
(replace "vendored-go-dependencies"
|
(replace "vendored-go-dependencies"
|
||||||
@ -212,7 +162,7 @@ from serving static websites to running dynamic web applications.")
|
|||||||
(file-name "vendored-go-dependencies")
|
(file-name "vendored-go-dependencies")
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0iv97phpwhp185bryx27vvdm7s6j1w195zdcjmpb7dr20p5l5i1i"))))))
|
"0m01p9y96m1krjg1rf53kndxklql8i4hfv09rc3xnxbmqh5ahm43"))))))
|
||||||
(home-page "https://git.boiledscript.com/hako/caddy")
|
(home-page "https://git.boiledscript.com/hako/caddy")
|
||||||
(properties '((disable-updater? . #t)))))
|
(properties '((disable-updater? . #t)))))
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user