mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-29 08:52:56 +02:00
postfix: added runit service.
This commit is contained in:
parent
935572d8c5
commit
b2694fcc6e
2 changed files with 20 additions and 7 deletions
12
srcpkgs/postfix/files/postfix/run
Executable file
12
srcpkgs/postfix/files/postfix/run
Executable file
|
@ -0,0 +1,12 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
daemon_directory=/usr/libexec/postfix \
|
||||||
|
data_directory=/var/lib/postfix \
|
||||||
|
command_directory=/usr/bin \
|
||||||
|
config_directory=/etc/postfix \
|
||||||
|
queue_directory=/var/spool/postfix \
|
||||||
|
mail_owner=postfix \
|
||||||
|
setgid_group=postdrop \
|
||||||
|
/usr/libexec/postfix/postfix-script check || exit 1
|
||||||
|
|
||||||
|
exec /usr/libexec/postfix/master -d
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'postfix'
|
# Template file for 'postfix'
|
||||||
pkgname=postfix
|
pkgname=postfix
|
||||||
version=2.11.1
|
version=2.11.1
|
||||||
revision=4
|
revision=5
|
||||||
short_desc="High-performance mail transport agent"
|
short_desc="High-performance mail transport agent"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
license="IBM Public License 1.0, BSD-alike"
|
license="IBM Public License 1.0, BSD-alike"
|
||||||
|
@ -29,12 +29,12 @@ conf_files="
|
||||||
/etc/postfix/relocated
|
/etc/postfix/relocated
|
||||||
/etc/postfix/transport
|
/etc/postfix/transport
|
||||||
/etc/postfix/virtual"
|
/etc/postfix/virtual"
|
||||||
systemd_services="postfix.service true"
|
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"
|
||||||
provides="smtp-server-0_1"
|
provides="smtp-server-0_1"
|
||||||
replaces="smtp-server>=0"
|
replaces="smtp-server>=0 runit-void<20141013_2"
|
||||||
make_dirs="
|
make_dirs="
|
||||||
/var/lib/postfix 0700 postfix root
|
/var/lib/postfix 0700 postfix root
|
||||||
/var/spool/postfix/active 0700 postfix root
|
/var/spool/postfix/active 0700 postfix root
|
||||||
|
@ -81,13 +81,11 @@ do_build() {
|
||||||
fi
|
fi
|
||||||
make ${makejobs}
|
make ${makejobs}
|
||||||
}
|
}
|
||||||
|
|
||||||
pre_install() {
|
pre_install() {
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
sed -e 's,bin/postconf,/usr/bin/postconf,g' -i postfix-install
|
sed -e 's,bin/postconf,/usr/bin/postconf,g' -i postfix-install
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
sh postfix-install -non-interactive install_root=${DESTDIR}
|
sh postfix-install -non-interactive install_root=${DESTDIR}
|
||||||
vmkdir usr/sbin
|
vmkdir usr/sbin
|
||||||
|
@ -99,6 +97,9 @@ do_install() {
|
||||||
cd $DESTDIR
|
cd $DESTDIR
|
||||||
patch -p0 -i ${FILESDIR}/aliases.patch
|
patch -p0 -i ${FILESDIR}/aliases.patch
|
||||||
|
|
||||||
# systemd.
|
# systemd
|
||||||
vinstall ${FILESDIR}/postfix.service 644 usr/lib/systemd/system
|
if [ "$build_option_systemd" ]; then
|
||||||
|
vinstall ${FILESDIR}/postfix.service 644 usr/lib/systemd/system
|
||||||
|
fi
|
||||||
|
vsv postfix
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue