]>
Commit | Line | Data |
---|---|---|
40d01b54 | 1 | Summary: Utility to save partitions in a compressed image file |
c9c21b3f ER |
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 | |
40d01b54 | 4 | Name: partimage |
59750c19 | 5 | Version: 0.6.9 |
d6d1d315 | 6 | Release: 3 |
2a6fc7ed | 7 | License: GPL v2 |
40d01b54 | 8 | Group: Applications/System |
59750c19 | 9 | Source0: http://downloads.sourceforge.net/partimage/%{name}-%{version}.tar.bz2 |
10 | # Source0-md5: 1bc046fd915c5debbafc85729464e513 | |
545db503 | 11 | Source1: %{name}d.init |
383e4731 | 12 | Source2: %{name}d.sysconfig |
b3c03060 AM |
13 | Source3: %{name}d.pam |
14 | Source4: %{name}d-ssl.cnf | |
06b9749c | 15 | Patch0: %{name}-fix_debug.patch |
16 | Patch1: %{name}-descr.patch | |
430086f7 | 17 | Patch2: %{name}-gzFile.patch |
40d01b54 | 18 | URL: http://www.partimage.org/ |
06a290ed | 19 | BuildRequires: automake |
646a6157 | 20 | BuildRequires: bzip2-devel |
40d01b54 | 21 | BuildRequires: gettext-devel |
11675dc3 | 22 | BuildRequires: libstdc++-devel |
646a6157 | 23 | BuildRequires: newt-devel |
78b2a421 JB |
24 | BuildRequires: openssl-devel |
25 | BuildRequires: pam-devel | |
3213488f | 26 | BuildRequires: rpmbuild(macros) >= 1.202 |
b20ebcbf | 27 | BuildRequires: slang-devel >= 2.0.0 |
646a6157 | 28 | BuildRequires: zlib-devel |
40d01b54 AM |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
30 | ||
31 | %description | |
32 | Linux/UNIX utility to save partitions in a compressed image file | |
33 | Partition Image is a Linux/UNIX partition imaging utility: it saves | |
545db503 | 34 | partitions in the: |
35 | ||
2a6fc7ed | 36 | - Ext2FS (the Linux standard) |
545db503 | 37 | - ReiserFS (a new, powerful journalling file system) |
2a6fc7ed | 38 | - NTFS (Windows NT File System) |
545db503 | 39 | - FAT16/32 (DOS & Windows file systems) |
2a6fc7ed | 40 | - HPFS (OS/2 File System) |
41 | - JFS (IBM Jounalized File System for AIX) | |
42 | - XFS (SGI Jounalized File System for IRIX) | |
43 | - HFS (Hierarchical File System for MacOS) | |
44 | - UFS (*BSD, Solaris and NextStep file systems) | |
45 | ||
46 | file system formats to an image file. Only used blocks are copied. The | |
47 | image file can be compressed in the GZIP/BZIP2 formats to save disk | |
48 | space, and splitted into multiple files to be copied on amovibles | |
49 | floppies (ZIP for example), or burned on a CD-R ... This allows to | |
50 | save a full Linux/Windows system, with an only operation. When | |
545db503 | 51 | problems (viruses, crash, error, ...), you just have to restore, and |
52 | after several minutes, all your system is restored (boot, files, ...), | |
53 | and fully working. This is very useful when installing the same | |
54 | software on many machines: just install one of them, create an image, | |
55 | and just restore the image on all other machines. Then, after the | |
2a6fc7ed | 56 | first one, each installation is automatically made, and only require a |
57 | few minutes. | |
40d01b54 | 58 | |
2003c3f5 JR |
59 | %description -l pl.UTF-8 |
60 | Narzędzie linuksowe do zapisywania partycji w skompresowanych plikach. | |
59750c19 | 61 | Potrafi ono zapisywać partycje: |
8c61dbe6 | 62 | - Ext2FS (linuksowy standard), |
2003c3f5 JR |
63 | - ReiserFS (nowy, potężny system plików z journalem), |
64 | - NTFS (system plików Windows NT), | |
65 | - FAT16/32 (system plików DOS i Windows), | |
66 | - HPFS (system plików OS/2), | |
67 | - XFS (system plików z journalem IBM-a dla AIX), | |
68 | - JFS (system plików z journalem SGI dla IRIX-a), | |
69 | - HFS (hierarchiczny system plików dla MacOS), | |
59750c19 | 70 | - UFS (system plików *BSD, Solarisa oraz NextStepa). |
71 | ||
72 | Kopiowane sątylko używane bloki. Plik wyjściowy może być podzielony na | |
73 | wiele mniejszych oraz kompresowany w formacie gzip/bzip2 w celu | |
74 | zaoszczędzenia miejsca. Pozwala to na zapis całego systemu | |
75 | Linux/Windows w pojedynczej operacji. W razie problemów (wirusy, | |
76 | błędy, awaria...) należy po prostu przywrócić system i po kilku | |
77 | minutach całość jest znowu sprawna. Jest to bardzo użyteczne przy | |
78 | instalowaniu tego samego na wielu maszynach: wystarczy zainstalować na | |
79 | jednej z nich, zrobić obraz i przywrócić na pozostałych maszynach. Po | |
80 | pierwszej instalacji każda następna wymaga tylko kilku minut. | |
545db503 | 81 | |
82 | %package server | |
83 | Summary: Partimage server | |
c9c21b3f | 84 | Summary(pl.UTF-8): Serwer Partimage |
545db503 | 85 | Group: Applications/System |
599f2514 ER |
86 | Requires(post,preun): /sbin/chkconfig |
87 | Requires(postun): /usr/sbin/groupdel | |
88 | Requires(postun): /usr/sbin/userdel | |
ffa238aa | 89 | Requires(pre): /bin/id |
6375c8ce | 90 | Requires(pre): /usr/bin/getgid |
ffa238aa JB |
91 | Requires(pre): /usr/sbin/groupadd |
92 | Requires(pre): /usr/sbin/useradd | |
599f2514 | 93 | Requires: %{name} = %{version}-%{release} |
b3c03060 | 94 | Requires: openssl-tools |
6375c8ce | 95 | Provides: group(partimag) |
96 | Provides: user(partimag) | |
545db503 | 97 | |
98 | %description server | |
d6ad0ef6 | 99 | Server for Partimage. |
545db503 | 100 | |
2003c3f5 | 101 | %description server -l pl.UTF-8 |
8eb649f2 | 102 | Server dla Partimage. |
40d01b54 AM |
103 | |
104 | %prep | |
db0109ab | 105 | %setup -q |
aebf3f1e | 106 | %patch0 -p1 |
39d9b4fc | 107 | %patch1 -p1 |
430086f7 | 108 | %patch2 -p1 |
40d01b54 AM |
109 | |
110 | %build | |
06a290ed | 111 | cp -f /usr/share/automake/config.sub . |
27347b52 | 112 | rm -f po/stamp-po |
40d01b54 | 113 | %configure \ |
d6d1d315 | 114 | --disable-silent-rules \ |
b3c03060 AM |
115 | --enable-pam \ |
116 | --enable-ssl | |
40d01b54 AM |
117 | %{__make} |
118 | ||
119 | %install | |
120 | rm -rf $RPM_BUILD_ROOT | |
b3c03060 | 121 | install -d $RPM_BUILD_ROOT{%{_sysconfdir}/{partimaged,pam.d},/etc/rc.d/init.d,/etc/sysconfig,/var/spool/partimage} |
40d01b54 | 122 | |
2a6fc7ed | 123 | %{__make} -C src install \ |
545db503 | 124 | sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir} \ |
2a6fc7ed | 125 | DESTDIR=$RPM_BUILD_ROOT |
40d01b54 | 126 | |
2a6fc7ed | 127 | %{__make} -C po install \ |
128 | DESTDIR=$RPM_BUILD_ROOT | |
40d01b54 | 129 | |
ffa238aa | 130 | cat > $RPM_BUILD_ROOT%{_sysconfdir}/partimaged/partimagedusers << EOF |
545db503 | 131 | #note, '#' intruduces comments |
132 | #add only users allowed to connect to partimaged | |
133 | # (only one login per line) | |
134 | ||
59750c19 | 135 | #joe # user 'joe' is allowed to connect to partimaged |
545db503 | 136 | EOF |
545db503 | 137 | |
2a6fc7ed | 138 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/partimaged |
383e4731 | 139 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/partimaged |
b3c03060 | 140 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/pam.d/partimaged |
59750c19 | 141 | install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/partimaged/partimaged.cnf |
b3c03060 | 142 | |
59750c19 | 143 | touch $RPM_BUILD_ROOT%{_sysconfdir}/partimaged/partimaged.{csr,cert,key} |
40d01b54 AM |
144 | |
145 | %find_lang %{name} | |
146 | ||
99f022bc JB |
147 | %clean |
148 | rm -rf $RPM_BUILD_ROOT | |
149 | ||
545db503 | 150 | %pre server |
3213488f ER |
151 | %groupadd -P %{name}-server -g 98 partimag |
152 | %useradd -P %{name}-server -u 98 -d %{_sysconfdir}/partimaged -s /bin/false -c "Partimage server" -g partimag partimag | |
545db503 | 153 | |
154 | %post server | |
155 | /sbin/chkconfig --add partimaged | |
b3c03060 AM |
156 | if [ ! -s /etc/partimaged/partimaged.key -o ! -s /etc/partimaged/partimaged.cert ]; then |
157 | echo "Run \"/etc/rc.d/init.d/partimaged init\" to create self-signed SSL certificate." >&2 | |
158 | fi | |
159 | ||
dd8f7eb7 PG |
160 | if [ -f /var/lock/subsys/partimaged ]; then |
161 | /etc/rc.d/init.d/partimaged restart >&2 | |
545db503 | 162 | else |
d799e846 | 163 | echo "Run \"/etc/rc.d/init.d/partimaged start\" to start partimage server." >&2 |
545db503 | 164 | fi |
165 | ||
59750c19 | 166 | echo |
b3c03060 | 167 | |
545db503 | 168 | %preun server |
169 | if [ "$1" = "0" ]; then | |
dd8f7eb7 PG |
170 | if [ -f /var/lock/subsys/partimaged ]; then |
171 | /etc/rc.d/init.d/partimaged stop >&2 | |
545db503 | 172 | fi |
173 | /sbin/chkconfig --del partimaged | |
174 | fi | |
175 | ||
176 | %postun server | |
ffa238aa | 177 | if [ "$1" = "0" ]; then |
6375c8ce | 178 | %userremove partimag |
179 | %groupremove partimag | |
545db503 | 180 | fi |
181 | ||
40d01b54 AM |
182 | %files -f %{name}.lang |
183 | %defattr(644,root,root,755) | |
59750c19 | 184 | %doc AUTHORS ChangeLog README* THANKS BUGS |
ffa238aa | 185 | %attr(755,root,root) %{_sbindir}/partimage |
545db503 | 186 | |
187 | %files server | |
188 | %defattr(644,root,root,755) | |
e3846119 | 189 | %doc README.partimaged |
ffa238aa | 190 | %attr(755,root,root) %{_sbindir}/partimaged |
545db503 | 191 | %attr(754,root,root) /etc/rc.d/init.d/partimaged |
b3c03060 | 192 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/partimaged |
48fbb2b8 | 193 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/partimaged |
545db503 | 194 | %dir %{_sysconfdir}/partimaged |
59750c19 | 195 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/partimaged/partimaged.cnf |
196 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/partimaged/partimaged.csr | |
197 | %attr(600,partimag,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/partimaged/partimaged.key | |
198 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/partimaged/partimaged.cert | |
aac688ac | 199 | %attr(600,partimag,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/partimaged/partimagedusers |
0ece7af8 | 200 | %attr(700,partimag,root) %dir /var/spool/partimage |