mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-29 17:02:56 +02:00
opensmtpd: added runit service.
This commit is contained in:
parent
2ad27daabc
commit
72ec4488d8
3 changed files with 15 additions and 7 deletions
2
srcpkgs/opensmtpd/files/opensmtpd/log/run
Executable file
2
srcpkgs/opensmtpd/files/opensmtpd/log/run
Executable file
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/sh
|
||||||
|
exec logger -p mail.notice
|
2
srcpkgs/opensmtpd/files/opensmtpd/run
Executable file
2
srcpkgs/opensmtpd/files/opensmtpd/run
Executable file
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/sh
|
||||||
|
exec smtpd -d 2>&1
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'opensmtpd'
|
# Template file for 'opensmtpd'
|
||||||
pkgname=opensmtpd
|
pkgname=opensmtpd
|
||||||
version=5.4.2p1
|
version=5.4.2p1
|
||||||
revision=5
|
revision=6
|
||||||
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/db
|
--with-maildir=/var/spool/mail --with-privsep-path=/var/db
|
||||||
|
@ -13,10 +13,11 @@ makedepends="zlib-devel libressl-devel libevent-devel db-devel"
|
||||||
depends="ca-certificates"
|
depends="ca-certificates"
|
||||||
conf_files="/etc/smtpd/smtpd.conf /etc/smtpd/aliases"
|
conf_files="/etc/smtpd/smtpd.conf /etc/smtpd/aliases"
|
||||||
system_accounts="smtpd smtpq"
|
system_accounts="smtpd smtpq"
|
||||||
systemd_services="smtpd.socket on"
|
smtpd_homedir="/var/spool/mail"
|
||||||
smtpq_homedir="/var/spool/mail"
|
smtpq_homedir="/var/spool/mail"
|
||||||
|
build_options="systemd"
|
||||||
provides="smtp-forwarder-0_1 smtp-server-0_1"
|
provides="smtp-forwarder-0_1 smtp-server-0_1"
|
||||||
replaces="smtp-forwarder>=0 smtp-server>=0"
|
replaces="runit-void<20141013_2 smtp-forwarder>=0 smtp-server>=0"
|
||||||
short_desc="Free implementation of the server-side SMTP protocol"
|
short_desc="Free implementation of the server-side SMTP protocol"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
license="BSD, ISC, MIT"
|
license="BSD, ISC, MIT"
|
||||||
|
@ -34,13 +35,16 @@ pre_configure() {
|
||||||
sed -e 's,^\(libevent_major_version\)=.*$,\1=2,' -i configure
|
sed -e 's,^\(libevent_major_version\)=.*$,\1=2,' -i 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() {
|
||||||
vinstall LICENSE 644 usr/share/licenses/${pkgname}
|
vsv opensmtpd
|
||||||
vinstall ${FILESDIR}/smtpd.service 644 usr/lib/systemd/system
|
vlicense LICENSE
|
||||||
vinstall ${FILESDIR}/smtpd.socket 644 usr/lib/systemd/system
|
|
||||||
vinstall /dev/null 644 etc/smtpd aliases
|
vinstall /dev/null 644 etc/smtpd aliases
|
||||||
|
|
||||||
vmkdir usr/sbin
|
vmkdir usr/sbin
|
||||||
ln -s /usr/bin/sendmail ${DESTDIR}/usr/sbin/sendmail
|
ln -s /usr/bin/sendmail ${DESTDIR}/usr/sbin/sendmail
|
||||||
|
|
||||||
|
if [ "$build_option_systemd" ]; then
|
||||||
|
vinstall ${FILESDIR}/smtpd.service 644 usr/lib/systemd/system
|
||||||
|
vinstall ${FILESDIR}/smtpd.socket 644 usr/lib/systemd/system
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue