forked from allanjude/zxfer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
zxfer.spec
executable file
·77 lines (63 loc) · 2.31 KB
/
zxfer.spec
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
Name: zxfer
Version: 1.2.0
Release: 2%{?dist}
License: see COPYING
Group: External packages
URL: https://github.com/allanjude/zxfer/
# master version
#Source: https://github.com/allanjude/zxfer/archive/master.zip
# release version
#https://github.com/allanjude/zxfer/archive/%{version}.gz
Source: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{pkg}-%{version}
Requires: zfs /bin/sh /usr/bin/cat /usr/bin/rsync /usr/bin/gawk
Summary: zxfer: transfer ZFS filesystems, snapshots, properties, files and directories
BuildArch: noarch
%description
A continuation of development on zxfer, a popular script for managing ZFS
snapshot replication
The Original author seems to have abandoned the project, there have been no
updates since May 2011 and the script fails to work correctly in FreeBSD
versions after 8.2 and 9.0 due to new ZFS properties.
For now, most of the documentation will reside at the original page, until
someone reorganizes it.
Original Project Home: http://code.google.com/p/zxfer/
...
transfer ZFS filesystems, snapshots, properties, files and directories
Zxfer is a fork of Constantin Gonzalez's zfs-replicate, with many additional
features (80%+ of code is new). In a nutshell, the aim of zxfer is to make
backups, restores and transfers on ZFS filesystems able to be done with a
single command, while having similar end-to-end assurance of data integrity as
the ZFS filesystem itself.
...
%prep
# master version
#%setup -q -n %{name}-master
# release version
%setup -q -n %{name}-%{version}
%install
rm -rf ${RPM_BUILD_ROOT}
mkdir -p \
${RPM_BUILD_ROOT}%{_bindir} \
${RPM_BUILD_ROOT}%{_mandir}/man8 \
${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version}
install -m0644 zxfer.8 \
${RPM_BUILD_ROOT}%{_mandir}/man8
install -m0644 CHANGELOG.txt COPYING README.md README.txt \
${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version}
install -m0755 zxfer ${RPM_BUILD_ROOT}%{_bindir}
%clean
rm -rf %{buildroot}
%files
%{_bindir}/zxfer
%doc
%{_docdir}/%{name}-%{version}/CHANGELOG.txt
%{_docdir}/%{name}-%{version}/COPYING
%{_docdir}/%{name}-%{version}/README.md
%{_docdir}/%{name}-%{version}/README.txt
%{_mandir}/man8/zxfer.8.gz
%changelog
* Wed Jul 19 2017 Tru Huynh <tru@pasteur.fr> - 1.1.6-2
- add Requires for: cat rsync gawk
* Wed Jul 19 2017 Tru Huynh <tru@pasteur.fr> - 1.1.6-1
- initial version