summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2023-08-08 20:28:48 -0400
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2023-08-15 09:38:29 -0400
commita4bed14c438dc0cbc1c1885a38f8409c7fef7957 (patch)
treebbcbbf5a8139dbf0612a62d09e184982316356d5
parent2884abb3df4f95cef75219435ce9c1c968068568 (diff)
gnu: Add dnstracer.
* gnu/packages/networking.scm (dnstracer): New variable. Reviewed-by: Ludovic Courtès <ludo@gnu.org>
-rw-r--r--gnu/packages/networking.scm36
1 files changed, 36 insertions, 0 deletions
diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index f2d18e6b15..04461fec2d 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -4615,6 +4615,42 @@ that vnStat won't actually be sniffing any traffic and also ensures light use
of system resources regardless of network traffic rate.")
(license license:gpl2+)))
+(define-public dnstracer
+ (package
+ (name "dnstracer")
+ (version "1.10")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "http://www.mavetju.org/download/"
+ name "-" version ".tar.bz2"))
+ (sha256
+ (base32
+ "089bmrjnmsga2n0r4xgw4bwbf41xdqsnmabjxhw8lngg2pns1kb4"))))
+ (build-system gnu-build-system)
+ (arguments
+ (list #:tests? #f ;no test suite
+ #:make-flags #~(list (string-append "PREFIX=" #$output)
+ (string-append "CC=" #$(cc-for-target)))
+ #:phases #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-makefile
+ (lambda _
+ (substitute* "Makefile"
+ (("\\$\\{PREFIX}/man")
+ "${PREFIX}/share/man")
+ (("^install:.*" all)
+ (string-append
+ all
+ "\tinstall -d ${BINPREFIX}\n"
+ "\tinstall -d ${MANPREFIX}\n")))))
+ (delete 'configure))))
+ (native-inputs (list perl)) ;for pod2man
+ (home-page "http://www.mavetju.org/unix/dnstracer.php")
+ (synopsis "Trace a chain of DNS servers to the source")
+ (description "@command{dnstracer} determines where a given Domain Name
+Server (DNS) gets its information from, and follows the chain of DNS servers
+back to the servers which know the data.")
+ (license license:bsd-2)))
+
(define-public dropwatch
(package
(name "dropwatch")