1 Summary: Utility to save partitions in a compressed image file
2 Summary(pl.UTF-8): Narzędzie do zapisu partycji w skompresowanych plikach
3 Summary(pt_BR.UTF-8): Ferramenta para criar e restaurar backup de partições
8 Group: Applications/System
9 Source0: http://downloads.sourceforge.net/partimage/%{name}-%{version}.tar.bz2
10 # Source0-md5: 1bc046fd915c5debbafc85729464e513
11 Source1: %{name}d.init
12 Source2: %{name}d.sysconfig
14 Source4: %{name}d-ssl.cnf
15 Patch0: %{name}-fix_debug.patch
16 Patch1: %{name}-descr.patch
17 Patch2: %{name}-gzFile.patch
18 Patch3: 02-openssl.patch
19 Patch4: 03-openssl11.patch
21 URL: http://www.partimage.org/
22 BuildRequires: autoconf
23 BuildRequires: automake
24 BuildRequires: bzip2-devel
25 BuildRequires: gettext-tools
26 BuildRequires: libstdc++-devel
27 BuildRequires: libtool
28 BuildRequires: newt-devel
29 BuildRequires: openssl-devel
30 BuildRequires: pam-devel
31 BuildRequires: rpmbuild(macros) >= 1.202
32 BuildRequires: slang-devel >= 2.0.0
33 BuildRequires: zlib-devel
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 Linux/UNIX utility to save partitions in a compressed image file
38 Partition Image is a Linux/UNIX partition imaging utility: it saves
41 - Ext2FS (the Linux standard)
42 - ReiserFS (a new, powerful journalling file system)
43 - NTFS (Windows NT File System)
44 - FAT16/32 (DOS & Windows file systems)
45 - HPFS (OS/2 File System)
46 - JFS (IBM Jounalized File System for AIX)
47 - XFS (SGI Jounalized File System for IRIX)
48 - HFS (Hierarchical File System for MacOS)
49 - UFS (*BSD, Solaris and NextStep file systems)
51 file system formats to an image file. Only used blocks are copied. The
52 image file can be compressed in the GZIP/BZIP2 formats to save disk
53 space, and splitted into multiple files to be copied on amovibles
54 floppies (ZIP for example), or burned on a CD-R ... This allows to
55 save a full Linux/Windows system, with an only operation. When
56 problems (viruses, crash, error, ...), you just have to restore, and
57 after several minutes, all your system is restored (boot, files, ...),
58 and fully working. This is very useful when installing the same
59 software on many machines: just install one of them, create an image,
60 and just restore the image on all other machines. Then, after the
61 first one, each installation is automatically made, and only require a
64 %description -l pl.UTF-8
65 Narzędzie linuksowe do zapisywania partycji w skompresowanych plikach.
66 Potrafi ono zapisywać partycje:
67 - Ext2FS (linuksowy standard),
68 - ReiserFS (nowy, potężny system plików z journalem),
69 - NTFS (system plików Windows NT),
70 - FAT16/32 (system plików DOS i Windows),
71 - HPFS (system plików OS/2),
72 - XFS (system plików z journalem IBM-a dla AIX),
73 - JFS (system plików z journalem SGI dla IRIX-a),
74 - HFS (hierarchiczny system plików dla MacOS),
75 - UFS (system plików *BSD, Solarisa oraz NextStepa).
77 Kopiowane sątylko używane bloki. Plik wyjściowy może być podzielony na
78 wiele mniejszych oraz kompresowany w formacie gzip/bzip2 w celu
79 zaoszczędzenia miejsca. Pozwala to na zapis całego systemu
80 Linux/Windows w pojedynczej operacji. W razie problemów (wirusy,
81 błędy, awaria...) należy po prostu przywrócić system i po kilku
82 minutach całość jest znowu sprawna. Jest to bardzo użyteczne przy
83 instalowaniu tego samego na wielu maszynach: wystarczy zainstalować na
84 jednej z nich, zrobić obraz i przywrócić na pozostałych maszynach. Po
85 pierwszej instalacji każda następna wymaga tylko kilku minut.
88 Summary: Partimage server
89 Summary(pl.UTF-8): Serwer Partimage
90 Group: Applications/System
91 Requires(post,preun): /sbin/chkconfig
92 Requires(postun): /usr/sbin/groupdel
93 Requires(postun): /usr/sbin/userdel
94 Requires(pre): /bin/id
95 Requires(pre): /usr/bin/getgid
96 Requires(pre): /usr/sbin/groupadd
97 Requires(pre): /usr/sbin/useradd
98 Requires: %{name} = %{version}-%{release}
99 Requires: openssl-tools
100 Provides: group(partimag)
101 Provides: user(partimag)
104 Server for Partimage.
106 %description server -l pl.UTF-8
107 Server dla Partimage.
124 --disable-silent-rules \
130 rm -rf $RPM_BUILD_ROOT
131 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/{partimaged,pam.d},/etc/rc.d/init.d,/etc/sysconfig,/var/spool/partimage}
133 %{__make} -C src install \
134 sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir} \
135 DESTDIR=$RPM_BUILD_ROOT
137 %{__make} -C po install \
138 DESTDIR=$RPM_BUILD_ROOT
140 cat > $RPM_BUILD_ROOT%{_sysconfdir}/partimaged/partimagedusers << EOF
141 #note, '#' intruduces comments
142 #add only users allowed to connect to partimaged
143 # (only one login per line)
145 #joe # user 'joe' is allowed to connect to partimaged
148 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/partimaged
149 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/partimaged
150 install %{SOURCE3} $RPM_BUILD_ROOT/etc/pam.d/partimaged
151 install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/partimaged/partimaged.cnf
153 touch $RPM_BUILD_ROOT%{_sysconfdir}/partimaged/partimaged.{csr,cert,key}
158 rm -rf $RPM_BUILD_ROOT
161 %groupadd -P %{name}-server -g 98 partimag
162 %useradd -P %{name}-server -u 98 -d %{_sysconfdir}/partimaged -s /bin/false -c "Partimage server" -g partimag partimag
165 /sbin/chkconfig --add partimaged
166 if [ ! -s /etc/partimaged/partimaged.key -o ! -s /etc/partimaged/partimaged.cert ]; then
167 echo "Run \"/etc/rc.d/init.d/partimaged init\" to create self-signed SSL certificate." >&2
170 if [ -f /var/lock/subsys/partimaged ]; then
171 /etc/rc.d/init.d/partimaged restart >&2
173 echo "Run \"/etc/rc.d/init.d/partimaged start\" to start partimage server." >&2
179 if [ "$1" = "0" ]; then
180 if [ -f /var/lock/subsys/partimaged ]; then
181 /etc/rc.d/init.d/partimaged stop >&2
183 /sbin/chkconfig --del partimaged
187 if [ "$1" = "0" ]; then
189 %groupremove partimag
192 %files -f %{name}.lang
193 %defattr(644,root,root,755)
194 %doc AUTHORS ChangeLog README* THANKS BUGS
195 %attr(755,root,root) %{_sbindir}/partimage
198 %defattr(644,root,root,755)
199 %doc README.partimaged
200 %attr(755,root,root) %{_sbindir}/partimaged
201 %attr(754,root,root) /etc/rc.d/init.d/partimaged
202 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/partimaged
203 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/partimaged
204 %dir %{_sysconfdir}/partimaged
205 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/partimaged/partimaged.cnf
206 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/partimaged/partimaged.csr
207 %attr(600,partimag,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/partimaged/partimaged.key
208 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/partimaged/partimaged.cert
209 %attr(600,partimag,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/partimaged/partimagedusers
210 %attr(700,partimag,root) %dir /var/spool/partimage