]> git.pld-linux.org Git - packages/BackupPC.git/blame - BackupPC.spec
- new
[packages/BackupPC.git] / BackupPC.spec
CommitLineData
e53e588a
AM
1%include /usr/lib/rpm/macros.perl
2Summary: A high-performance, enterprise-grade system for backing up PCs
3Name: backuppc
4Version: 2.0.2
5Release: 1
6License: GPL
7Group: Networking/Utilities
8Source0: http://dl.sourceforge.net/backuppc/BackupPC-%{version}.tar.gz
9# Source0-md5: d60aacbf46eb83a7e4ffbbe9e4f72c11
10Patch0: %{name}-debian.patch
11URL: http://backuppc.sourceforge.net/
12BuildRequires: perl >= 5.6.0
13BuildRequires: perl-devel
14BuildRequires: perl-Digest-MD5
15BuildRequires: perl-Compress-Zlib
16BuildRequires: fakeroot
17Requires: tar > 1.13
18Requires: samba-clients
19Requires: webserver
20Requires: sperl
21BuildArch: noarch
22Obsoletes: BackupPC
23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25%description
26BackupPC is disk based and not tape based. This particularity allows
27features not found in any other backup solution:
28 * Clever pooling scheme minimizes disk storage and disk I/O.
29 Identical files across multiple backups of the same or different PC are
30 stored only once (using hard links), resulting in substantial savings
31 in disk storage and disk writes.
32 * Optional compression provides additional reductions in storage.
33 CPU impact of compression is low since only new files (those not already
34 in the pool) need to be compressed.
35 * A powerful http/cgi user interface allows administrators to view log files,
36 configuration, current status and allows users to initiate and cancel
37 backups and browse and restore files from backups very quickly.
38 * No client-side software is needed. On WinXX the smb protocol is used.
39 On linux or unix clients, rsync or tar (over ssh/rsh/nfs) can be used
40 * Flexible restore options. Single files can be downloaded from any backup
41 directly from the CGI interface. Zip or Tar archives for selected files
42 or directories can also be downloaded from the CGI interface.
43 * BackupPC supports mobile environments where laptops are only intermittently
44 connected to the network and have dynamic IP addresses (DHCP).
45 * Flexible configuration parameters allow multiple backups to be performed
46 in parallel.
47 * and more to discover in the manual...
48
49%prep
50%setup -q -n BackupPC-%{version}
51%patch0 -p1
52
53%install
54rm -rf $RPM_BUILD_ROOT
55install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,backuppc,httpd/httpd.conf}
56
57echo "y" | \
58fakeroot DEBIANDEST=$RPM_BUILD_ROOT %{__perl} configure.pl
59
60pod2man --section=8 --center="BackupPC manual" doc/BackupPC.pod backuppc.8
61perl -e "s/.IX Title.*/.SH NAME\nbackuppc \\- BackupPC manual/g" -p -i.tmp backuppc.8
62rm -f $RPM_BUILD_ROOT/usr/share/backuppc/doc/*
63mv -f $RPM_BUILD_ROOT/var/lib/backuppc/conf/* $RPM_BUILD_ROOT/etc/backuppc
64mv -f $RPM_BUILD_ROOT/usr/share/backuppc/cgi-bin/* $RPM_BUILD_ROOT/usr/share/backuppc/cgi-bin/index.cgi
65install --mode=644 conf/hosts $RPM_BUILD_ROOT/etc/backuppc
66install --mode=644 debian/localhost.pl $RPM_BUILD_ROOT/etc/backuppc
67install --mode=644 debian/apache.conf $RPM_BUILD_ROOT/etc/httpd/httpd.conf/93_backuppc.conf
68rmdir $RPM_BUILD_ROOT/var/lib/backuppc/conf/
69mkdir $RPM_BUILD_ROOT/var/lib/backuppc/pc/localhost/
70(cd $RPM_BUILD_ROOT/usr/share/backuppc/cgi-bin; ln -s ../image)
71
72%clean
73rm -rf $RPM_BUILD_ROOT
74
75%files
76%defattr(644,root,root,755)
77%doc doc/*.html
78%attr(750,root,root) %dir %{_var}/backuppc
79%attr(750,root,root) %dir %{_sysconfdir}/backuppc
80%config(noreplace) %verify(not md5 size mtime) %attr(640,root,root) %{_sysconfdir}/backuppc/*
81%attr(755,root,root) %{_bindir}/*
82%{_mandir}/man?/*
This page took 0.086834 seconds and 4 git commands to generate.