ipfire-3.x/cyrus-sasl/cyrus-sasl.nm

70 lines
1.6 KiB
Plaintext

###############################################################################
# IPFire.org - An Open Source Firewall Solution #
# Copyright (C) - IPFire Development Team <info@ipfire.org> #
###############################################################################
name = cyrus-sasl
version = 2.1.28
release = 4.1
groups = System/Libraries
url = https://github.com/cyrusimap/cyrus-sasl
license = BSD
summary = The Cyrus SASL library
description
The cyrus-sasl package contains the Cyrus implementation of SASL.
SASL is the Simple Authentication and Security Layer, a method for
adding authentication support to connection-based protocols.
end
source_dl = https://github.com/cyrusimap/cyrus-sasl/releases/download/cyrus-sasl-%{version}/
build
requires
automake
gdbm-devel
libxcrypt-devel
openssl-devel
pam-devel
end
configure_options += \
--with-configdir=%{libdir}/sasl2:/etc/sasl2 \
--with-plugindir=%{libdir}/sasl2 \
--with-dbpath=/var/lib/sasl/sasldb2 \
--with-saslauthd=/run/saslauthd
make_install_targets += sasldir=%{libdir}/sasl2
install_cmds
# Install plugins.
make install DESTDIR=%{BUILDROOT} sasldir=%{libdir}/sasl2 -C plugins
mkdir -pv %{BUILDROOT}%{libdir}/sasl2
cp -vf %{DIR_SOURCE}/smtpd.conf %{BUILDROOT}%{libdir}/sasl2/
install -v -m700 -d %{BUILDROOT}/var/lib/sasl
end
end
packages
package %{name}
package %{name}-libs
template LIBS
end
package %{name}-devel
template DEVEL
requires
cyrus-sasl-libs = %{thisver}
end
end
package %{name}-debuginfo
template DEBUGINFO
end
end