1 |
%define pkgname dirsrv |
2 |
|
3 |
Summary: 389 Directory Server Gateway (dsgw) |
4 |
Name: 389-dsgw |
5 |
Version: 1.1.11 |
6 |
Release: %mkrel 2 |
7 |
License: GPLv2 |
8 |
URL: http://port389.org/ |
9 |
Source0: http://port389.org/sources/%{name}-%{version}.tar.bz2 |
10 |
Group: System/Servers |
11 |
BuildRequires: nspr-devel |
12 |
BuildRequires: nss-devel |
13 |
BuildRequires: svrcore-devel |
14 |
BuildRequires: mozldap-devel |
15 |
BuildRequires: libsasl-devel |
16 |
BuildRequires: icu |
17 |
BuildRequires: libicu-devel |
18 |
BuildRequires: 389-adminutil-devel |
19 |
# this provides the required /etc/dirsrv/admin-serv/httpd.conf |
20 |
Requires: 389-admin |
21 |
# orgchart uses perldap |
22 |
Requires: perl-Mozilla-LDAP |
23 |
|
24 |
|
25 |
|
26 |
%description |
27 |
389 Directory Server Gateway is a collection of 3 web applications |
28 |
that run on top of the Administration Server used by the Directory |
29 |
Server. These 3 applications are: |
30 |
* phonebook - a simple phonebook application geared towards end users, |
31 |
with simple search screens and simple self-service management |
32 |
* orgchart - an organization chart viewer |
33 |
* gateway - a more advanced search interface that allows admins to |
34 |
create and edit user entries, and allows creation of templates for |
35 |
different types of user and group entries |
36 |
|
37 |
%prep |
38 |
%setup -q -n %{name}-%{version} |
39 |
|
40 |
%build |
41 |
autoreconf -fi |
42 |
%configure --disable-rpath --with-openldap |
43 |
|
44 |
# Generate symbolic info for debuggers |
45 |
export XCFLAGS=$RPM_OPT_FLAGS |
46 |
|
47 |
%ifarch x86_64 |
48 |
export USE_64=1 |
49 |
%endif |
50 |
|
51 |
%make |
52 |
|
53 |
%install |
54 |
|
55 |
|
56 |
make DESTDIR="%{buildroot}" install |
57 |
|
58 |
# make cookie db directory |
59 |
mkdir -p %{buildroot}%{_localstatedir}/run/%{pkgname}/dsgw/cookies |
60 |
# touch the tmpfiles.d conf file - but will not be included in the package |
61 |
# Spuhler, March 13, 2013- The spec file in the source tar ball doesn't include this temp file |
62 |
# and rpmlint rejects it. Let's see if it really needs it. Suse doesn't use this file either. |
63 |
# Comment out the ghostfile too |
64 |
# mkdir -p %{buildroot}%{_sysconfdir}/tmpfiles.d |
65 |
# touch %{buildroot}%{_sysconfdir}/tmpfiles.d/%{pkgname}-dsgw.conf |
66 |
|
67 |
|
68 |
|
69 |
%post |
70 |
# this has been problematic - if this directory |
71 |
# does not exist, the server will silently fail to |
72 |
# start - however, if the user has already created |
73 |
# it, we don't want to overwrite the permissions |
74 |
# on it - so we can't list it explicitly in the |
75 |
# files section |
76 |
if [ ! -d %{_localstatedir}/run/%{pkgname}/dsgw/cookies ] ; then |
77 |
mkdir -p %{_localstatedir}/run/%{pkgname}/dsgw/cookies |
78 |
fi |
79 |
|
80 |
%files |
81 |
%doc LICENSE |
82 |
%dir %{_sysconfdir}/%{pkgname}/dsgw |
83 |
%config(noreplace)%{_sysconfdir}/%{pkgname}/dsgw/*.conf |
84 |
%{_datadir}/%{pkgname}/dsgw |
85 |
%{_datadir}/%{pkgname}/manual/*/dsgw |
86 |
%{_datadir}/%{pkgname}/properties/dsgw |
87 |
%{_sbindir}/* |
88 |
%{_libdir}/%{pkgname}/dsgw-cgi-bin |
89 |
# %ghost %{_sysconfdir}/tmpfiles.d/%{pkgname}-dsgw.conf |
90 |
|