2013-11-24 10:13:29 +01:00
|
|
|
# Template file for 'opensmtpd'
|
|
|
|
pkgname=opensmtpd
|
2015-05-01 07:53:53 +02:00
|
|
|
version=5.4.5p2
|
2015-04-20 08:07:05 +02:00
|
|
|
revision=1
|
2013-11-24 10:13:29 +01:00
|
|
|
build_style=gnu-configure
|
2015-05-01 07:53:53 +02:00
|
|
|
configure_args="--sysconfdir=/etc/smtpd --sbindir=/usr/bin
|
2015-04-20 08:07:05 +02:00
|
|
|
--with-maildir=/var/spool/mail --with-privsep-path=/var/empty
|
2014-12-25 19:00:51 +01:00
|
|
|
--with-sock-dir=/run --with-mantype=doc --with-pie
|
2013-12-16 06:52:06 +01:00
|
|
|
--with-privsep-user=smtpd --with-queue-user=smtpq
|
|
|
|
--with-ca-file=/etc/ssl/certs/ca-certificates.crt"
|
2014-12-25 19:13:36 +01:00
|
|
|
hostmakedepends="automake libtool pkg-config bison"
|
2015-03-27 10:50:40 +01:00
|
|
|
makedepends="zlib-devel libressl-devel libevent-devel db-devel libasr-devel"
|
2014-01-01 16:10:11 +01:00
|
|
|
depends="ca-certificates"
|
|
|
|
conf_files="/etc/smtpd/smtpd.conf /etc/smtpd/aliases"
|
2014-10-13 17:22:53 +02:00
|
|
|
build_options="systemd"
|
2014-01-01 16:10:11 +01:00
|
|
|
provides="smtp-forwarder-0_1 smtp-server-0_1"
|
2014-12-25 19:00:51 +01:00
|
|
|
replaces="smtp-forwarder>=0 smtp-server>=0"
|
2013-11-24 10:13:29 +01:00
|
|
|
short_desc="Free implementation of the server-side SMTP protocol"
|
2015-04-10 09:16:30 +02:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2013-11-24 10:13:29 +01:00
|
|
|
license="BSD, ISC, MIT"
|
|
|
|
homepage="http://www.opensmtpd.org"
|
2013-12-08 21:15:08 +01:00
|
|
|
distfiles="http://www.opensmtpd.org/archives/${pkgname}-${version}.tar.gz"
|
2015-05-01 07:53:53 +02:00
|
|
|
checksum=c7574b0d673d3f1dfec49694d6421ad8f08fa037d7dde96a73dc892289a538ee
|
2013-11-24 10:13:29 +01:00
|
|
|
|
2014-12-25 19:00:51 +01:00
|
|
|
system_accounts="smtpd smtpq"
|
|
|
|
smtpd_descr="SMTPD daemon"
|
|
|
|
smtpq_descr="SMTPD queue"
|
2014-08-03 18:30:06 +02:00
|
|
|
|
2014-12-25 19:00:51 +01:00
|
|
|
pre_configure() {
|
2014-12-25 19:13:36 +01:00
|
|
|
touch README AUTHORS NEWS ChangeLog
|
|
|
|
autoreconf -fi
|
2013-11-24 10:13:29 +01:00
|
|
|
# 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
|
2013-12-08 21:15:08 +01:00
|
|
|
sed -ri 's,/etc/mail,/etc/smtpd,g' smtpd/smtpd.conf
|
2013-11-24 10:13:29 +01:00
|
|
|
}
|
|
|
|
post_install() {
|
2014-10-13 17:22:53 +02:00
|
|
|
vsv opensmtpd
|
|
|
|
vlicense LICENSE
|
2013-11-24 10:13:29 +01:00
|
|
|
vinstall /dev/null 644 etc/smtpd aliases
|
2014-08-03 17:31:58 +02:00
|
|
|
|
|
|
|
vmkdir usr/sbin
|
|
|
|
ln -s /usr/bin/sendmail ${DESTDIR}/usr/sbin/sendmail
|
2014-10-13 17:22:53 +02:00
|
|
|
|
|
|
|
if [ "$build_option_systemd" ]; then
|
|
|
|
vinstall ${FILESDIR}/smtpd.service 644 usr/lib/systemd/system
|
|
|
|
vinstall ${FILESDIR}/smtpd.socket 644 usr/lib/systemd/system
|
|
|
|
fi
|
2013-11-24 10:13:29 +01:00
|
|
|
}
|