opensmtpd: multiple fixes (HI GOTTOX!)
- smtpctl now can work as newliases/makemap/sendmail; make symlinks. - fix CA path. - remove obsolete options. - use --with-libfts for musl.
This commit is contained in:
parent
18ef82d25e
commit
a04fa54941
|
@ -1,12 +1,11 @@
|
||||||
# Template file for 'opensmtpd'
|
# Template file for 'opensmtpd'
|
||||||
pkgname=opensmtpd
|
pkgname=opensmtpd
|
||||||
version=5.9.2p1
|
version=5.9.2p1
|
||||||
revision=2
|
revision=3
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--sysconfdir=/etc/smtpd --sbindir=/usr/bin
|
configure_args="--sysconfdir=/etc/smtpd --sbindir=/usr/bin
|
||||||
--with-maildir=/var/spool/mail --with-privsep-path=/var/empty
|
--with-path-socket=/run --with-mantype=doc --with-pie --enable-table-db
|
||||||
--with-sock-dir=/run --with-mantype=doc --with-pie --enable-table-db
|
--with-path-CAfile=/etc/ssl/certs/ca-certificates.crt"
|
||||||
--with-ca-file=/etc/ssl/certs/ca-certificates.crt"
|
|
||||||
hostmakedepends="automake libtool pkg-config bison"
|
hostmakedepends="automake libtool pkg-config bison"
|
||||||
makedepends="zlib-devel libressl-devel libevent-devel db-devel libasr-devel"
|
makedepends="zlib-devel libressl-devel libevent-devel db-devel libasr-devel"
|
||||||
depends="ca-certificates"
|
depends="ca-certificates"
|
||||||
|
@ -23,8 +22,8 @@ checksum=3522f273c1630c781facdb2b921228e338ed4e651909316735df775d6a70a71d
|
||||||
system_accounts="_smtpd _smtpq"
|
system_accounts="_smtpd _smtpq"
|
||||||
|
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
*-musl) makedepends+=" musl-fts-devel"
|
*-musl) configure_args+=" --with-libfts=${XBPS_CROSS_BASE}/usr"
|
||||||
LDFLAGS="-L${XBPS_CROSS_BASE}/usr/lib -lfts"
|
makedepends+=" musl-fts-devel"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
@ -38,6 +37,9 @@ pre_configure() {
|
||||||
sed -ri 's,/etc/mail,/etc/smtpd,g' smtpd/smtpd.conf
|
sed -ri 's,/etc/mail,/etc/smtpd,g' smtpd/smtpd.conf
|
||||||
}
|
}
|
||||||
post_install() {
|
post_install() {
|
||||||
|
for f in newaliases makemap sendmail; do
|
||||||
|
ln -s smtpctl ${DESTDIR}/usr/bin/$f
|
||||||
|
done
|
||||||
vsv opensmtpd
|
vsv opensmtpd
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
vinstall /dev/null 644 etc/smtpd aliases
|
vinstall /dev/null 644 etc/smtpd aliases
|
||||||
|
|
Loading…
Reference in New Issue