Archived
1
0
Fork 0

gnu: ipcalc: Update to 0.51.

* gnu/packages/networking.scm (ipcalc): Update to 0.51.
[source]: Use GIT-FETCH and GIT-FILE-NAME.
[inputs]: Remove tar, gzip, and the bogus ‘tarball’.
[arguments]: Adjust to build from Git.
[home-page]: Update.
This commit is contained in:
Tobias Geerinckx-Rice 2022-07-24 02:00:05 +02:00
parent d3d506a0d1
commit 2ac922a8ec
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -3807,18 +3807,19 @@ service is available at @url{https://pagekite.net/}, or you can run your own.")
(define-public ipcalc (define-public ipcalc
(package (package
(name "ipcalc") (name "ipcalc")
(version "0.41") (version "0.51")
(source (origin (source
(method url-fetch) (origin
(uri (string-append "http://jodies.de/ipcalc-archive/" (method git-fetch)
name "-" version ".tar.gz")) (uri (git-reference
(sha256 ;; This is the IPv6-capable continuation of the unmaintained
(base32 ;; <https://jodies.de/ipcalc-archive/>.
"12if9sm8h2ac0pgwkw835cgyqjxm6h27k4kfn2vfas9krrqwbafx")))) (url "https://github.com/kjokjo/ipcalc")
(inputs `(("perl" ,perl) (commit version)))
("tar" ,tar) (file-name (git-file-name name version))
("gzip" ,gzip) (sha256
("tarball" ,source))) (base32 "0cnygb69vjmp3by75jcd2z4y3ybp1s7x4nl3d32xa49h8lkhdbfv"))))
(inputs `(("perl" ,perl)))
(build-system trivial-build-system) ;no Makefile.PL (build-system trivial-build-system) ;no Makefile.PL
(arguments (arguments
`(#:modules ((guix build utils)) `(#:modules ((guix build utils))
@ -3829,25 +3830,21 @@ service is available at @url{https://pagekite.net/}, or you can run your own.")
(let* ((source (assoc-ref %build-inputs "source")) (let* ((source (assoc-ref %build-inputs "source"))
(perl (string-append (assoc-ref %build-inputs "perl") (perl (string-append (assoc-ref %build-inputs "perl")
"/bin")) "/bin"))
(tar (assoc-ref %build-inputs "tar"))
(gz (assoc-ref %build-inputs "gzip"))
(out (assoc-ref %outputs "out")) (out (assoc-ref %outputs "out"))
(bin (string-append out "/bin")) (bin (string-append out "/bin"))
(doc (string-append out "/share/doc/ipcalc"))) (doc (string-append out "/share/doc/ipcalc")))
(setenv "PATH" (string-append gz "/bin")) (copy-recursively source "source")
(invoke (string-append tar "/bin/tar") "xvf" source) (chdir "source")
(chdir (string-append ,name "-" ,version))
(install-file "ipcalc" bin) (install-file "ipcalc" bin)
(patch-shebang (string-append bin "/ipcalc") (list perl)) (patch-shebang (string-append bin "/ipcalc") (list perl))))))
#t))))
(synopsis "Simple IP network calculator") (synopsis "Simple IP network calculator")
(description "ipcalc takes an IP address and netmask and calculates the (description "ipcalc takes an IP address and netmask and calculates the
resulting broadcast, network, Cisco wildcard mask, and host range. By giving resulting broadcast, network, Cisco wildcard mask, and host range. By giving
a second netmask, you can design subnets and supernets. It is also intended a second netmask, you can design subnets and supernets. It is also intended
to be a teaching tool and presents the subnetting results as to be a teaching tool and presents the subnetting results as
easy-to-understand binary values.") easy-to-understand binary values.")
(home-page "http://jodies.de/ipcalc") (home-page "https://github.com/kjokjo/ipcalc")
(license license:gpl2+))) (license license:gpl2+)))
(define-public tunctl (define-public tunctl