openldap/openldap.spec

changeset 556
d927b76d07e3
parent 195
8f6a78b621a9
child 586
e10b124b2f21
equal deleted inserted replaced
2:1efb88b4eec3 3:af3a5bee0018
29 Packager: OpenPKG Foundation e.V. 29 Packager: OpenPKG Foundation e.V.
30 Distribution: OpenPKG Community 30 Distribution: OpenPKG Community
31 Class: BASE 31 Class: BASE
32 Group: LDAP 32 Group: LDAP
33 License: GPL 33 License: GPL
34 Version: 2.4.16 34 Version: 2.4.26
35 Release: 20090420 35 Release: 20110914
36 36
37 # package options 37 # package options
38 %option with_server yes 38 %option with_server yes
39 %option with_fsl yes 39 %option with_fsl yes
40 %option with_crypt yes 40 %option with_crypt yes
114 export CPPFLAGS="%{l_cppflags}" 114 export CPPFLAGS="%{l_cppflags}"
115 export LDFLAGS="%{l_ldflags}" 115 export LDFLAGS="%{l_ldflags}"
116 export LIBS="" 116 export LIBS=""
117 export ARGS="" 117 export ARGS=""
118 ARGS="$ARGS --prefix=%{l_prefix}" 118 ARGS="$ARGS --prefix=%{l_prefix}"
119 ARGS="$ARGS --mandir=%{l_prefix}/man"
120 ARGS="$ARGS --infodir=%{l_prefix}/info"
119 ARGS="$ARGS --libexecdir=%{l_prefix}/libexec/openldap" 121 ARGS="$ARGS --libexecdir=%{l_prefix}/libexec/openldap"
120 ARGS="$ARGS --localstatedir=%{l_prefix}/var/openldap" 122 ARGS="$ARGS --localstatedir=%{l_prefix}/var/openldap"
121 ARGS="$ARGS --mandir=%{l_prefix}/man"
122 ARGS="$ARGS --enable-syslog" 123 ARGS="$ARGS --enable-syslog"
123 ARGS="$ARGS --with-tls" 124 ARGS="$ARGS --with-tls"
124 ARGS="$ARGS --without-fetch" 125 ARGS="$ARGS --without-fetch"
125 ARGS="$ARGS --without-gssapi" 126 ARGS="$ARGS --without-gssapi"
126 ARGS="$ARGS --disable-dynamic" 127 ARGS="$ARGS --disable-dynamic"
218 # build toolkit 219 # build toolkit
219 %{l_make} %{l_mflags} depend 220 %{l_make} %{l_mflags} depend
220 %{l_make} %{l_mflags} 221 %{l_make} %{l_mflags}
221 222
222 %install 223 %install
224 # clean build cruft
225 rm -rf $RPM_BUILD_ROOT
226
223 # install toolkit 227 # install toolkit
224 rm -rf $RPM_BUILD_ROOT
225 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT 228 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
226 229
227 # post adjustment: remove extra files 230 # post adjustment: remove extra files
228 rm -f $RPM_BUILD_ROOT%{l_prefix}/etc/openldap/*.default 231 rm -f $RPM_BUILD_ROOT%{l_prefix}/etc/openldap/*.default
229 rm -f $RPM_BUILD_ROOT%{l_prefix}/etc/openldap/*/*.default 232 rm -f $RPM_BUILD_ROOT%{l_prefix}/etc/openldap/*/*.default
236 %endif 239 %endif
237 240
238 # post adjustment: enable and correct slapd.pid 241 # post adjustment: enable and correct slapd.pid
239 %if "%{with_server}" == "yes" 242 %if "%{with_server}" == "yes"
240 %{l_shtool} subst \ 243 %{l_shtool} subst \
241 -e 's;^[ #]*\(pidfile \).*$;\1 %{l_prefix}/var/openldap/run/slapd.pid;' \ 244 -e 's;^[ #]*\(pidfile\).*$;\1 %{l_prefix}/var/openldap/run/slapd.pid;' \
245 -e 's;^\(argsfile\).*$;\1 %{l_prefix}/var/openldap/run/slapd.args;' \
242 $RPM_BUILD_ROOT%{l_prefix}/etc/openldap/slapd.conf 246 $RPM_BUILD_ROOT%{l_prefix}/etc/openldap/slapd.conf
243 %endif 247 %endif
244 248
245 # post adjustment: remove OSSP fsl dependency from libtool files 249 # post adjustment: remove OSSP fsl dependency from libtool files
246 %if "%{with_server}" == "yes" 250 %if "%{with_server}" == "yes"

mercurial