]> git.pld-linux.org Git - SPECS.git/blob - partimage.spec
SPECS updated Sun 1 Aug 20:13:02 CEST 2021
[SPECS.git] / partimage.spec
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
4 Name:           partimage
5 Version:        0.6.9
6 Release:        5
7 License:        GPL v2
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
13 Source3:        %{name}d.pam
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
20 Patch5:         build.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)
35
36 %description
37 Linux/UNIX utility to save partitions in a compressed image file
38 Partition Image is a Linux/UNIX partition imaging utility: it saves
39 partitions in the:
40
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)
50
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
62 few minutes.
63
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).
76
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.
86
87 %package server
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)
102
103 %description server
104 Server for Partimage.
105
106 %description server -l pl.UTF-8
107 Server dla Partimage.
108
109 %prep
110 %setup -q
111 %patch0 -p1
112 %patch1 -p1
113 %patch2 -p1
114 %patch3 -p1
115 %patch4 -p1
116 %patch5 -p1
117
118 %build
119 %{__libtoolize}
120 %{__aclocal}
121 %{__autoconf}
122 %{__automake}
123 %configure \
124         --disable-silent-rules \
125         --enable-pam \
126         --enable-ssl
127 %{__make}
128
129 %install
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}
132
133 %{__make} -C src install \
134         sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir} \
135         DESTDIR=$RPM_BUILD_ROOT
136
137 %{__make} -C po install \
138         DESTDIR=$RPM_BUILD_ROOT
139
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)
144
145 #joe # user 'joe' is allowed to connect to partimaged
146 EOF
147
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
152
153 touch $RPM_BUILD_ROOT%{_sysconfdir}/partimaged/partimaged.{csr,cert,key}
154
155 %find_lang %{name}
156
157 %clean
158 rm -rf $RPM_BUILD_ROOT
159
160 %pre server
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
163
164 %post server
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
168 fi
169
170 if [ -f /var/lock/subsys/partimaged ]; then
171         /etc/rc.d/init.d/partimaged restart >&2
172 else
173         echo "Run \"/etc/rc.d/init.d/partimaged start\" to start partimage server." >&2
174 fi
175
176 echo
177
178 %preun server
179 if [ "$1" = "0" ]; then
180         if [ -f /var/lock/subsys/partimaged ]; then
181                 /etc/rc.d/init.d/partimaged stop >&2
182         fi
183         /sbin/chkconfig --del partimaged
184 fi
185
186 %postun server
187 if [ "$1" = "0" ]; then
188         %userremove partimag
189         %groupremove partimag
190 fi
191
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
196
197 %files server
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
This page took 0.150987 seconds and 3 git commands to generate.