mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
100 lines
3.9 KiB
Tcl
100 lines
3.9 KiB
Tcl
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
|
|
|
|
PortSystem 1.0
|
|
PortGroup legacysupport 1.1
|
|
|
|
name opensmtpd
|
|
version 7.8.0p1
|
|
revision 0
|
|
categories mail
|
|
license ISC
|
|
maintainers {@ryanakca debian.org:rak} {@artkiver gmail.com:artkiver}
|
|
description secure, reliable, lean, and easy-to configure SMTP server
|
|
long_description The OpenSMTPD server seeks to be \
|
|
\n* as secure as possible, and uses privilege separation to mitigate \
|
|
\n possible security bugs \
|
|
\n* as reliable as possible: any accepted email must not be lost \
|
|
\n* lean: it covers typical usage cases instead of every obscure one \
|
|
\n* easy to configure, with a configuration syntax reminiscent of the OpenBSD \
|
|
\n Packet Filter's (PF) \
|
|
\n* fast and efficient: it can handle large queues with reasonable performance
|
|
homepage https://www.opensmtpd.org
|
|
|
|
master_sites https://opensmtpd.org/archives/
|
|
|
|
checksums rmd160 45ca8c64b9843a651e49fb428357350ab7c00f6d \
|
|
sha256 f473b1b32e3440f28669419466d1e6ff037cf6b228769979135a4fb39060e3c3 \
|
|
size 745487
|
|
|
|
depends_build port:bison
|
|
|
|
depends_lib port:libevent \
|
|
path:lib/libssl.dylib:openssl
|
|
|
|
startupitem.create yes
|
|
startupitem.executable ${prefix}/sbin/smtpd -F
|
|
|
|
add_users _smtpd group=_smtpd realname=OpenSMTP\ Daemon \
|
|
_smtpq group=_smtpq realname=OpenSMTP\ Queue
|
|
|
|
set sysconfdir ${prefix}/etc/${name}
|
|
|
|
post-patch {
|
|
reinplace "s|file:/etc/mail/aliases|file:${sysconfdir}/aliases|g" ${worksrcpath}/usr.sbin/smtpd/smtpd.conf
|
|
}
|
|
|
|
|
|
depends_build-append \
|
|
port:autoconf \
|
|
port:automake \
|
|
port:libtool
|
|
|
|
configure.args --sysconfdir=${sysconfdir} \
|
|
--with-auth-pam \
|
|
--with-libevent=${prefix} \
|
|
--with-mantype=doc \
|
|
--with-path-queue=${prefix}/var/spool/smtpd \
|
|
--with-table-db
|
|
|
|
# The spool directory *must* be installed with uid/gid 0.
|
|
# OpenSMTPD checks these permissions at startup (queue_backend.c, using ckdir
|
|
# from util.c), and aborts if they are not correctly set. Consequently,
|
|
# opensmtpd must be installed as root
|
|
destroot.asroot yes
|
|
destroot.keepdirs ${destroot}${prefix}/var/spool/smtpd
|
|
|
|
post-destroot {
|
|
xinstall -o root -g wheel -m 711 -d ${destroot}${prefix}/var/spool/smtpd
|
|
file rename ${destroot}${sysconfdir}/smtpd.conf ${destroot}${sysconfdir}/smtpd.conf.dist
|
|
|
|
file link -symbolic ${destroot}${prefix}/sbin/sendmail smtpctl
|
|
file link -symbolic ${destroot}${prefix}/sbin/mailq smtpctl
|
|
file link -symbolic ${destroot}${prefix}/sbin/makemap smtpctl
|
|
file link -symbolic ${destroot}${prefix}/sbin/newaliases smtpctl
|
|
}
|
|
|
|
post-activate {
|
|
if {![file exists ${sysconfdir}/smtpd.conf]} {
|
|
file copy ${sysconfdir}/smtpd.conf.dist ${sysconfdir}/smtpd.conf
|
|
}
|
|
if {![file exists ${sysconfdir}/aliases] && [file exists /etc/postfix/aliases]} {
|
|
file copy /etc/postfix/aliases ${sysconfdir}/aliases
|
|
}
|
|
}
|
|
|
|
notes "
|
|
Both OpenSMTPD and the built-in Postfix daemon listen on port 25 by\
|
|
default. The easiest way to avoid this conflict is to change the\
|
|
inet_interfaces setting in /etc/postfix/main.cf to keep Postfix from\
|
|
listening to the same interfaces as OpenSMTPD, and then restarting Postfix.\
|
|
To keep Postfix from listening on any interfaces, it is sufficient to set:
|
|
|
|
inet_interfaces =
|
|
|
|
Please see postconf(5) for more details.
|
|
"
|
|
|
|
livecheck.url https://opensmtpd.org/archives/
|
|
livecheck.type regex
|
|
livecheck.regex opensmtpd-(\[0-9p.\]+)\\.tar\\.gz
|