|
@@ -1,9 +1,9 @@
|
|
Summary: Rotates, compresses, removes and mails system log files.
|
|
Summary: Rotates, compresses, removes and mails system log files.
|
|
Summary(ja): システムのログファイルを圧縮/削除するプログラム
|
|
Summary(ja): システムのログファイルを圧縮/削除するプログラム
|
|
Name: logrotate
|
|
Name: logrotate
|
|
-Version: 3.16.0
|
|
|
|
|
|
+Version: 3.19.0
|
|
Release: 1%{?_dist_release}
|
|
Release: 1%{?_dist_release}
|
|
-Group: System Environment/Base
|
|
|
|
|
|
+Group: system
|
|
Vendor: Project Vine
|
|
Vendor: Project Vine
|
|
Distribution: Vine Linux
|
|
Distribution: Vine Linux
|
|
|
|
|
|
@@ -39,11 +39,16 @@ logrotate の処理は,毎日/毎週/毎月といった単位でも設定出
|
|
システム上のログファイルを管理するツールが必要なら
|
|
システム上のログファイルを管理するツールが必要なら
|
|
logrotate パッケージをインストールして下さい.
|
|
logrotate パッケージをインストールして下さい.
|
|
|
|
|
|
|
|
+
|
|
|
|
+%debug_package
|
|
|
|
+
|
|
|
|
+
|
|
%prep
|
|
%prep
|
|
%setup -q
|
|
%setup -q
|
|
|
|
|
|
#perl -pi -e 's|/usr/sbin/logrotate|/usr/sbin/logrotate -l syslog|' examples/logrotate.cron
|
|
#perl -pi -e 's|/usr/sbin/logrotate|/usr/sbin/logrotate -l syslog|' examples/logrotate.cron
|
|
|
|
|
|
|
|
+
|
|
%build
|
|
%build
|
|
export CFLAGS="$RPM_OPT_FLAGS -DSTATEFILE=\\\"/var/lib/logrotate/logrotate.status\\\""
|
|
export CFLAGS="$RPM_OPT_FLAGS -DSTATEFILE=\\\"/var/lib/logrotate/logrotate.status\\\""
|
|
|
|
|
|
@@ -51,9 +56,11 @@ export CFLAGS="$RPM_OPT_FLAGS -DSTATEFILE=\\\"/var/lib/logrotate/logrotate.statu
|
|
%configure
|
|
%configure
|
|
make %{?_smp_mflags}
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
+
|
|
%check
|
|
%check
|
|
make test
|
|
make test
|
|
|
|
|
|
|
|
+
|
|
%install
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
rm -rf $RPM_BUILD_ROOT
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
@@ -65,6 +72,7 @@ install -p -m 644 examples/logrotate.conf $RPM_BUILD_ROOT/%{_sysconfdir}/logrota
|
|
install -p -m 755 examples/logrotate.cron $RPM_BUILD_ROOT/%{_sysconfdir}/cron.daily/logrotate
|
|
install -p -m 755 examples/logrotate.cron $RPM_BUILD_ROOT/%{_sysconfdir}/cron.daily/logrotate
|
|
touch $RPM_BUILD_ROOT/%{_localstatedir}/lib/logrotate/logrotate.status
|
|
touch $RPM_BUILD_ROOT/%{_localstatedir}/lib/logrotate/logrotate.status
|
|
|
|
|
|
|
|
+
|
|
%pre
|
|
%pre
|
|
# If /var/lib/logrotate/logrotate.status does not exist, create it and copy
|
|
# If /var/lib/logrotate/logrotate.status does not exist, create it and copy
|
|
# the /var/lib/logrotate.status in it (if it exists). We have to do that in pre
|
|
# the /var/lib/logrotate.status in it (if it exists). We have to do that in pre
|
|
@@ -75,9 +83,11 @@ if [ ! -d %{_localstatedir}/lib/logrotate/ -a -f %{_localstatedir}/lib/logrotate
|
|
cp -a %{_localstatedir}/lib/logrotate.status %{_localstatedir}/lib/logrotate
|
|
cp -a %{_localstatedir}/lib/logrotate.status %{_localstatedir}/lib/logrotate
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
+
|
|
%clean
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
+
|
|
%files
|
|
%files
|
|
%defattr(-,root,root)
|
|
%defattr(-,root,root)
|
|
%{!?_licensedir:%global license %%doc}
|
|
%{!?_licensedir:%global license %%doc}
|
|
@@ -92,6 +102,9 @@ rm -rf $RPM_BUILD_ROOT
|
|
%attr(0644, root, root) %verify(not size md5 mtime) %config(noreplace) %{_localstatedir}/lib/logrotate/logrotate.status
|
|
%attr(0644, root, root) %verify(not size md5 mtime) %config(noreplace) %{_localstatedir}/lib/logrotate/logrotate.status
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Fri Jan 14 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.19.0-1
|
|
|
|
+- new upstream release.
|
|
|
|
+
|
|
* Fri Apr 10 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.16.0-1
|
|
* Fri Apr 10 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.16.0-1
|
|
- new upstream release.
|
|
- new upstream release.
|
|
|
|
|