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