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