Search
j0ke.net Open Build Service
>
Projects
>
server:messaging
>
openfire
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 18
[-]
[+]
Changed
openfire.spec
@@ -54,8 +54,13 @@ # Make the startup script executable. chmod 755 $RPM_BUILD_ROOT%{homedir}/bin/openfire.sh # Set up the sysconfig file. +%if 0%{?suse_version} +mkdir -p $RPM_BUILD_ROOT/var/adm/fillup-templates +cp cp $RPM_BUILD_ROOT%{homedir}/bin/extra/redhat/openfire-sysconfig $RPM_BUILD_ROOT/var/adm/fillup-templates/sysconfig.openfire +%else mkdir -p $RPM_BUILD_ROOT/etc/sysconfig cp $RPM_BUILD_ROOT%{homedir}/bin/extra/redhat/openfire-sysconfig $RPM_BUILD_ROOT/etc/sysconfig/openfire +%endif # Copy over the documentation cp -R documentation $RPM_BUILD_ROOT%{homedir}/documentation cp changelog.html $RPM_BUILD_ROOT%{homedir}/ @@ -83,10 +88,14 @@ %preun [ -x "/etc/init.d/openfire" ] && /etc/init.d/openfire stop -/sbin/chkconfig --del openfire +/sbin/chkconfig --del openfire || : %post -/sbin/chkconfig --add openfire +%if 0%{?suse_version} +%fillup_and_insserv +%else +/sbin/chkconfig --add openfire || : +%endif chown -R daemon:daemon %{homedir} %files @@ -127,7 +136,11 @@ %doc %{homedir}/README.html %doc %{homedir}/changelog.html %{_sysconfdir}/init.d/openfire +%if 0%{?suse_version} +/var/adm/fillup-templates/sysconfig.openfire +%else %config(noreplace) %{_sysconfdir}/sysconfig/openfire +%endif #%{homedir}/jre %changelog