forked from davidhrbac/specs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hrb-mirror.spec
45 lines (36 loc) · 1.12 KB
/
hrb-mirror.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Summary: Script to mirror hrb repositories
Name: hrb-mirror
Version: 0.1.2
Release: 1%{?dist}
License: GPL
Group: System Environment/Base
URL: http://www.hrbac.cz/repository.htm
Requires: /usr/bin/flock
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
%description
Script to mirror hrb repositories.
%prep
%{__cat} <<EOF >hrb.cron
#Script to mirror hrb repositories
#rsync --delete-delay --delay-updates --delete -a 158.196.128.251::hrb/ /var/www/html/hrb33/
/usr/bin/flock -w 60 /var/lock/EUAK1qEPB3SM /usr/bin/rsync -qai4CH --safe-links --delay-updates --delete repository.vsb.cz::hrb /var/www/html/hrb33/
EOF
%build
%install
%{__rm} -rf %{buildroot}
%{__install} -Dp -m0755 hrb.cron %{buildroot}%{_sysconfdir}/cron.hourly/hrb33
%clean
%{__rm} -rf %{buildroot}
%post
%files
%defattr(-, root, root, 0755)
%config %{_sysconfdir}/cron.hourly/hrb33
%changelog
* Mon May 07 2012 David Hrbáč <[email protected]> - 0.1.2-1
- better flock requirement
* Thu May 03 2012 David Hrbáč <[email protected]> - 0.1.1-1
- new quiet version
- added flock
* Thu Nov 12 2009 David Hrbáč <[email protected]> - 0.1-1
- Initial package.