51 lines
1.7 KiB
Plaintext
51 lines
1.7 KiB
Plaintext
# Template file for 'opensmtpd'
|
|
pkgname=opensmtpd
|
|
version=5.4.4p1
|
|
revision=7
|
|
build_style=gnu-configure
|
|
configure_args="--sysconfdir=/etc/smtpd --sbindir=/usr/sbin
|
|
--with-maildir=/var/spool/mail --with-privsep-path=/var/db
|
|
--with-sock-dir=/run --with-mantype=doc --with-pie
|
|
--with-privsep-user=smtpd --with-queue-user=smtpq
|
|
--with-ca-file=/etc/ssl/certs/ca-certificates.crt"
|
|
hostmakedepends="automake libtool pkg-config bison"
|
|
makedepends="zlib-devel libressl-devel>=2.1.4 libevent-devel db-devel libasr-devel"
|
|
depends="ca-certificates"
|
|
conf_files="/etc/smtpd/smtpd.conf /etc/smtpd/aliases"
|
|
build_options="systemd"
|
|
provides="smtp-forwarder-0_1 smtp-server-0_1"
|
|
replaces="smtp-forwarder>=0 smtp-server>=0"
|
|
short_desc="Free implementation of the server-side SMTP protocol"
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
license="BSD, ISC, MIT"
|
|
homepage="http://www.opensmtpd.org"
|
|
distfiles="http://www.opensmtpd.org/archives/${pkgname}-${version}.tar.gz"
|
|
checksum=1118330aa54e9a8a30914a1f2e129a83f2954a5956300eade522a1396f6d8ebd
|
|
|
|
system_accounts="smtpd smtpq"
|
|
smtpd_descr="SMTPD daemon"
|
|
smtpq_descr="SMTPD queue"
|
|
|
|
pre_configure() {
|
|
touch README AUTHORS NEWS ChangeLog
|
|
autoreconf -fi
|
|
# XXX hardcode the libevent major version for now.
|
|
# XXX the configure test needs to execute a binary to
|
|
# XXX get this result.
|
|
sed -e 's,^\(libevent_major_version\)=.*$,\1=2,' -i configure
|
|
sed -ri 's,/etc/mail,/etc/smtpd,g' smtpd/smtpd.conf
|
|
}
|
|
post_install() {
|
|
vsv opensmtpd
|
|
vlicense LICENSE
|
|
vinstall /dev/null 644 etc/smtpd aliases
|
|
|
|
vmkdir usr/sbin
|
|
ln -s /usr/bin/sendmail ${DESTDIR}/usr/sbin/sendmail
|
|
|
|
if [ "$build_option_systemd" ]; then
|
|
vinstall ${FILESDIR}/smtpd.service 644 usr/lib/systemd/system
|
|
vinstall ${FILESDIR}/smtpd.socket 644 usr/lib/systemd/system
|
|
fi
|
|
}
|