postfix: added runit service.

This commit is contained in:
Juan RP 2014-10-13 17:14:31 +02:00
parent 935572d8c5
commit b2694fcc6e
2 changed files with 20 additions and 7 deletions

View 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

View file

@ -1,7 +1,7 @@
# Template file for 'postfix'
pkgname=postfix
version=2.11.1
revision=4
revision=5
short_desc="High-performance mail transport agent"
maintainer="Juan RP <xtraeme@gmail.com>"
license="IBM Public License 1.0, BSD-alike"
@ -29,12 +29,12 @@ conf_files="
/etc/postfix/relocated
/etc/postfix/transport
/etc/postfix/virtual"
systemd_services="postfix.service true"
build_options="systemd"
system_accounts="postfix"
postfix_homedir="/var/spool/postfix"
system_groups="postdrop"
provides="smtp-server-0_1"
replaces="smtp-server>=0"
replaces="smtp-server>=0 runit-void<20141013_2"
make_dirs="
/var/lib/postfix 0700 postfix root
/var/spool/postfix/active 0700 postfix root
@ -81,13 +81,11 @@ do_build() {
fi
make ${makejobs}
}
pre_install() {
if [ "$CROSS_BUILD" ]; then
sed -e 's,bin/postconf,/usr/bin/postconf,g' -i postfix-install
fi
}
do_install() {
sh postfix-install -non-interactive install_root=${DESTDIR}
vmkdir usr/sbin
@ -99,6 +97,9 @@ do_install() {
cd $DESTDIR
patch -p0 -i ${FILESDIR}/aliases.patch
# systemd.
vinstall ${FILESDIR}/postfix.service 644 usr/lib/systemd/system
# systemd
if [ "$build_option_systemd" ]; then
vinstall ${FILESDIR}/postfix.service 644 usr/lib/systemd/system
fi
vsv postfix
}