# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
checksums rmd160 17154b04f0097f0a5a8505f865186bb300c99224 \
sha256 9096118823ababfac8f46a1a7393765a414ea3628c9413bfba39af5d70fd3e2e
description Courier Authentication Library is a generic authentication API
long_description ${description}
homepage http://www.courier-mta.org/authlib/
master_sites sourceforge:project/courier/authlib/${version}
configure.args --with-db=db \
configure.cflags-append -I${prefix}/include/db48
configure.ldflags-append -L${prefix}/lib/db48
system -W "${destroot}${prefix}/lib/courier-authlib" "rm -f *.a *.la"
startupitem.start "${prefix}/sbin/authdaemond start"
startupitem.stop "${prefix}/sbin/authdaemond stop"
startupitem.restart "${prefix}/sbin/authdaemond restart"
startupitem.pidfile clean ${prefix}/var/spool/authdaemon/pid
# Limit the length of the minor and patch version components to avoid picking
# up development versions (that contain a YYYYMMDD timestamp).
livecheck.regex "[quotemeta ${name}]-(\\d+(\\.\\d{1,7})*)[quotemeta ${extract.suffix}]"