new, version 0.3.8
[packages/apt-cacher-ng.git] / apt-cacher-ng.spec
CommitLineData
8c396a35
ER
1Summary: Caching HTTP download proxy for software packages
2Name: apt-cacher-ng
3Version: 0.3.8
4Release: 0.1
5License: Public domain
6Group: Development
7Source0: http://ftp.debian.org/debian/pool/main/a/apt-cacher-ng/%{name}_%version.orig.tar.gz
8# Source0-md5: d0d4b168c4b814c5ddaa6a8410610f07
9URL: http://www.unix-ag.uni-kl.de/~bloch/acng/
10BuildRequires: boost-devel
11#BuildRequires: bzlib-devel
12BuildRequires: libfuse-devel
13BuildRequires: libstdc++-devel
14BuildRequires: zlib-devel
15BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17%description
18Apt-Cacher NG is a caching HTTP download proxy for software packages,
19primarily for Debian/Ubuntu clients. It's partially based on concepts
20of Apt-Cacher but is rewritten with a main focus on performance and
21low resource usage.
22
23%prep
24%setup -q
25
26%build
27%{__make} all
28
29%install
30rm -rf $RPM_BUILD_ROOT
31install -d $RPM_BUILD_ROOT%{_sbindir} $RPM_BUILD_ROOT%{_libdir}/%{name} $RPM_BUILD_ROOT%{_mandir}/man8/
32install -d $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/ $RPM_BUILD_ROOT%{_sysconfdir}/xinetd.d
33install -p apt-cacher-ng $RPM_BUILD_ROOT%{_sbindir}/%{name}
34install -p acngfs $RPM_BUILD_ROOT%{_sbindir}/%{name}
35install -p in.acng expire-caller.pl distkill.pl $RPM_BUILD_ROOT%{_libdir}/%{name}
36cp -p doc/man/*.8 $RPM_BUILD_ROOT%{_mandir}/man8
37cp -a conf/{*mirror*,*.html,*.css} $RPM_BUILD_ROOT%{_libdir}/%{name}
38cp -a conf/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/
39cd $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/ && cp -s ../..%{_libdir}/%{name}/{*mirror*,*.html,*.css} . && cd -
40install -d $RPM_BUILD_ROOT/var/log/%{name}/
41
42cat <<EOF > $RPM_BUILD_ROOT%{_sysconfdir}/xinetd.d/%{name}
43# default: off
44# description: The %{name} server.
45service %{name}
46{
47 disable = yes
48 socket_type = stream
49 protocol = tcp
50 wait = no
51 user = root
52 nice = 10
53 rlimit_as = 16M
54 server = %{_sbindir}/in.acng
55 only_from = 127.0.0.1
56 server_args = -c %{_sysconfdir}/%{name}
57}
58EOF
59
60%clean
61rm -rf $RPM_BUILD_ROOT
62
63%files
64%defattr(644,root,root,755)
65%doc COPYING README TODO
66%{_sysconfdir}/%{name}/
67%{_sysconfdir}/xinetd.d/%{name}
68%attr(755,root,root) %{_sbindir}/%{name}
69%{_libdir}/%{name}/
70%{_mandir}/man8/*
71/var/log/%{name}/
This page took 0.097069 seconds and 4 git commands to generate.