@@ -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
0 commit comments