gnu: libopensmtpd: Update to 0.7.
* gnu/packages/mail.scm (libopensmtpd): Update to 0.7. [source]: URL-FETCH a release tarball. [arguments]: Remove obsolete 'create-output-directories, 'install-header-file, and 'install-man-page phases. [native-inputs]: Add mandoc.master
parent
10e38c3afb
commit
16e23df1f9
|
@ -3095,59 +3095,40 @@ for OpenSMTPD to extend its functionality.")
|
||||||
(define libopensmtpd
|
(define libopensmtpd
|
||||||
;; Private source dependency of opensmtpd-filter-dkimsign (by the same
|
;; Private source dependency of opensmtpd-filter-dkimsign (by the same
|
||||||
;; author), until any project actually uses it in its compiled form.
|
;; author), until any project actually uses it in its compiled form.
|
||||||
(let ((revision 48))
|
(package
|
||||||
(package
|
(name "libopensmtpd")
|
||||||
(name "libopensmtpd")
|
(version "0.7")
|
||||||
(version (format #f "0.0.0-~a" revision))
|
(source
|
||||||
(source
|
(origin
|
||||||
(origin
|
(method url-fetch)
|
||||||
(method svn-fetch)
|
(uri (string-append "https://distfiles.sigtrap.nl/"
|
||||||
(uri (svn-reference
|
"libopensmtpd-" version ".tar.gz"))
|
||||||
(url "http://imperialat.at/dev/libopensmtpd/")
|
(sha256
|
||||||
(revision revision)))
|
(base32 "04x610mvwba7m0n9h0wbnsw58rb4khq44fm4blkgjqvh3bhxbmnd"))))
|
||||||
(sha256
|
(build-system gnu-build-system)
|
||||||
(base32 "04fgibpi6q0c3468ww3z7gsvraz0gyfps0c2dj8mdyri636c0x0s"))
|
(arguments
|
||||||
(file-name (git-file-name name version))))
|
`(#:make-flags
|
||||||
(build-system gnu-build-system)
|
(list "-f" "Makefile.gnu"
|
||||||
(arguments
|
(string-append "CC=" ,(cc-for-target))
|
||||||
`(#:make-flags
|
(string-append "LOCALBASE=" (assoc-ref %outputs "out")))
|
||||||
(list "-f" "Makefile.gnu"
|
#:tests? #f ; no test suite
|
||||||
(string-append "CC=" ,(cc-for-target))
|
#:phases
|
||||||
(string-append "LOCALBASE=" (assoc-ref %outputs "out")))
|
(modify-phases %standard-phases
|
||||||
#:tests? #f ; no test suite
|
(add-after 'unpack 'inherit-ownership
|
||||||
#:phases
|
(lambda _
|
||||||
(modify-phases %standard-phases
|
(substitute* "Makefile.gnu"
|
||||||
(add-after 'unpack 'inherit-ownership
|
(("-o \\$\\{...OWN\\} -g \\$\\{...GRP\\}") ""))))
|
||||||
(lambda _
|
(delete 'configure)))) ; no configure script
|
||||||
(substitute* "Makefile.gnu"
|
(native-inputs
|
||||||
(("-o \\$\\{BINOWN\\} -g \\$\\{BINGRP\\}") ""))
|
`(("mandoc" ,mandoc))) ; silently installs empty man page without
|
||||||
#t))
|
(inputs
|
||||||
(delete 'configure) ; no configure script
|
`(("libevent" ,libevent)))
|
||||||
(add-before 'install 'create-output-directories
|
(home-page "https://imperialat.at/dev/libopensmtpd/")
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(synopsis "OpenSMTPd filter C API")
|
||||||
(let ((out (assoc-ref outputs "out")))
|
(description
|
||||||
(mkdir-p (string-append out "/lib"))
|
"The @code{osmtpd} API is an event-based C programming interface for
|
||||||
#t)))
|
|
||||||
(add-after 'install 'install-header-file
|
|
||||||
(lambda* (#:key make-flags outputs #:allow-other-keys)
|
|
||||||
(let ((out (assoc-ref outputs "out")))
|
|
||||||
(mkdir-p (string-append out "/include"))
|
|
||||||
(apply invoke "make" "includes" make-flags))))
|
|
||||||
(add-after 'install 'install-man-page
|
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
|
||||||
(let* ((out (assoc-ref outputs "out"))
|
|
||||||
(man3 (string-append out "/share/man/man3")))
|
|
||||||
;; There is no make target for this.
|
|
||||||
(install-file "osmtpd_run.3" man3)
|
|
||||||
#t))))))
|
|
||||||
(inputs
|
|
||||||
`(("libevent" ,libevent)))
|
|
||||||
(home-page "http://imperialat.at/dev/libopensmtpd/")
|
|
||||||
(synopsis "OpenSMTPd filter C API")
|
|
||||||
(description
|
|
||||||
"The @code{osmtpd} API is an event-based C programming interface for
|
|
||||||
writing OpenSMTPd filters.")
|
writing OpenSMTPd filters.")
|
||||||
(license license:expat))))
|
(license license:expat)))
|
||||||
|
|
||||||
(define-public opensmtpd-filter-dkimsign
|
(define-public opensmtpd-filter-dkimsign
|
||||||
(package
|
(package
|
||||||
|
|
Reference in New Issue