void-packages/srcpkgs/opensmtpd/template

51 lines
1.7 KiB
Text
Raw Normal View History

2013-11-24 09:13:29 +00:00
# Template file for 'opensmtpd'
pkgname=opensmtpd
2014-12-25 18:00:51 +00:00
version=5.4.4p1
revision=1
2013-11-24 09:13:29 +00:00
build_style=gnu-configure
2014-12-25 18:00:51 +00:00
configure_args="--sysconfdir=/etc/smtpd --sbindir=/usr/sbin
2013-11-24 09:13:29 +00:00
--with-maildir=/var/spool/mail --with-privsep-path=/var/db
2014-12-25 18:00:51 +00:00
--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"
2014-12-25 18:00:51 +00:00
hostmakedepends="pkg-config bison"
makedepends="zlib-devel libressl-devel libevent-devel db-devel libasr-devel"
depends="ca-certificates"
conf_files="/etc/smtpd/smtpd.conf /etc/smtpd/aliases"
2014-10-13 15:22:53 +00:00
build_options="systemd"
provides="smtp-forwarder-0_1 smtp-server-0_1"
2014-12-25 18:00:51 +00:00
replaces="smtp-forwarder>=0 smtp-server>=0"
2013-11-24 09:13:29 +00: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 20:15:08 +00:00
distfiles="http://www.opensmtpd.org/archives/${pkgname}-${version}.tar.gz"
2014-12-25 18:00:51 +00:00
checksum=1118330aa54e9a8a30914a1f2e129a83f2954a5956300eade522a1396f6d8ebd
2013-11-24 09:13:29 +00:00
2014-12-25 18:00:51 +00:00
system_accounts="smtpd smtpq"
smtpd_descr="SMTPD daemon"
smtpd_homedir="/var/empty"
smtpq_descr="SMTPD queue"
smtpq_homedir="/var/empty"
2014-12-25 18:00:51 +00:00
pre_configure() {
2013-11-24 09:13:29 +00: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 20:15:08 +00:00
sed -ri 's,/etc/mail,/etc/smtpd,g' smtpd/smtpd.conf
2013-11-24 09:13:29 +00:00
}
post_install() {
2014-10-13 15:22:53 +00:00
vsv opensmtpd
vlicense LICENSE
2013-11-24 09:13:29 +00:00
vinstall /dev/null 644 etc/smtpd aliases
vmkdir usr/sbin
ln -s /usr/bin/sendmail ${DESTDIR}/usr/sbin/sendmail
2014-10-13 15:22:53 +00: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 09:13:29 +00:00
}