]> git.pld-linux.org Git - packages/ganeti-p2v-transfer.git/blame - ganeti-p2v-transfer.spec
- rel 1
[packages/ganeti-p2v-transfer.git] / ganeti-p2v-transfer.spec
CommitLineData
be406dcf
JR
1Summary: Tool for converting a physical computer into a Ganeti instance
2Name: ganeti-p2v-transfer
3Version: 0.1
5a80a011 4Release: 1
be406dcf
JR
5License: GPL v2
6Group: Applications/System
7Source0: https://ganeti.googlecode.com/files/%{name}-%{version}.tar.gz
8# Source0-md5: c0333098304fa1868ffcaa82a942eba0
9Patch0: DESTDIR.patch
5bbfc9f6 10Patch1: kpartx-sync.patch
be406dcf
JR
11URL: https://code.google.com/p/ganeti/
12BuildRequires: autoconf
13BuildRequires: automake
14BuildRequires: docutils
15BuildRequires: rpmbuild(macros) >= 1.647
fea56389
JR
16Requires: blockdev
17Requires: coreutils
18Requires: dump
19Requires: e2fsprogs
be406dcf 20Requires: ganeti
fea56389
JR
21Requires: kpartx
22Requires: losetup
be406dcf 23Requires: mawk
fea56389
JR
24Requires: mount
25Requires: sed
be406dcf 26Requires: tar
fea56389 27Requires: util-linux
be406dcf
JR
28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30%description
31This is a tool for converting a physical computer into a ganeti
32instance. It consists of two parts, a ganeti instance OS template that
33allows the instance to be booted to receive the files, and a script
34that is run on the source machine to make the transfer.
35
36A design document is available in doc/design.rst that describes the
37functioning of the system. This document will focus on getting the
38system up and running, and the process for actually performing
39physical-to-virtual transfers.
40
41%package source
42Summary: Source system transfer script.
43Group: Applications/System
44
45%description source
46This script is run from the transfer OS to establish an SSH connection
47with the bootstrap OS, mount the source filesystem(s), and copy
48the data over to the target. It will prompt the user for credentials
49as necessary to gain access to the bootstrap OS.
50
51%prep
52%setup -q
53%patch0 -p1
5bbfc9f6 54%patch1 -p1
be406dcf
JR
55
56%build
57%{__aclocal}
58%{__autoconf}
59%{__automake}
60%configure
61%{__make}
62
63%install
64rm -rf $RPM_BUILD_ROOT
65
66%{__make} install-source install-target \
67 DESTDIR=$RPM_BUILD_ROOT
68
4963261e
JR
69
70%{__mv} $RPM_BUILD_ROOT%{_datadir}/ganeti/os/p2v-target/variants.list $RPM_BUILD_ROOT%{_sysconfdir}/ganeti/instance-p2v-target
71ln -s %{_sysconfdir}/ganeti/instance-p2v-target//variants.list $RPM_BUILD_ROOT%{_datadir}/ganeti/os/p2v-target/variants.list
72
be406dcf
JR
73%{__rm} -r $RPM_BUILD_ROOT/%{_docdir}/%{name}
74
75%clean
76rm -rf $RPM_BUILD_ROOT
77
78%files
79%defattr(644,root,root,755)
80%doc NEWS README* doc/design.* doc/instance-p2v-target.*
81%dir %{_sysconfdir}/ganeti/instance-p2v-target
82%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ganeti/instance-p2v-target/p2v-target.conf
83%dir %{_sysconfdir}/ganeti/instance-p2v-target/fixes
84%attr(755,root,root) %{_sysconfdir}/ganeti/instance-p2v-target/fixes/10_fix_fstab
85%attr(755,root,root) %{_sysconfdir}/ganeti/instance-p2v-target/fixes/20_remove_persistent_rules
86%attr(755,root,root) %{_sysconfdir}/ganeti/instance-p2v-target/fixes/30_add_console_inittab
87%attr(755,root,root) %{_sysconfdir}/ganeti/instance-p2v-target/fixes/30_add_console_upstart
88%attr(755,root,root) %{_sysconfdir}/ganeti/instance-p2v-target/fixes/40_copy_hostname
89%dir %{_sysconfdir}/ganeti/instance-p2v-target/fixes/fixlib
90%{_sysconfdir}/ganeti/instance-p2v-target/fixes/fixlib/*.py*
91%dir %{_sysconfdir}/ganeti/instance-p2v-target/hooks
92%attr(755,root,root) %{_sysconfdir}/ganeti/instance-p2v-target/hooks/clear-root-password
93%attr(755,root,root) %{_sysconfdir}/ganeti/instance-p2v-target/hooks/install-fixes
94%attr(755,root,root) %{_sysconfdir}/ganeti/instance-p2v-target/hooks/interfaces
95%attr(755,root,root) %{_sysconfdir}/ganeti/instance-p2v-target/hooks/ramboot
96%attr(755,root,root) %{_sysconfdir}/ganeti/instance-p2v-target/hooks/xen-hvc0
97%dir %{_sysconfdir}/ganeti/instance-p2v-target/variants
98%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ganeti/instance-p2v-target/variants/default.conf
4963261e 99%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ganeti/instance-p2v-target/variants.list
be406dcf
JR
100%dir %{_datadir}/ganeti/os/p2v-target
101%{_datadir}/ganeti/os/p2v-target/common.sh
102%attr(755,root,root) %{_datadir}/ganeti/os/p2v-target/create
103%attr(755,root,root) %{_datadir}/ganeti/os/p2v-target/export
104%{_datadir}/ganeti/os/p2v-target/ganeti_api_version
105%attr(755,root,root) %{_datadir}/ganeti/os/p2v-target/import
106%attr(755,root,root) %{_datadir}/ganeti/os/p2v-target/rename
107%{_datadir}/ganeti/os/p2v-target/variants.list
108%attr(755,root,root) %{_sbindir}/make_ramboot_initrd.py
109
110%files source
111%defattr(644,root,root,755)
112%attr(755,root,root) %{_sbindir}/p2v_transfer.py
This page took 0.107152 seconds and 4 git commands to generate.