From 60b466ea48a0ae27439182f446f2f05e6aa13957 Mon Sep 17 00:00:00 2001 From: Jan ONDREJ (SAL) Date: Feb 03 2016 20:22:45 +0000 Subject: Fix bandwidthd.service file permissions and patch URL. --- diff --git a/bandwidthd.spec b/bandwidthd.spec index 09f31c0..920b9ea 100644 --- a/bandwidthd.spec +++ b/bandwidthd.spec @@ -3,7 +3,7 @@ Name: bandwidthd Version: 2.0.1 -Release: 30%{?dist} +Release: 31%{?dist} Summary: Tracks network usage and builds html and graphs Group: System Environment/Daemons @@ -14,7 +14,7 @@ Source1: %{name} Source2: %{name}.service Patch0: bandwidthd-destdir.patch Patch1: bandwidthd-pgsql.patch -Patch2: http://v3.sk/~lkundrak/0001-Gracefuly-exit-upon-pcap_findalldevs-error.patch +Patch2: 0001-Gracefuly-exit-upon-pcap_findalldevs-error.patch Patch3: bandwidthd-gcc5.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: autoconf, gd-devel, libpng-devel @@ -73,12 +73,12 @@ make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT -# init script -install -d $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d +# start script %if 0%{?fedora} || 0%{?rhel} > 6 mkdir -p $RPM_BUILD_ROOT%{_unitdir} -install %{SOURCE2} $RPM_BUILD_ROOT%{_unitdir}/ +install -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_unitdir}/ %else +install -d $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/ %endif # install apache configuration @@ -119,6 +119,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Wed Feb 03 2016 Ján ONDREJ (SAL) - 2.0.1-31 +- Fix bandwidthd.service file permissions and patch URL. + * Mon Jul 20 2015 Ján ONDREJ (SAL) - 2.0.1-30 - Rebuild for EPEL7.