gnu: hddtemp: Update to 0.4.3.
* gnu/packages/disk.scm (hddtemp): Update to 0.4.3. [source, home-page]: Use a maintained fork/continuation. [arguments]: Add a new 'delete-autogen.sh phase. Adjust the 'install-db phase to install the bundled hddtemp.db. [inputs]: Remove old hddtemp.db. [native-inputs]: Add autoconf, automake, and gettext. f hddtempmaster
parent
97cb3cf25a
commit
ada6f396e4
|
@ -1144,15 +1144,18 @@ of choice for all light thinking Unix addicts!")
|
||||||
(define-public hddtemp
|
(define-public hddtemp
|
||||||
(package
|
(package
|
||||||
(name "hddtemp")
|
(name "hddtemp")
|
||||||
(version "0.3-beta15")
|
;; <https://savannah.nongnu.org/projects/hddtemp/> advertises the project as
|
||||||
(source (origin
|
;; ‘orphaned/unmaintained’. Use a maintained fork/continuation.
|
||||||
(method url-fetch)
|
(version "0.4.3")
|
||||||
(uri (string-append "mirror://savannah/hddtemp/hddtemp-"
|
(source
|
||||||
version
|
(origin
|
||||||
".tar.bz2"))
|
(method git-fetch)
|
||||||
(sha256
|
(uri (git-reference
|
||||||
(base32
|
(url "https://github.com/vitlav/hddtemp")
|
||||||
"0nzgg4nl8zm9023wp4dg007z6x3ir60rwbcapr9ks2al81c431b1"))))
|
(commit (string-append "v" version))))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
|
(sha256
|
||||||
|
(base32 "04kylb2ka0jimi238zpfq1yii2caidpmj3ck51rvxz03y5lpq8fw"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:configure-flags (list (string-append
|
`(#:configure-flags (list (string-append
|
||||||
|
@ -1161,19 +1164,20 @@ of choice for all light thinking Unix addicts!")
|
||||||
"/share/hddtemp/hddtemp.db"))
|
"/share/hddtemp/hddtemp.db"))
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
|
(add-before 'bootstrap 'delete-autogen.sh
|
||||||
|
(lambda _
|
||||||
|
;; The default 'bootstrap phase works better.
|
||||||
|
(delete-file "autogen.sh")))
|
||||||
(add-after 'install 'install-db
|
(add-after 'install 'install-db
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(let ((target (string-append (assoc-ref outputs "out")
|
(let ((out (assoc-ref outputs "out")))
|
||||||
"/share/hddtemp/hddtemp.db")))
|
(install-file "data/hddtemp.db"
|
||||||
(mkdir-p (dirname target))
|
(string-append out "/share/hddtemp"))))))))
|
||||||
(copy-file (assoc-ref inputs "db") target)))))))
|
(native-inputs
|
||||||
(inputs
|
`(("autoconf" ,autoconf)
|
||||||
`(("db" ,(origin
|
("automake" ,automake)
|
||||||
(method url-fetch)
|
("gettext" ,gettext-minimal)))
|
||||||
(uri "mirror://savannah/hddtemp/hddtemp.db")
|
(home-page "https://github.com/vitlav/hddtemp")
|
||||||
(sha256
|
|
||||||
(base32 "1fr6qgns6qv7cr40lic5yqwkkc7yjmmgx8j0z6d93csg3smzhhya"))))))
|
|
||||||
(home-page "https://savannah.nongnu.org/projects/hddtemp/")
|
|
||||||
(synopsis "Report the temperature of hard drives from S.M.A.R.T. information")
|
(synopsis "Report the temperature of hard drives from S.M.A.R.T. information")
|
||||||
(description "@command{hddtemp} is a small utility that gives you the
|
(description "@command{hddtemp} is a small utility that gives you the
|
||||||
temperature of your hard drive by reading S.M.A.R.T. information (for drives
|
temperature of your hard drive by reading S.M.A.R.T. information (for drives
|
||||||
|
|
Reference in New Issue