mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: ntp: Find the location of installed binaries.
* gnu/packages/ntp.scm (ntp)[arguments]: Add a phase to set the full path of the installed binaries. Change-Id: I70d8a67c451ee01cce9afbc0bcd783b72dbc78be
This commit is contained in:
parent
00266c58dc
commit
e28bf7c6f6
1 changed files with 10 additions and 0 deletions
|
@ -204,6 +204,16 @@ time-stamping or reference clock, sub-microsecond accuracy is possible.")
|
||||||
"scripts/update-leap/update-leap.in")
|
"scripts/update-leap/update-leap.in")
|
||||||
(("https://www.ietf.org/timezones/data/leap-seconds.list")
|
(("https://www.ietf.org/timezones/data/leap-seconds.list")
|
||||||
"https://data.iana.org/time-zones/data/leap-seconds.list"))))
|
"https://data.iana.org/time-zones/data/leap-seconds.list"))))
|
||||||
|
(add-after 'unpack 'use-absolute-path-in-files
|
||||||
|
(lambda _
|
||||||
|
(substitute* "scripts/lib/NTP/Util.pm"
|
||||||
|
(("(ntpq_path = ')ntpq(';)" _ first last)
|
||||||
|
(string-append first #$output "/bin/ntpq" last))
|
||||||
|
(("(sntp_path = ')sntp(';)" _ first last)
|
||||||
|
(string-append first #$output "/bin/sntp" last)))
|
||||||
|
(substitute* "scripts/calc_tickadj/calc_tickadj.in"
|
||||||
|
(("`tickadj`")
|
||||||
|
(string-append "`" #$output "/bin/tickadj`")))))
|
||||||
(add-after 'install 'adjust-scripts
|
(add-after 'install 'adjust-scripts
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* (string-append #$output "/bin/calc_tickadj")
|
(substitute* (string-append #$output "/bin/calc_tickadj")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue