]>
Commit | Line | Data |
---|---|---|
8b63a194 | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
8b63a194 | 4 | ############################################################################### |
5 | ||
802ea3af | 6 | name = openldap |
641c402a SS |
7 | version = 2.4.28 |
8 | release = 1 | |
8b63a194 | 9 | |
802ea3af MT |
10 | groups = System/Daemons |
11 | url = http://www.openldap.org/ | |
12 | license = OpenLDAP | |
13 | summary = LDAP support libraries. | |
8b63a194 | 14 | |
802ea3af MT |
15 | description |
16 | OpenLDAP is an open source suite of LDAP (Lightweight Directory Access | |
17 | Protocol) applications and development tools. LDAP is a set of | |
18 | protocols for accessing directory services over the Internet, similar | |
19 | to the way DNS information is propagated over the Internet. The | |
20 | openldap package contains configuration files, libraries, and | |
8b63a194 | 21 | documentation for OpenLDAP. |
802ea3af | 22 | end |
8b63a194 | 23 | |
641c402a | 24 | source_dl = ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/ |
802ea3af | 25 | sources = %{thisapp}.tgz |
8b63a194 | 26 | |
802ea3af MT |
27 | build |
28 | requires | |
29 | db4-devel | |
30 | cyrus-sasl-devel | |
31 | groff | |
32 | libtool | |
33 | libtool-devel | |
34 | openssl-devel | |
35 | pth-devel | |
36 | end | |
25d74477 | 37 | |
802ea3af MT |
38 | configure_options += \ |
39 | --libexecdir=/usr/lib \ | |
40 | --sysconfdir=/etc \ | |
41 | --localstatedir=/var \ | |
42 | --with-threads=posix \ | |
43 | --disable-perl \ | |
44 | --enable-dynamic \ | |
45 | --enable-crypt \ | |
46 | --enable-modules \ | |
47 | --enable-rlookups \ | |
48 | --enable-backends=mod \ | |
49 | --enable-overlays=mod \ | |
50 | --enable-sql=no \ | |
51 | --enable-ndb=no \ | |
52 | --disable-static | |
8b63a194 | 53 | |
799d65ad | 54 | # Doens't seem to work in chroot. |
802ea3af MT |
55 | #define test |
56 | # cd %{DIR_APP} && make check | |
8b63a194 | 57 | #endef |
58 | ||
802ea3af MT |
59 | install_cmds |
60 | mv -v %{BUILDROOT}/usr/lib/slapd %{BUILDROOT}/usr/sbin/slapd | |
61 | ln -svf slapd %{BUILDROOT}/usr/sbin/slapacl | |
62 | ln -svf slapd %{BUILDROOT}/usr/sbin/slapadd | |
63 | ln -svf slapd %{BUILDROOT}/usr/sbin/slapauth | |
64 | ln -svf slapd %{BUILDROOT}/usr/sbin/slapcat | |
65 | ln -svf slapd %{BUILDROOT}/usr/sbin/slapdn | |
66 | ln -svf slapd %{BUILDROOT}/usr/sbin/slapindex | |
67 | ln -svf slapd %{BUILDROOT}/usr/sbin/slappasswd | |
68 | ln -svf slapd %{BUILDROOT}/usr/sbin/slapschema | |
69 | ln -svf slapd %{BUILDROOT}/usr/sbin/slaptest | |
70 | ||
71 | rm -rvf %{BUILDROOT}/var/openldap-data | |
72 | ||
73 | for LINK in lber ldap ldap_r; do | |
74 | chmod -v 0755 %{BUILDROOT}/usr/lib/$(readlink %{BUILDROOT}/usr/lib/lib${LINK}.so) | |
75 | done | |
76 | ||
77 | # Install configuration | |
78 | mkdir -pv %{BUILDROOT}/etc/%{name} | |
79 | cp -vf %{DIR_SOURCE}/slapd.conf %{BUILDROOT}/etc/%{name}/slapd.conf | |
93d20e63 | 80 | |
802ea3af MT |
81 | mkdir -pv %{BUILDROOT}/var/lib/ldap |
82 | chmod 700 -Rv %{BUILDROOT}/var/lib/ldap | |
83 | end | |
84 | end | |
8b63a194 | 85 | |
802ea3af MT |
86 | packages |
87 | package %{name} | |
8b63a194 | 88 | |
802ea3af MT |
89 | package %{name}-libs |
90 | template LIBS | |
91 | end | |
8b63a194 | 92 | |
802ea3af MT |
93 | package %{name}-devel |
94 | template DEVEL | |
95 | end | |
1f9bc2f0 MT |
96 | |
97 | package %{name}-debuginfo | |
98 | template DEBUGINFO | |
99 | end | |
802ea3af | 100 | end |