-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcached.spec
38 lines (38 loc) · 983 Bytes
/
cached.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
Summary: Cached daemon
Name: cached
Version: 0.4
Release: 1
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-build
License: GPL
Group: Web/Tools
requires: mysql
requires: gamin
requires: curl
requires: nginx
%description
Cached1 - daemon for cacheing big files from backend to frontend
%prep
%setup -q
mkdir -p %buildroot/usr/bin
mkdir -p %buildroot/etc/cached
mkdir -p %buildroot/etc/init.d
mkdir -p %buildroot/etc/logrotate.d
mkdir -p %buildroot/var/log/cached
mkdir -p %buildroot/var/lock/cached
%build
cd %{_builddir}/%{name}-%{version}/build
make all
%install
cd %{_builddir}/%{name}-%{version}/build
make DESTDIR=%buildroot install
%files
%defattr(-,_nginx,_nginx)
%{_bindir}/%{name}
%dir %{_sysconfdir}/cached
%dir /var/log/cached
%dir /var/lock/cached
%{_sysconfdir}/init.d/cached
%{_sysconfdir}/logrotate.d/cached.logrotate
%config(noreplace) %{_sysconfdir}/cached/cachedc.conf
~