mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 23:53:51 +02:00
postfix: move to usr/bin; remove systemd support.
This commit is contained in:
parent
e88235f0ed
commit
7206fe8df0
2 changed files with 3 additions and 25 deletions
|
@ -1,14 +0,0 @@
|
||||||
[Unit]
|
|
||||||
Description=Postfix Mail Transport Agent
|
|
||||||
After=network.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=forking
|
|
||||||
PIDFile=/var/spool/postfix/pid/master.pid
|
|
||||||
ExecStart=/usr/bin/postfix start
|
|
||||||
ExecStop=/usr/bin/postfix stop
|
|
||||||
ExecReload=/usr/bin/postfix reload
|
|
||||||
Restart=always
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'postfix'
|
# Template file for 'postfix'
|
||||||
pkgname=postfix
|
pkgname=postfix
|
||||||
version=3.0.1
|
version=3.0.1
|
||||||
revision=1
|
revision=2
|
||||||
short_desc="High-performance mail transport agent"
|
short_desc="High-performance mail transport agent"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||||
license="IBM Public License 1.0, BSD-alike"
|
license="IBM Public License 1.0, BSD-alike"
|
||||||
|
@ -10,9 +10,8 @@ distfiles="ftp://ftp.porcupine.org/mirrors/postfix-release/official/$pkgname-$ve
|
||||||
checksum=cd2bd6447fe3368bb1a39f482f8dd1eec87c63067a0eb75f9aec8e4eadd21328
|
checksum=cd2bd6447fe3368bb1a39f482f8dd1eec87c63067a0eb75f9aec8e4eadd21328
|
||||||
|
|
||||||
hostmakedepends="perl"
|
hostmakedepends="perl"
|
||||||
makedepends="libressl-devel db-devel pcre-devel libsasl-devel
|
makedepends="icu-devel libressl-devel db-devel pcre-devel libsasl-devel
|
||||||
libldap-devel libmysqlclient-devel postgresql-libs-devel sqlite-devel
|
libldap-devel libmysqlclient-devel postgresql-libs-devel sqlite-devel"
|
||||||
icu-devel"
|
|
||||||
|
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
# XXX postfix-install needs native binaries.
|
# XXX postfix-install needs native binaries.
|
||||||
|
@ -20,7 +19,6 @@ if [ "$CROSS_BUILD" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
build_pie=yes
|
build_pie=yes
|
||||||
build_options="systemd"
|
|
||||||
system_accounts="postfix"
|
system_accounts="postfix"
|
||||||
postfix_homedir="/var/spool/postfix"
|
postfix_homedir="/var/spool/postfix"
|
||||||
system_groups="postdrop"
|
system_groups="postdrop"
|
||||||
|
@ -89,8 +87,6 @@ pre_install() {
|
||||||
}
|
}
|
||||||
do_install() {
|
do_install() {
|
||||||
sh postfix-install -non-interactive install_root=${DESTDIR}
|
sh postfix-install -non-interactive install_root=${DESTDIR}
|
||||||
vmkdir usr/sbin
|
|
||||||
ln -s /usr/bin/sendmail ${DESTDIR}/usr/sbin/sendmail
|
|
||||||
|
|
||||||
vinstall LICENSE 644 usr/share/licenses/${pkgname}
|
vinstall LICENSE 644 usr/share/licenses/${pkgname}
|
||||||
vinstall TLS_LICENSE 644 usr/share/licenses/${pkgname}
|
vinstall TLS_LICENSE 644 usr/share/licenses/${pkgname}
|
||||||
|
@ -98,9 +94,5 @@ do_install() {
|
||||||
cd $DESTDIR
|
cd $DESTDIR
|
||||||
patch -p0 -i ${FILESDIR}/aliases.patch
|
patch -p0 -i ${FILESDIR}/aliases.patch
|
||||||
|
|
||||||
# systemd
|
|
||||||
if [ "$build_option_systemd" ]; then
|
|
||||||
vinstall ${FILESDIR}/postfix.service 644 usr/lib/systemd/system
|
|
||||||
fi
|
|
||||||
vsv postfix
|
vsv postfix
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue