apt-cron-vl.spec 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. Name: apt-cron
  2. Version: 0.1
  3. Release: 1%{?_dist_release}
  4. Vendor: Project Vine
  5. Distribution: Vine Linux
  6. License: GPL
  7. Group: Applications/Administration
  8. Source0: apt-cron.init
  9. Source1: apt-cron.cron
  10. Source2: apt-cron.logrotate
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildArch: noarch
  13. Requires: apt
  14. Prereq: chkconfig
  15. Summary: Daily apt update
  16. %description
  17. Enable daily run of apt update by cron or anacron.
  18. %prep
  19. %build
  20. %install
  21. %__rm -rf %{buildroot}
  22. %__mkdir_p %{buildroot}/etc/rc.d/init.d/
  23. %__install %{SOURCE0} %{buildroot}/etc/rc.d/init.d/apt-cron
  24. %__mkdir_p %{buildroot}/etc/cron.daily/
  25. %__install %{SOURCE1} %{buildroot}/etc/cron.daily/apt-cron
  26. %__mkdir_p %{buildroot}/etc/logrotate.d/
  27. %__install -m644 %{SOURCE2} %{buildroot}/etc/logrotate.d/apt-cron
  28. %clean
  29. %__rm -rf %{buildroot}
  30. %post
  31. /sbin/chkconfig --add apt-cron
  32. %preun
  33. if [ $1 = 0 ]; then
  34. /sbin/chkconfig --del apt-cron
  35. fi
  36. %files
  37. %defattr(-,root,root)
  38. /etc/rc.d/init.d/apt-cron
  39. /etc/cron.daily/apt-cron
  40. /etc/logrotate.d/apt-cron
  41. %changelog
  42. * Sun Sep 14 2008 Shu KONNO <owa@bg.wakwak.com> 0.1-1vl5
  43. - applied new versioning policy
  44. * Sun Jul 22 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.1-0vl2
  45. - changed Group to Applications/Administration
  46. * Fri Jun 18 2004 USAMI Kosuke <usami-k@yc5.so-net.ne.jp> - 0.1-0vl1
  47. - Initial build.