move xinetd config to separate file
[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
ef82c9f3 9Source1: %{name}.xinetd
8c396a35
ER
10URL: http://www.unix-ag.uni-kl.de/~bloch/acng/
11BuildRequires: boost-devel
12#BuildRequires: bzlib-devel
13BuildRequires: libfuse-devel
14BuildRequires: libstdc++-devel
171d0a94
ER
15BuildRequires: tar >= 1:1.22
16BuildRequires: xz
8c396a35
ER
17BuildRequires: zlib-devel
18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20%description
21Apt-Cacher NG is a caching HTTP download proxy for software packages,
22primarily for Debian/Ubuntu clients. It's partially based on concepts
23of Apt-Cacher but is rewritten with a main focus on performance and
24low resource usage.
25
26%prep
27%setup -q
28
29%build
171d0a94 30%{__make}
8c396a35
ER
31
32%install
33rm -rf $RPM_BUILD_ROOT
ef82c9f3 34install -d $RPM_BUILD_ROOT{%{_sbindir},%{_libdir}/%{name},%{_mandir}/man8,%{_sysconfdir}/xinetd.d,%{_sysconfdir}/%{name},/var/log/%{name}}
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}/
ef82c9f3
ER
42cd $RPM_BUILD_ROOT%{_sysconfdir}/%{name} && cp -s ../..%{_libdir}/%{name}/{*mirror*,*.html,*.css} . && cd -
43cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/xinetd.d/%{name}
8c396a35
ER
44
45%clean
46rm -rf $RPM_BUILD_ROOT
47
48%files
49%defattr(644,root,root,755)
171d0a94
ER
50%doc README TODO INSTALL*
51%dir %{_sysconfdir}/%{name}
52%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*
53%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xinetd.d/%{name}
8c396a35 54%attr(755,root,root) %{_sbindir}/%{name}
171d0a94
ER
55%{_libdir}/%{name}
56%{_mandir}/man8/acngfs.8*
57%{_mandir}/man8/apt-cacher-ng.8*
58%dir /var/log/%{name}
This page took 0.169292 seconds and 4 git commands to generate.