Search
j0ke.net Open Build Service
>
Projects
>
ha
:
firewall
>
fwlogwatch
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 3
[-]
[+]
Changed
fwlogwatch.spec
@@ -26,7 +26,12 @@ %install %__install -d "${RPM_BUILD_ROOT}%{_sbindir}" +%if 0%{?redhat_version} || 0%{?centos_version} || 0%{?fedora_version} %__install -d "${RPM_BUILD_ROOT}%{_sysconfdir}/rc.d/init.d" +%endif +%if 0%{?suse_version} +%__install -d %{buildroot}%{_sysconfdir}/init.d +%endif %__install -d "${RPM_BUILD_ROOT}%{_mandir}/man8" %__install -d "${RPM_BUILD_ROOT}%{_datadir}/locale/de/LC_MESSAGES" %__install -d "${RPM_BUILD_ROOT}%{_datadir}/locale/ja/LC_MESSAGES" @@ -37,7 +42,12 @@ %__make install INSTALL_DIR="${RPM_BUILD_ROOT}%{_prefix}" %__make install-config CONF_DIR="${RPM_BUILD_ROOT}%{_sysconfdir}" %__make install-i18n LOCALE_DIR="${RPM_BUILD_ROOT}%{_prefix}" +%if 0%{?redhat_version} || 0%{?centos_version} || 0%{?fedora_version} %__make install-rhinit CONF_DIR="${RPM_BUILD_ROOT}%{_sysconfdir}" +%endif +%if 0%{?suse_version} +%__install -m0755 contrib/fwlogwatch.init.suse %{buildroot}%{_sysconfdir}/init.d/fwlogwatch +%endif %clean [ -n "${RPM_BUILD_ROOT}" ] && %__rm -rf "${RPM_BUILD_ROOT}" @@ -55,7 +65,12 @@ %doc contrib/fwlogsummary.cgi contrib/fwlogsummary_small.cgi %doc contrib/fwlogwatch.php %config(noreplace) %{_sysconfdir}/fwlogwatch.config -%config(noreplace) %{_sysconfdir}/rc.d/init.d/fwlogwatch +%if 0%{?redhat_version} || 0%{?centos_version} || 0%{?fedora_version} +%{_sysconfdir}/rc.d/init.d/fwlogwatch +%endif +%if 0%{?suse_version} +%{_sysconfdir}/init.d/fwlogwatch +%endif %config(noreplace) %{_sbindir}/fwlw_notify %config(noreplace) %{_sbindir}/fwlw_respond %{_sbindir}/fwlogwatch