cyrus-sasl: switch to systemd, drop openrc support.
This commit is contained in:
parent
01afe0cfb3
commit
8160ca248c
5 changed files with 18 additions and 18 deletions
|
@ -1,3 +0,0 @@
|
|||
# Configuration file for Cyrus-SASL daemon.
|
||||
#
|
||||
SASLAUTHD_ARGS="-m /var/run/saslauthd -a pam"
|
|
@ -1,9 +0,0 @@
|
|||
#!/sbin/runscript
|
||||
|
||||
command=/usr/sbin/saslauthd
|
||||
command_args="${SASLAUTHD_ARGS}"
|
||||
|
||||
depend()
|
||||
{
|
||||
need net
|
||||
}
|
10
srcpkgs/cyrus-sasl/files/saslauthd.service
Normal file
10
srcpkgs/cyrus-sasl/files/saslauthd.service
Normal file
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=Cyrus SASL authentication daemon
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=/usr/sbin/saslauthd -a pam -m /run/saslauthd
|
||||
PidFile=/run/saslauthd/saslauthd.pid
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
1
srcpkgs/cyrus-sasl/files/saslauthd.tmpfiles.d
Normal file
1
srcpkgs/cyrus-sasl/files/saslauthd.tmpfiles.d
Normal file
|
@ -0,0 +1 @@
|
|||
d /run/saslauthd 0750 root root
|
|
@ -6,7 +6,7 @@ unset run_depends build_depends
|
|||
|
||||
pkgname=cyrus-sasl
|
||||
revision=2
|
||||
configure_args="--with-saslauthd=/var/run/saslauthd
|
||||
configure_args="--with-saslauthd=/run/saslauthd
|
||||
--enable-login --enable-plain --enable-sql --disable-sqlite
|
||||
--enable-postgresql --enable-mysql --enable-ldapdb --with-ldap=/usr"
|
||||
short_desc="Cyrus SASL - auth daemon and administration tools"
|
||||
|
@ -16,9 +16,9 @@ long_desc="${long_desc}
|
|||
programs for the SASL users database and common binary files for plugin
|
||||
modules."
|
||||
|
||||
keep_empty_dirs=yes
|
||||
revision=3
|
||||
subpackages="${pkgname}-modules-ldap ${pkgname}-modules-sql ${pkgname}-modules"
|
||||
openrc_services="saslauthd default off"
|
||||
systemd_services="saslauthd.service"
|
||||
conf_files="/etc/conf.d/saslauthd"
|
||||
|
||||
Add_dependency run glibc
|
||||
|
@ -49,7 +49,8 @@ post_install()
|
|||
rm -f ${DESTDIR}/usr/lib/libsasl*
|
||||
rm -rf ${DESTDIR}/usr/lib/sasl2/libsasldb*
|
||||
|
||||
# Install OpenRC service.
|
||||
vinstall ${FILESDIR}/saslauthd.rc 755 etc/init.d saslauthd
|
||||
vinstall ${FILESDIR}/saslauthd.confd 644 etc/conf.d saslauthd
|
||||
# systemd
|
||||
vinstall ${FILESDIR}/saslauthd.service 644 lib/systemd/system
|
||||
vinstall ${FILESDIR}/saslauthd.tmpfiles.d 644 \
|
||||
usr/lib/tmpfiles.d saslauthd.conf
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue