Search
j0ke.net Open Build Service
>
Projects
>
ha
:
firewall
>
fail2ban
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 2
[-]
[+]
Changed
fail2ban.spec
@@ -23,7 +23,9 @@ Group: Productivity/Networking/Security Requires: python >= 2.5, logrotate, cron BuildRequires: python-devel +%if 0%{?suse_version} PreReq: %fillup_prereq +%endif AutoReqProv: on Version: 0.8.4 Release: 2 @@ -69,11 +71,17 @@ install -d -m755 $RPM_BUILD_ROOT/usr/sbin install -m755 %{SOURCE1} $RPM_BUILD_ROOT/%{_sysconfdir}/init.d/%{name} ln -sf /etc/init.d/%{name} ${RPM_BUILD_ROOT}/usr/sbin/rc%{name} +%if 0%{?suse_version} install -d -m755 $RPM_BUILD_ROOT/var/adm/fillup-templates install -m 644 %{SOURCE2} $RPM_BUILD_ROOT/var/adm/fillup-templates/sysconfig.%{name} +%else +install -D -m644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/%{name} +%endif %post +%if 0%{?suse_version} %{fillup_only} +%endif %preun %stop_on_removal %{name} @@ -98,7 +106,11 @@ /usr/sbin/rc%{name} /usr/share/%{name} %dir %ghost /var/run/%{name} +%if 0%{?suse_version} /var/adm/fillup-templates/sysconfig.%{name} +%else +%{_sysconfdir}/sysconfig/%{name} +%endif %doc %{_mandir}/man1/* %doc COPYING ChangeLog README TODO files/cacti