diff options
author | Hanno <hanno@gentoo.org> | 2018-12-21 20:28:54 +0100 |
---|---|---|
committer | Hanno <hanno@gentoo.org> | 2018-12-21 20:28:54 +0100 |
commit | 3894ca5794aa573ed1943e735637a9e1f287b6b2 (patch) | |
tree | ce896bd8f3e7260fd4ec809f21f763e9d6e08460 /net-libs/courier-authlib/files | |
parent | sys-apps/openrc: 0.40.3 bump (diff) | |
download | gentoo-3894ca5794aa573ed1943e735637a9e1f287b6b2.tar.gz gentoo-3894ca5794aa573ed1943e735637a9e1f287b6b2.tar.bz2 gentoo-3894ca5794aa573ed1943e735637a9e1f287b6b2.zip |
net-libs/courier-authlib: Version bump.
Change libexecdir to courier default (avoids problems with
no-symlink profiles).
Remove unneeded .la files.
Change mysql dependency.
Update to EAPI=7.
Closes: https://bugs.gentoo.org/643322
Closes: https://bugs.gentoo.org/665986
Signed-off-by: Hanno Boeck <hanno@gentoo.org>
Package-Manager: Portage-2.3.52, Repoman-2.3.12
Diffstat (limited to 'net-libs/courier-authlib/files')
-rw-r--r-- | net-libs/courier-authlib/files/courier-authlib-r2 | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/net-libs/courier-authlib/files/courier-authlib-r2 b/net-libs/courier-authlib/files/courier-authlib-r2 new file mode 100644 index 000000000000..4d810007cef1 --- /dev/null +++ b/net-libs/courier-authlib/files/courier-authlib-r2 @@ -0,0 +1,40 @@ +#!/sbin/openrc-run +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need net + provide authdaemond +} + +checkconfig() { + if [ ! -e /etc/courier/authlib/authdaemonrc ] ; then + eerror "You need an /etc/courier/authlib/authdaemonrc file to run authdaemon" + return 1 + fi +} + +setauth() { + . /etc/courier/authlib/authdaemonrc + AUTHLIB="/usr/libexec/courier-authlib" + AUTHDAEMOND="authdaemond" + pidfile="/var/run/authdaemon.pid" + logger="/usr/sbin/courierlogger" + export DEBUG_LOGIN DEFAULTOPTIONS LOGGEROPTS +} + +start() { + checkconfig || return 1 + setauth + ebegin "Starting courier-authlib: ${AUTHDAEMOND}" + start-stop-daemon --quiet --start --pidfile "${pidfile}" --exec \ + /usr/bin/env ${logger} -- ${LOGGEROPTS} -pid="${pidfile}" -start "${AUTHLIB}/${AUTHDAEMOND}" + eend $? +} + +stop() { + setauth + ebegin "Stopping courier-authlib: ${AUTHDAEMOND}" + start-stop-daemon --quiet --stop --pidfile "${pidfile}" + eend $? +} |