Search
j0ke.net Open Build Service
>
Projects
>
devel
:
erlang
>
CouchDB
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 20
[-]
[+]
Changed
couchdb.spec
@@ -28,18 +28,27 @@ mkdir -p %{buildroot}/%{_sysconfdir}/sysconfig mkdir -p %{buildroot}/%{_docdir}/%{name} mv %{buildroot}/%{_sysconfdir}/rc.d/couchdb %{buildroot}/%{_sysconfdir}/init.d/ -mv %{buildroot}/%{_sysconfdir}/default/couchdb %{buildroot}/%{_sysconfdir}/sysconfig/ +mv %{buildroot}/%{_sysconfdir}/default/couchdb %{buildroot}/var/adm/fillup-templates/sysconfig.%{name} mv %{buildroot}%{_datadir}/doc/%{name}/* %{buildroot}/%{_docdir}/%{name}/ rmdir %{buildroot}/%{_sysconfdir}/rc.d rmdir %{buildroot}/%{_sysconfdir}/default rm -Rf %{buildroot}%{_datadir}/doc/%{name} +sed -i s@default@sysconfig@g %{buildroot}/%{_sysconfdir}/sysconfig/%{name} -%files +%post +%{__useradd} -d %{_datadir} -g www -s /bin/bash -c "CouchDB" %{name} +%fillup_and_insserv couchdb + +%preun +%{__userdel} %{name} + +%preun +%files %defattr(-,root,root) %dir %{_sysconfdir}/%{name} %config(noreplace) %{_sysconfdir}/%{name}/couch_httpd.conf %config(noreplace) %{_sysconfdir}/%{name}/couch.ini %{_sysconfdir}/%{name}/conf/mime.types -%config(noreplace) %{_sysconfdir}/sysconfig/%{name} +/var/adm/fillup-templates/sysconfig.%{name} %{_sysconfdir}/init.d/%{name} %{_bindir} %{_libdir}/%{name}