/[pkgs]/devel/389-admin/389-admin.spec
ViewVC logotype

Contents of /devel/389-admin/389-admin.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Wed Oct 7 15:50:27 2009 UTC (6 weeks, 4 days ago) by rmeggins
Branch: MAIN
CVS Tags: EL-4-split, three89-admin-1_1_9-1_fc13, EL-5-split, HEAD
Changes since 1.7: +37 -2 lines
This is the 1.1.9 release
Added 389-admin-git-local.sh to construct a source tarball
from a local git repo and a tag - also grabs the correct
versions of mod_admserv and mod_restartd from CVS
1 %define pkgname dirsrv
2
3 Summary: 389 Administration Server (admin)
4 Name: 389-admin
5 Version: 1.1.9
6 Release: 1%{?dist}
7 License: GPLv2 and ASL 2.0
8 URL: http://port389.org/
9 Group: System Environment/Daemons
10 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
11 Provides: fedora-ds-admin = %{version}-%{release}
12 Obsoletes: fedora-ds-admin < 1.1.8-1
13
14 BuildRequires: nspr-devel
15 BuildRequires: nss-devel
16 BuildRequires: svrcore-devel
17 BuildRequires: mozldap-devel
18 BuildRequires: cyrus-sasl-devel
19 BuildRequires: icu
20 BuildRequires: libicu-devel
21 BuildRequires: httpd-devel
22 BuildRequires: apr-devel
23 BuildRequires: mod_nss
24 BuildRequires: 389-adminutil-devel
25
26 Requires: 389-ds-base
27 Requires: mod_nss
28 # the following are needed for some of our scripts
29 Requires: perl-Mozilla-LDAP
30 Requires: nss-tools
31
32 # for the init script
33 Requires(post): /sbin/chkconfig
34 Requires(preun): /sbin/chkconfig
35 Requires(preun): /sbin/service
36
37 Source0: http://port389.org/sources/%{name}-%{version}.tar.bz2
38 # 389-admin-git.sh should be used to generate the source tarball from git
39 Source1: %{name}-git.sh
40 Patch1: f11-httpd.patch
41
42 %description
43 389 Administration Server is an HTTP agent that provides management features
44 for 389 Directory Server. It provides some management web apps that can
45 be used through a web browser. It provides the authentication, access control,
46 and CGI utilities used by the console.
47
48 %prep
49 %setup -q -n %{name}-%{version}
50 %patch1
51
52 %build
53 %configure --disable-rpath
54
55 # Generate symbolic info for debuggers
56 export XCFLAGS=$RPM_OPT_FLAGS
57
58 %ifarch x86_64 ppc64 ia64 s390x sparc64
59 export USE_64=1
60 %endif
61
62 make %{?_smp_mflags}
63
64 %install
65 rm -rf $RPM_BUILD_ROOT
66
67 make DESTDIR="$RPM_BUILD_ROOT" install
68
69 # make console jars directory
70 mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{pkgname}/html/java
71
72 #remove libtool and static libs
73 rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
74 rm -f $RPM_BUILD_ROOT%{_libdir}/*.so
75 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
76 rm -f $RPM_BUILD_ROOT%{_libdir}/%{pkgname}/modules/*.a
77 rm -f $RPM_BUILD_ROOT%{_libdir}/%{pkgname}/modules/*.la
78
79 %clean
80 rm -rf $RPM_BUILD_ROOT
81
82 %pre -p <lua>
83 -- save ownership/permissions on the dirs/files that rpm changes
84 -- if these don't exist, the vars will be nil
85 %{pkgname}admin_adminserv = posix.stat('%{_sysconfdir}/%{pkgname}/admin-serv')
86 %{pkgname}admin_consoleconf = posix.stat('%{_sysconfdir}/%{pkgname}/admin-serv/console.conf')
87 -- save the run level configuration, if any
88 rc = os.execute('rpm --quiet -q fedora-ds-admin')
89 if rc == 0 then
90 %{pkgname}admin_exists = true
91 %{pkgname}admin_savelinks = {}
92 for dir in posix.files("%{_sysconfdir}/rc.d") do
93 if string.find(dir, "rc%d.d") then
94 -- print("looking in %{_sysconfdir}/rc.d/"..dir)
95 for link in posix.files("%{_sysconfdir}/rc.d/"..dir) do
96 if string.find(link, "[SK]%d%d%{pkgname}-admin") then
97 fullname = "%{_sysconfdir}/rc.d/"..dir.."/"..link
98 linked = posix.readlink(fullname)
99 -- print(fullname.." is linked to "..linked)
100 %{pkgname}_savelinks[fullname] = linked
101 end
102 end
103 end
104 end
105 end
106
107 %post -p <lua>
108 -- do the usual daemon post setup stuff
109 os.execute('/sbin/chkconfig --add %{pkgname}-admin')
110 os.execute('/sbin/ldconfig')
111 -- restore permissions if upgrading
112 if %{pkgname}admin_adminserv then
113 posix.chmod('%{_sysconfdir}/%{pkgname}/admin-serv', %{pkgname}admin_adminserv.mode)
114 posix.chown('%{_sysconfdir}/%{pkgname}/admin-serv', %{pkgname}admin_adminserv.uid, %{pkgname}admin_adminserv.gid)
115 end
116 if %{pkgname}admin_consoleconf then
117 posix.chmod('%{_sysconfdir}/%{pkgname}/admin-serv/console.conf', %{pkgname}admin_consoleconf.mode)
118 posix.chown('%{_sysconfdir}/%{pkgname}/admin-serv/console.conf', %{pkgname}admin_consoleconf.uid, %{pkgname}admin_consoleconf.gid)
119 end
120
121 %preun
122 if [ $1 = 0 ]; then
123 /sbin/service %{pkgname}-admin stop >/dev/null 2>&1 || :
124 /sbin/chkconfig --del %{pkgname}-admin
125 fi
126
127 %postun -p /sbin/ldconfig
128
129 %posttrans -p <lua>
130 -- if we saved the run level configuration in %pre, restore it now
131 -- we can get rid of this code once Fedora 11 becomes obsolete
132 if %{pkgname}admin_savelinks then
133 for fullpath,link in pairs(%{pkgname}admin_savelinks) do
134 posix.symlink(link,fullpath)
135 -- print("posttrans - restored run level "..fullpath.." to "..link)
136 end
137 end
138 if %{pkgname}admin_exists then
139 os.execute('/sbin/service %{pkgname}-admin start >/dev/null 2>&1')
140 end
141
142 %files
143 %defattr(-,root,root,-)
144 %doc LICENSE
145 %dir %{_sysconfdir}/%{pkgname}/admin-serv
146 %config(noreplace)%{_sysconfdir}/%{pkgname}/admin-serv/*.conf
147 %{_datadir}/%{pkgname}
148 %{_sysconfdir}/rc.d/init.d/%{pkgname}-admin
149 %config(noreplace)%{_sysconfdir}/sysconfig/%{pkgname}-admin
150 %{_sbindir}/*
151 %{_libdir}/*.so.*
152 %{_libdir}/%{pkgname}
153 %{_mandir}/man8/*
154
155 %changelog
156 * Mon Sep 14 2009 Rich Megginson <rmeggins@redhat.com> - 1.1.9-1
157 - the 1.1.9 release
158
159 * Tue Aug 25 2009 Rich Megginson <rmeggins@redhat.com> - 1.1.8-6
160 - rewrite perm/owner preservation code to use lua
161
162 * Wed Aug 12 2009 Rich Megginson <rmeggins@redhat.com> - 1.1.8-5
163 - final rebuild for 1.1.8 release
164
165 * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.8-4
166 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
167
168 * Tue Jul 21 2009 Rich Megginson <rmeggins@redhat.com> - 1.1.8-3
169 - bump rev for final rebuild
170
171 * Tue Jul 21 2009 Rich Megginson <rmeggins@redhat.com> - 1.1.8-2
172 - change adminutil to 389-adminutil
173
174 * Thu Jun 18 2009 Rich Megginson <rmeggins@redhat.com> - 1.1.8-1
175 - bump version to 1.1.8
176 - change license to GPLv2 + ASL 2.0
177 - changed files that were incorrectly licensed as GPLv2+ to plain GPLv2
178
179 * Wed May 13 2009 Rich Megginson <rmeggins@redhat.com> - 1.1.7-5
180 - rename to 389
181
182 * Thu Apr 9 2009 Rich Megginson <rmeggins@redhat.com> - 1.1.7-4
183 - Resolves: bug 493424
184 - Description: dirsrv-admin initscript looks for nonexistent library
185 - Added patch to remove those modules from the httpd.conf
186
187 * Wed Apr 8 2009 Rich Megginson <rmeggins@redhat.com> - 1.1.7-3
188 - Resolves: bug 494980
189 - Description: setup-ds-admin.pl -u and silent setup complain about ServerIpAddress
190 - CVS tag FedoraDirSrvAdmin_1_1_7_RC3 FedoraDirSrvAdmin_1_1_7_RC3_20090408
191
192 * Fri Apr 3 2009 Rich Megginson <rmeggins@redhat.com> - 1.1.7-2
193 - Resolves: bug 493989
194 - Description: Admin Server: valgrind invalid read in security.c when installing CRL
195
196 * Tue Mar 31 2009 Rich Megginson <rmeggins@redhat.com> - 1.1.7-1
197 - this is the 1.1.7 release
198 - added man pages for setup, migration, remove commands
199 - better error handling for command line utilities
200 - fixed remove from console
201 - added remove-ds-admin.pl
202 - added pre and post sections in order to preserve the permissions and ownerships
203 - CVS tag FedoraDirSrvAdmin_1_1_7_RC1 FedoraDirSrvAdmin_1_1_7_RC1_20090331
204
205 * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.6-3
206 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
207
208 * Mon Sep 15 2008 Rich Megginson <rmeggins@redhat.com> - 1.1.6-2
209 - patch for bug 451702 not required anymore - in upstream now
210
211 * Wed Jul 2 2008 Rich Megginson <rmeggins@redhat.com> - 1.1.6-1
212 - add patch for bug 451702
213 - The 1.1.6 release
214
215 * Fri Jun 6 2008 Rich Megginson <rmeggins@redhat.com> - 1.1.5-1
216 - Resolves: Bug 448366
217 - genrb no longer supports -p option
218
219 * Tue Apr 15 2008 Rich Megginson <rmeggins@redhat.com> - 1.1.4-1
220 - Resolves: Bug 437301
221 - Directory Server: shell command injection in CGI replication monitor
222 - Fix: rewrite the perl script to ignore all input parameters - replmon.conf
223 - file will have to be hard coded to be in the admin-serv directory
224 - Resolves: Bug 437320
225 - Directory Server: unrestricted access to CGI scripts
226 - Fix: remove script alias for /bin/admin/admin/bin/
227
228 * Wed Jan 9 2008 Rich Megginson <rmeggins@redhat.com> - 1.1.2-1
229 - Fix issues associated with Fedora pkg review bug 249548
230
231 * Tue Dec 11 2007 Rich Megginson <rmeggins@redhat.com> - 1.1.1-1
232 - this is the final GA candidate
233
234 * Tue Nov 6 2007 Rich Megginson <rmeggins@redhat.com> - 1.1.0-1.16
235 - fix several beta blocker issues
236
237 * Mon Oct 15 2007 Rich Megginson <rmeggins@redhat.com> - 1.1.0-1.15
238 - fix bogus dist macro
239 - change mozldap6 to mozldap
240
241 * Thu Oct 11 2007 Rich Megginson <rmeggins@redhat.com> - 1.1.0-1.14
242 - make admin server work with SELinux enabled
243 - fix wording errors in setup
244
245 * Mon Oct 8 2007 Rich Megginson <rmeggins@redhat.com> - 1.1.0-1.13
246 - added /etc/sysconfig/dirsrv-admin the file that allows you to set
247 - the environment used to start up the admin server (e.g. keytab, ulimit, etc.)
248 - the initscript and admin start script use this file now
249 - This version also has a fix to print the correct error message if the admin
250 - server cannot be contacted during setup or migration.
251
252 * Thu Sep 27 2007 Rich Megginson <rmeggins@redhat.com> - 1.1.0-1.12
253 - fix a couple of migration issues, including the rpath $libdir problem
254 - allow ds_remove from console to remove instances
255
256 * Wed Sep 19 2007 Rich Megginson <rmeggins@redhat.com> - 1.1.0-1.11
257 - one line fix to fix of 295001 - console.conf clobbered
258
259 * Tue Sep 18 2007 Rich Megginson <rmeggins@redhat.com> - 1.1.0-1.10
260 - fixed migration issue bugzilla 295001 - console.conf clobbered
261
262 * Fri Sep 14 2007 Rich Megginson <rmeggins@redhat.com> - 1.1.0-1.9
263 - fix several more migration problems
264
265 * Fri Sep 14 2007 Rich Megginson <rmeggins@redhat.com> - 1.1.0-1.8
266 - fix migration - servers are started as they are migrated now
267
268 * Tue Aug 21 2007 Rich Megginson <rmeggins@redhat.com> - 1.1.0-1.7
269 - Fix the with-fhs-opt configure flag
270
271 * Fri Aug 17 2007 Rich Megginson <rmeggins@redhat.com> - 1.1.0-1.6
272 - remove curses
273 - make mod_admserv link against sasl
274 - add the usual .m4 files to mod_admserv instead of having all of
275 - the component logic in configure.in
276
277 * Thu Aug 16 2007 Rich Megginson <rmeggins@redhat.com> - 1.1.0-1.5
278 - incorporate Noriko's migration fix
279
280 * Wed Aug 15 2007 Rich Megginson <rmeggins@redhat.com> - 1.1.0-1.4
281 - address several migration issues
282
283 * Mon Aug 13 2007 Rich Megginson <rmeggins@redhat.com> - 1.1.0-1.3
284 - there is no devel package, so remove unused .so files
285
286 * Mon Aug 13 2007 Rich Megginson <rmeggins@redhat.com> - 1.1.0-1.2
287 - forgot to tag the modules
288
289 * Fri Aug 10 2007 Rich Megginson <rmeggins@redhat.com> - 1.1.0-1.1
290 - get rid of cvsdate
291 - use pkgname of dirsrv for filesystem path naming
292 - get rid of devel package
293 - simplify files section
294
295 * Fri Aug 10 2007 Noriko Hosoi <nhosoi@redhat.com> - 1.1.0-0.3.20070810
296 - updated to latest sources
297 - upgraded the mozldap6 version to 6.0.4
298
299 * Wed Aug 8 2007 Noriko Hosoi <nhosoi@redhat.com> - 1.1.0-0.2.20070808
300 - updated to latest sources -- bug fixes in the setup scripts
301
302 * Mon Aug 6 2007 Rich Megginson <rmeggins@redhat.com> - 1.1.0-0.1.20070806
303 - updated to latest sources
304
305 * Thu Aug 2 2007 Rich Megginson <rmeggins@redhat.com> - 1.1.0-0.4.20070802
306 - There are no files in bindir anymore
307
308 * Thu Aug 2 2007 Rich Megginson <rmeggins@redhat.com> - 1.1.0-0.3.20070802
309 - forgot to prepend build root to java dir creation
310
311 * Thu Aug 2 2007 Rich Megginson <rmeggins@redhat.com> - 1.1.0-0.2.20070802
312 - forgot to add mod_admserv and mod_restartd to source
313
314 * Thu Aug 2 2007 Rich Megginson <rmeggins@redhat.com> - 1.1.0-0.1.20070802
315 - updated to latest sources - fix build breakage
316 - add console jars dir under html
317
318 * Mon Jul 23 2007 Rich Megginson <rmeggins@redhat.com> - 1.1.0-0.1.20070725
319 - Initial version based on fedora-ds-base.spec

admin@fedoraproject.org
ViewVC Help
Powered by ViewVC 1.1.2