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 6
[-]
[+]
Changed
fwlogwatch.spec
@@ -27,39 +27,52 @@ %__make %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" +%__install -d %{buildroot}%{_sbindir} +%if 0%{?redhat_version} || 0%{?centos_version} || 0%{?fedora_version} || 0%{?sl_version} +%__install -d %{buildroot}%{_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" -%__install -d "${RPM_BUILD_ROOT}%{_datadir}/locale/pt/LC_MESSAGES" -%__install -d "${RPM_BUILD_ROOT}%{_datadir}/locale/sv/LC_MESSAGES" -%__install -d "${RPM_BUILD_ROOT}%{_datadir}/locale/zh_CN/LC_MESSAGES" -%__install -d "${RPM_BUILD_ROOT}%{_datadir}/locale/zh_TW/LC_MESSAGES" -%__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}" +%__install -d %{buildroot}%{_mandir}/man8 +%__install -d %{buildroot}%{_datadir}/locale/de/LC_MESSAGES +%__install -d %{buildroot}%{_datadir}/locale/ja/LC_MESSAGES +%__install -d %{buildroot}%{_datadir}/locale/pt/LC_MESSAGES +%__install -d %{buildroot}%{_datadir}/locale/sv/LC_MESSAGES +%__install -d %{buildroot}%{_datadir}/locale/zh_CN/LC_MESSAGES +%__install -d %{buildroot}%{_datadir}/locale/zh_TW/LC_MESSAGES +%__make install INSTALL_DIR=%{buildroot}%{_prefix} +%__make install-config CONF_DIR=%{buildroot}%{_sysconfdir} +%__make install-i18n LOCALE_DIR=%{buildroot}%{_prefix} +%if 0%{?redhat_version} || 0%{?centos_version} || 0%{?fedora_version} || 0%{?sl_version} +%__make install-rhinit CONF_DIR=%{buildroot}%{_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}" +[ -n "%{buildroot}" ] && %__rm -rf "%{buildroot}" ( cd "${RPM_BUILD_DIR}" && %__rm -rf "%{name}-%{version}" ) %preun -%stop_on_removal +if [ $1 == 0 ] ; then + %if 0%{?suse_version} + %stop_on_removal + %else + /sbin/service fwlogwatch stop || : + %endif +fi %postun -%insserv_cleanup +if [ $1 == 0 ] ; then + %if 0%{?suse_version} + %insserv_cleanup + %else + /sbin/chkconfig --del fwlogwatch || : + %endif +fi %files %defattr(-,root,root)