]> git.ipfire.org Git - ipfire-3.x.git/blob - cyrus-sasl/cyrus-sasl.nm
cyrus-sasl: Use /run instead of /var/run
[ipfire-3.x.git] / cyrus-sasl / cyrus-sasl.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = cyrus-sasl
7 version = 2.1.28
8 release = 4
9
10 groups = System/Libraries
11 url = https://github.com/cyrusimap/cyrus-sasl
12 license = BSD
13 summary = The Cyrus SASL library
14
15 description
16 The cyrus-sasl package contains the Cyrus implementation of SASL.
17 SASL is the Simple Authentication and Security Layer, a method for
18 adding authentication support to connection-based protocols.
19 end
20
21 source_dl = https://github.com/cyrusimap/cyrus-sasl/releases/download/cyrus-sasl-%{version}/
22
23 build
24 requires
25 automake
26 gdbm-devel
27 libxcrypt-devel
28 openssl-devel
29 pam-devel
30 end
31
32 configure_options += \
33 --with-configdir=%{libdir}/sasl2:/etc/sasl2 \
34 --with-plugindir=%{libdir}/sasl2 \
35 --with-dbpath=/var/lib/sasl/sasldb2 \
36 --with-saslauthd=/run/saslauthd
37
38 make_install_targets += sasldir=%{libdir}/sasl2
39
40 install_cmds
41 # Install plugins.
42 make install DESTDIR=%{BUILDROOT} sasldir=%{libdir}/sasl2 -C plugins
43
44 mkdir -pv %{BUILDROOT}%{libdir}/sasl2
45 cp -vf %{DIR_SOURCE}/smtpd.conf %{BUILDROOT}%{libdir}/sasl2/
46
47 install -v -m700 -d %{BUILDROOT}/var/lib/sasl
48 end
49 end
50
51 packages
52 package %{name}
53
54 package %{name}-libs
55 template LIBS
56 end
57
58 package %{name}-devel
59 template DEVEL
60 end
61
62 package %{name}-debuginfo
63 template DEBUGINFO
64 end
65 end