gnu: opensmtpd: Correct hard coded path.

* gnu/packages/mail.scm (opensmtpd)[arguments]: Substitute non existent
path.

Change-Id: I6da8c3650be66f7e2297ea6174a66b7f0b1bc0c0
Signed-off-by: Andreas Enge <andreas@enge.fr>
This commit is contained in:
Felix Lechner 2024-06-17 09:15:48 -07:00 committed by Andreas Enge
parent 045ada8359
commit e13f7d48e5
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3

View file

@ -3316,6 +3316,10 @@ (define-public opensmtpd
;; Fix some incorrectly hard-coded external tool file names.
(add-after 'unpack 'patch-FHS-file-names
(lambda _
;; avoids warning smtpd: couldn't enqueue offline message
;; smtpctl exited abnormally
(substitute* "usr.sbin/smtpd/smtpd.h"
(("/usr/bin/smtpctl") "/run/setuid-programs/smtpctl"))
(substitute* "usr.sbin/smtpd/smtpctl.c"
;; gzcat is auto-detected at compile time, but cat isn't.
(("/bin/cat") (which "cat")))