Skip to content

Commit 0d48690

Browse files
committed
gnu: opensmtpd-next: Promote to opensmtpd [fixes CVE-2020-7247].
It's still unclear (to me) whether our opensmtpd package is affected, but this change has been delayed for long enough in any case. * gnu/packages/mail.scm (opensmtpd-next): Rename to… (opensmtpd): …this. * gnu/packages/patches/opensmtpd-fix-crash.patch: Delete file. * gnu/local.mk (dist_patch_DATA): Remove it.
1 parent 7c73da9 commit 0d48690

File tree

3 files changed

+0
-111
lines changed

3 files changed

+0
-111
lines changed

gnu/local.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1235,7 +1235,6 @@ dist_patch_DATA = \
12351235
%D%/packages/patches/openjdk-10-idlj-reproducibility.patch \
12361236
%D%/packages/patches/openmpi-mtl-priorities.patch \
12371237
%D%/packages/patches/openocd-nrf52.patch \
1238-
%D%/packages/patches/opensmtpd-fix-crash.patch \
12391238
%D%/packages/patches/openssl-runpath.patch \
12401239
%D%/packages/patches/openssl-1.1-c-rehash-in.patch \
12411240
%D%/packages/patches/openssl-c-rehash-in.patch \

gnu/packages/mail.scm

Lines changed: 0 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -2301,72 +2301,6 @@ transfer protocols.")
23012301
(define-public opensmtpd
23022302
(package
23032303
(name "opensmtpd")
2304-
(version "6.0.3p1")
2305-
(source (origin
2306-
(method url-fetch)
2307-
(uri (string-append "https://www.opensmtpd.org/archives/"
2308-
name "-" version ".tar.gz"))
2309-
(sha256
2310-
(base32
2311-
"10bsfsnlg9d9i6l2izdnxp05s3ri8fvwzqxvx1jmarc852382619"))
2312-
;; Fixed upstream: <github.com/OpenSMTPD/OpenSMTPD/pull/835>.
2313-
(patches (search-patches "opensmtpd-fix-crash.patch"))))
2314-
(build-system gnu-build-system)
2315-
(inputs
2316-
`(("bdb" ,bdb)
2317-
("libressl" ,libressl)
2318-
("libevent" ,libevent)
2319-
("libasr" ,libasr)
2320-
("linux-pam" ,linux-pam)
2321-
("zlib" ,zlib)))
2322-
(native-inputs
2323-
`(("bison" ,bison)
2324-
("groff" ,groff)))
2325-
(arguments
2326-
`(#:configure-flags
2327-
(list "--with-table-db" "--with-auth-pam" "--localstatedir=/var"
2328-
"--with-user-smtpd=smtpd" "--with-user-queue=smtpq"
2329-
"--with-group-queue=smtpq"
2330-
"--with-path-socket=/var/run" ; not default (./configure lies)
2331-
"--with-path-CAfile=/etc/ssl/certs/ca-certificates.crt")
2332-
#:phases
2333-
(modify-phases %standard-phases
2334-
;; Fix some incorrectly hard-coded external tool file names.
2335-
(add-after 'unpack 'patch-FHS-file-names
2336-
(lambda _
2337-
(substitute* "smtpd/smtpctl.c"
2338-
(("/bin/cat") (which "cat"))
2339-
(("/bin/sh") (which "sh")))
2340-
#t))
2341-
;; OpenSMTPD provides a single utility smtpctl to control the daemon and
2342-
;; the local submission subsystem. To accomodate systems that require
2343-
;; historical interfaces such as sendmail, newaliases or makemap, the
2344-
;; smtpctl utility can operate in compatibility mode if called with the
2345-
;; historical name.
2346-
(add-after 'install 'install-compability-links
2347-
(lambda* (#:key outputs #:allow-other-keys)
2348-
(let* ((out (assoc-ref outputs "out"))
2349-
(sbin (string-append out "/sbin/")))
2350-
(for-each (lambda (command)
2351-
(symlink "smtpctl" (string-append sbin command)))
2352-
'("makemap" "sendmail" "send-mail"
2353-
"newaliases" "mailq")))
2354-
#t)))))
2355-
(synopsis "Lightweight SMTP daemon")
2356-
(description
2357-
"OpenSMTPD is an implementation of the server-side SMTP protocol, with
2358-
some additional standard extensions. It allows ordinary machines to exchange
2359-
e-mails with other systems speaking the SMTP protocol.")
2360-
(home-page "https://www.opensmtpd.org")
2361-
(license (list bsd-2 bsd-3 bsd-4 (non-copyleft "file://COPYING")
2362-
public-domain isc license:openssl))))
2363-
2364-
;; OpenSMTPd 6.4 introduced a new and incompatible configuration file format.
2365-
;; Use a different name, for now, to avoid auto-upgrades and broken mail boxes.
2366-
;; OPENSMTP-CONFIGURATION in (gnu services mail) will also need an overhaul.
2367-
(define-public opensmtpd-next
2368-
(package
2369-
(name "opensmtpd-next")
23702304
(version "6.6.2p1")
23712305
(source
23722306
(origin

gnu/packages/patches/opensmtpd-fix-crash.patch

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)