Rev | Line | |
---|
[521] | 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 | |
---|
| 17 | %description |
---|
| 18 | Enable daily run of apt update by cron or anacron. |
---|
| 19 | |
---|
| 20 | %prep |
---|
| 21 | |
---|
| 22 | %build |
---|
| 23 | |
---|
| 24 | %install |
---|
| 25 | %__rm -rf %{buildroot} |
---|
| 26 | %__mkdir_p %{buildroot}/etc/rc.d/init.d/ |
---|
| 27 | %__install %{SOURCE0} %{buildroot}/etc/rc.d/init.d/apt-cron |
---|
| 28 | %__mkdir_p %{buildroot}/etc/cron.daily/ |
---|
| 29 | %__install %{SOURCE1} %{buildroot}/etc/cron.daily/apt-cron |
---|
| 30 | %__mkdir_p %{buildroot}/etc/logrotate.d/ |
---|
| 31 | %__install -m644 %{SOURCE2} %{buildroot}/etc/logrotate.d/apt-cron |
---|
| 32 | |
---|
| 33 | %clean |
---|
| 34 | %__rm -rf %{buildroot} |
---|
| 35 | |
---|
| 36 | %post |
---|
| 37 | /sbin/chkconfig --add apt-cron |
---|
| 38 | |
---|
| 39 | %preun |
---|
| 40 | if [ $1 = 0 ]; then |
---|
| 41 | /sbin/chkconfig --del apt-cron |
---|
| 42 | fi |
---|
| 43 | |
---|
| 44 | %files |
---|
| 45 | %defattr(-,root,root) |
---|
| 46 | /etc/rc.d/init.d/apt-cron |
---|
| 47 | /etc/cron.daily/apt-cron |
---|
| 48 | /etc/logrotate.d/apt-cron |
---|
| 49 | |
---|
| 50 | %changelog |
---|
| 51 | * Sun Sep 14 2008 Shu KONNO <owa@bg.wakwak.com> 0.1-1vl5 |
---|
| 52 | - applied new versioning policy |
---|
| 53 | |
---|
| 54 | * Sun Jul 22 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.1-0vl2 |
---|
| 55 | - changed Group to Applications/Administration |
---|
| 56 | |
---|
| 57 | * Fri Jun 18 2004 USAMI Kosuke <usami-k@yc5.so-net.ne.jp> - 0.1-0vl1 |
---|
| 58 | - Initial build. |
---|
| 59 | |
---|
Note: See
TracBrowser
for help on using the repository browser.