gnu: opendoas: Update to 6.8.

* gnu/packages/admin.scm (opendoas): Update to 6.8.
[arguments]: Adjust makefile name.
This commit is contained in:
Tobias Geerinckx-Rice 2020-11-15 00:11:47 +01:00
parent 80817b5098
commit 8d2ee4c596
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -1494,7 +1494,7 @@ (define-public sudo
(define-public opendoas
(package
(name "opendoas")
(version "6.6.1")
(version "6.8")
(source (origin
(method git-fetch)
(uri (git-reference
@ -1503,7 +1503,7 @@ (define-public opendoas
(file-name (git-file-name name version))
(sha256
(base32
"07kkc5729p654jrgfsc8zyhiwicgmq38yacmwfvay2b3gmy728zn"))))
"1dlwnvy8r6slxcy260gfkximp1ms510wdslpfq9y6xvd2qi5izcb"))))
(build-system gnu-build-system)
(arguments
`(#:phases
@ -1511,19 +1511,17 @@ (define-public opendoas
(replace 'configure
;; The configure script doesn't accept most of the default flags.
(lambda* (#:key configure-flags #:allow-other-keys)
;; The configure script can only be told which compiler to use
;; The configure script can be told which compiler to use only
;; through environment variables.
(setenv "CC" ,(cc-for-target))
(apply invoke "./configure" configure-flags)))
(add-before 'install 'fix-makefile
(lambda* (#:key outputs #:allow-other-keys)
(substitute* "bsd.prog.mk"
(substitute* "GNUmakefile"
(("^\tchown.*$") ""))
#t)))
#:configure-flags
(list (string-append "--prefix=" (assoc-ref %outputs "out"))
;; Nothing is done with this value (yet?) but it's supported.
;; (string-append "--target=" (or ,(%current-target-system) ""))
"--with-timestamp")
;; Compiler choice is not carried over from the configure script.
#:make-flags