2013-11-24 10:13:29 +01:00
|
|
|
# Template file for 'opensmtpd'
|
|
|
|
pkgname=opensmtpd
|
2014-03-06 04:16:25 +01:00
|
|
|
version=5.4.2p1
|
2014-07-14 13:39:30 +02:00
|
|
|
revision=3
|
2013-11-24 10:13:29 +01:00
|
|
|
build_style=gnu-configure
|
|
|
|
configure_args="--sysconfdir=/etc/smtpd --sbindir=/usr/bin
|
|
|
|
--with-maildir=/var/spool/mail --with-privsep-path=/var/db
|
|
|
|
--with-sock-dir=/run --with-mantype=doc
|
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"
|
2013-11-24 10:13:29 +01:00
|
|
|
hostmakedepends="pkg-config bison"
|
2014-07-14 13:39:30 +02:00
|
|
|
makedepends="zlib-devel libressl-devel libevent-devel db-devel ca-certificates"
|
2014-01-01 16:10:11 +01:00
|
|
|
depends="ca-certificates"
|
|
|
|
conf_files="/etc/smtpd/smtpd.conf /etc/smtpd/aliases"
|
|
|
|
system_accounts="smtpd smtpq"
|
|
|
|
systemd_services="smtpd.socket on"
|
|
|
|
smtpq_homedir="/var/spool/mail"
|
|
|
|
provides="smtp-forwarder-0_1 smtp-server-0_1"
|
|
|
|
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"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
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"
|
2014-03-06 04:16:25 +01:00
|
|
|
checksum=4ffaf48d3d044ef8be1bd80c8972c87ba830a21bb330b85a59f6a70da5fbd9a2
|
2013-11-24 10:13:29 +01:00
|
|
|
|
|
|
|
pre_configure() {
|
|
|
|
# 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() {
|
|
|
|
vinstall LICENSE 644 usr/share/licenses/${pkgname}
|
|
|
|
vinstall ${FILESDIR}/smtpd.service 644 usr/lib/systemd/system
|
|
|
|
vinstall ${FILESDIR}/smtpd.socket 644 usr/lib/systemd/system
|
|
|
|
vinstall /dev/null 644 etc/smtpd aliases
|
|
|
|
}
|