-
Notifications
You must be signed in to change notification settings - Fork 1
/
flexbackup.spec.template
96 lines (78 loc) · 2.99 KB
/
flexbackup.spec.template
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# Hey emacs, use -*-rpm-spec-*- mode...
%define version
Summary: Flexible backup script
Name: flexbackup
Version: %{version}
Release: 1
Epoch: 0
License: GPL
Group: Applications/Archiving
URL: http://www.flexbackup.org
Source0: flexbackup-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildArch: noarch
Packager: Edwin Huffstutler <edwinh+flexbackup@edwinh.org>
Requires: gzip
Requires: fileutils
Requires: findutils
#---------------------------------------------------------------------
%description
A flexible backup tool
Features:
o Easy to configure
o Uses dump, afio, GNU tar, cpio, star, pax, or zip archivers
o Full and numbered levels of incremental backup (acts like "dump")
o Compression and buffering options for all backup types
o Does remote filesystems (over rsh/ssh; no special service)
o Can backup only files not owned by rpm, or changed from rpm version
o Writes to tapes, on-disk archive files, or on-disk directory trees
o Keeps a table of contents so you know archives are on each tape
o Nice log files
#---------------------------------------------------------------------
%prep
%setup -q
#---------------------------------------------------------------------
%build
make all PREFIX=/usr CONFFILE=/etc/flexbackup.conf
#---------------------------------------------------------------------
%install
rm -rf %{buildroot}
mkdir -p $RPM_BUILD_ROOT/etc
mkdir -p $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man5
mkdir -p $RPM_BUILD_ROOT/var/lib/flexbackup
mkdir -p $RPM_BUILD_ROOT/var/log/flexbackup
make install PREFIX=$RPM_BUILD_ROOT/usr CONFFILE=$RPM_BUILD_ROOT/etc/flexbackup.conf
#---------------------------------------------------------------------
%clean
rm -rf %{buildroot}
#---------------------------------------------------------------------
%files
%defattr(-,root,root,-)
%config(noreplace) /etc/flexbackup.conf
%{_bindir}/*
%{_mandir}/*/*
%dir /var/lib/flexbackup
%dir /var/log/flexbackup
%doc CHANGES COPYING TODO README CREDITS INSTALL faq.html
#---------------------------------------------------------------------
%changelog
* Tue Sep 23 2003 Edwin Huffstutler <edwinh@computer.org>
- cleanup spec a bit
* Tue Jul 29 2003 Edwin Huffstutler <edwinh@hercules.my-net>
- add manpages, tweak a bit
* Thu Jul 3 2003 Edwin Huffstutler <edwinh@hercules.my-net>
- update description
* Tue Feb 18 2003 Edwin Huffstutler <edwinh@hercules.my-net>
- config file is noreplace
* Wed Jan 15 2003 Edwin Huffstutler <edwinh+flexbackup@edwinh.org>
- defattr in right spot
* Sun Jan 12 2003 Edwin Huffstutler <edwinh+flexbackup@edwinh.org>
- updated
* Sat Sep 25 1999 Edwin Huffstutler <edwinh+flexbackup@edwinh.org>
- add more requires, update description, email address.
- really goes in /usr/bin since it needs perl anyway --
if you only have your root fs, run restore or tar by hand :)
* Sat Sep 18 1999 Edwin Huffstutler <edwinh+flexbackup@edwinh.org>
- initial rpm package