]> git.pld-linux.org Git - packages/amanda.git/blob - amanda.spec
- release 5,
[packages/amanda.git] / amanda.spec
1 Summary:        A network-capable tape backup solution
2 Summary(pl):    Sieciowo zorientowany system tworzenia kopii zapasowych
3 Name:           amanda
4 Version:        2.4.1p1
5 Release:        5
6 Copyright:      distributable
7 Group:          Networking/Utilities
8 Group(pl):      Sieciowe/Narzêdzia
9 Source0:        ftp://ftp.amanda.org/pub/amanda/%{name}-%{version}.tar.gz
10 Source1:        amanda-srv.crontab
11 Source2:        amanda.inetd
12 Source3:        amandaidx.inetd
13 Source4:        amidxtape.inetd
14 Source5:        amanda.conf
15 Patch:          amanda-DESTDIR.patch
16 BuildRequires:  flex
17 BuildRequires:  dump
18 BuildRequires:  tar
19 BuildRequires:  cpio
20 BuildRequires:  ncurses-devel >= 5.0
21 BuildRequires:  readline-devel >= 4.1
22 Prereq:         /sbin/ldconfig
23 URL:            http://www.amanda.org/
24 BuildRoot:      /tmp/%{name}-%{version}-root
25
26 %define         _sysconfdir     /etc
27 %define         _localstatedir  /var
28 %define         _libexecdir     %{_libdir}/amanda
29
30 %description 
31 AMANDA, the Advanced Maryland Automatic Network Disk Archiver, is a backup
32 system that allows the administrator of a LAN to set up a single master
33 backup server to back up multiple hosts to a single large capacity tape
34 drive. AMANDA uses native dump and/or GNU tar facilities and can back up a
35 large number of workstations running multiple versions of Unix. Newer
36 versions of AMANDA (including this version) can use SAMBA to back up
37 Microsoft(TM) Windows95/NT hosts. The amanda package contains the core
38 AMANDA programs and will need to be installed on both AMANDA clients and
39 AMANDA servers. Note that you will have to install the amanda-client and
40 amanda-server packages as well.
41
42 %description -l pl
43 AMANDA jest sieciowo zorientowanym systemem tworzenia kopii
44 zapasowych. Umo¿liwia administratorowi sieci tworzenie
45 kopii z wilku hostów na jednej maszynie wyposa¿onej w pojemny
46 dysk lub streamer. Nowsze wersje programu umo¿liwiaj± zabezpieczanie
47 zasobów Microsoft Windows 95/98/NT/2000 przy u¿yciu protoko³u Samba.
48 Ten pakiet zawiera podstawowe pliki programu i powinien byæ zainstalowany
49 zarówno na serwerze jak i na kliencie. Pamiêtaj tak¿e o instalacji
50 pakietów amanda-client i amanda-server!
51
52 %package libs
53 Summary:        Amanda shared libraries
54 Summary(pl):    Biblioteki wspó³dzielone pakietu amanda
55 Group:          Networking/Utilities
56 Group(pl):      Sieciowe/Narzêdzia
57
58 %description libs
59 Amanda shared libraries.
60
61 %description -l pl libs
62 Biblioteki wspó³dzielone pakietu amanda.
63
64 %package client
65 Summary:        The client side of Amanda
66 Summary(pl):    Klient Amandy
67 Group:          Networking/Utilities
68 Group(pl):      Sieciowe/Narzêdzia
69 Prereq:         /sbin/ldconfig
70 Prereq:         %{name}-libs = %{version}
71
72 %description client
73 The Amanda-client package should be installed on any machine that will be
74 backed up by AMANDA (including the server if it also needs to be backed up).
75 You will also need to install the amanda package to each AMANDA client.
76
77 %description -l pl client
78 Ten pakiet powinien byæ zainstalowany ma maszynach, z których
79 zawarto¶ci bêd± tworzone kopie zapasowe.
80
81 %package server
82 Summary:        The server side of Amanda
83 Summary(pl):    Serwer Amandy
84 Group:          Networking/Utilities
85 Group(pl):      Sieciowe/Narzêdzia
86 Prereq:         rc-inetd
87 Prereq:         /sbin/ldconfig
88 Requires:       gnuplot
89 Requires:       tar
90 Requires:       cpio
91 Requires:       dump
92 Requires:       crondaemon
93 Requires:       /etc/cron.d
94 Prereq:         %{name}-libs = %{version}
95
96 %description server
97 The amanda-server package should be installed on the AMANDA server, the
98 machine attached to the device (such as a tape drive) where backups will be
99 written. You will also need to install the amanda package to the AMANDA
100 server. And, if the server is also to be backed up, the server also needs to
101 have the amanda-client package installed.
102
103 %description -l pl server
104 Ten pakiet powinien byæ zainstalowanych na maszynach, na których
105 bêd± magazynowane kopie zapasowe (lub do których podpiête s±
106 urz±dzenia typu streamer).
107
108 %prep
109 %setup -q
110 %patch -p1
111
112 %build
113 touch COPYING
114 automake
115 LDFLAGS="-s"; export LDFLAGS
116 %configure \
117         --disable-static \
118         --with-index-server=localhost \
119         --with-user=amanda \
120         --with-group=amanda \
121         --with-samba-user=amanda \
122         --with-tape-device=/dev/null \
123         --with-ftape-rawdevice=/dev/null \
124         --with-changer-device=/dev/null \
125         --with-fqdn \
126         --with-smbclient=%{_bindir}/smbclient \
127         --with-bsd-security \
128         --with-buffered-dump \
129         --with-amandahosts \
130         --with-debugging=%{_localstatedir}/amanda/debug
131
132 make
133
134 %install
135 rm -rf $RPM_BUILD_ROOT
136 install -d $RPM_BUILD_ROOT/etc/{amanda,cron.d,sysconfig/rc-inetd} \
137         $RPM_BUILD_ROOT%{_localstatedir}/state/amanda
138
139 make install \
140         DESTDIR=$RPM_BUILD_ROOT \
141         SETUID_GROUP=`id -g`
142
143 install %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.d/amanda-srv
144 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amanda
145 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amandaidx
146 install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/amidxtape
147
148 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/amanda
149 install example/*.ps $RPM_BUILD_ROOT%{_localstatedir}/state/amanda
150
151 strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.*
152
153 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man8/*
154
155 %clean
156 rm -rf $RPM_BUILD_ROOT
157
158 %pre libs
159 /usr/sbin/groupadd -g 80 -r -f amanda
160 /usr/sbin/useradd -u 80 -r -d /var/state/amanda -s /bin/false -c "Amanda Backup user" -g amanda amanda
161
162 %post   libs -p /sbin/ldconfig
163
164 %preun libs
165 /sbin/ldconfig
166 if [ "$1" = "0" ]; then
167         /usr/sbin/groupdel amanda
168         /usr/sbin/userdel mananda
169 fi
170
171 %post client
172 /sbin/ldconfig
173 if [ -f /var/lock/subsys/rc-inetd ]; then
174         /etc/rc.d/init.d/rc-inetd restart 1>&2
175 else
176         echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet sever" 1>&2
177 fi
178
179 %postun client
180 /sbin/ldconfig
181 if [ -f /var/lock/subsys/rc-inetd ]; then
182         /etc/rc.d/init.d/rc-inetd restart
183 fi
184
185 %post server
186 /sbin/ldconfig
187 if [ -f /var/lock/subsys/rc-inetd ]; then
188         /etc/rc.d/init.d/rc-inetd restart 1>&2
189 else
190         echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet sever" 1>&2
191 fi
192
193 %postun server
194 /sbin/ldconfig
195 if [ -f /var/lock/subsys/rc-inetd ]; then
196         /etc/rc.d/init.d/rc-inetd restart
197 fi
198
199 %files libs
200 %defattr(644,root,root,755)
201 %attr(755,root,root) %{_libdir}/libamanda*.so.*.*
202 %attr(755,root,root) %{_libdir}/libamtape*.so.*.*
203 %attr(770,root,amanda) %dir %{_libexecdir}
204
205 %files server
206 %defattr(644,root,root,755)
207 %config(noreplace) /etc/sysconfig/rc-inetd/amidxtape
208 %config(noreplace) /etc/sysconfig/rc-inetd/amandaidx
209 %attr(755,root,root) %{_libexecdir}/amidxtaped
210
211 %dir %{_sysconfdir}/amanda
212 %attr(640,root,amanda) %{_sysconfdir}/amanda/*
213
214 %attr(660,amanda,amanda) %dir %{_localstatedir}/state/amanda
215 %{_localstatedir}/state/amanda/*
216
217 %attr(640,root,root) /etc/cron.d/amanda-srv
218
219 %attr(755,root,root) %{_libdir}/libamserver*.so.*.*
220 %attr(755,root,root) %{_libexecdir}/amindexd
221 %attr(755,root,root) %{_libexecdir}/amtrmidx
222 %attr(755,root,root) %{_libexecdir}/driver
223 %attr(4754,root,amanda) %{_libexecdir}/dumper
224 %attr(755,root,root) %{_libexecdir}/getconf
225 %attr(4754,root,amanda) %{_libexecdir}/planner
226 %attr(755,root,root) %{_libexecdir}/taper
227 %attr(755,root,root) %{_libexecdir}/chg-chio
228 %attr(755,root,root) %{_libexecdir}/chg-manual
229 %attr(755,root,root) %{_libexecdir}/chg-multi
230 %attr(755,root,root) %{_libexecdir}/chg-mtx
231 %attr(755,root,root) %{_libexecdir}/chg-rth
232 %attr(755,root,root) %{_libexecdir}/chg-chs
233 %attr(755,root,root) %{_sbindir}/amadmin
234 %attr(755,root,root) %{_sbindir}/amcheck
235 %attr(755,root,root) %{_sbindir}/amflush
236 %attr(755,root,root) %{_sbindir}/amlabel
237 %attr(755,root,root) %{_sbindir}/amtape
238 %attr(755,root,root) %{_sbindir}/amcheckdb
239 %attr(755,root,root) %{_sbindir}/amcleanup
240 %attr(755,root,root) %{_sbindir}/amdump
241 %attr(755,root,root) %{_sbindir}/amoverview
242 %attr(755,root,root) %{_sbindir}/amrmtape
243 %attr(755,root,root) %{_sbindir}/amtoc
244 %attr(755,root,root) %{_sbindir}/amverify
245 #%attr(755,root,root) %{_sbindir}/amplot
246 %attr(755,root,root) %{_sbindir}/amreport
247 %attr(755,root,root) %{_sbindir}/amstatus
248 %{_mandir}/man8/amadmin.8*
249 %{_mandir}/man8/amrmtape.8*
250 %{_mandir}/man8/amtape.8*
251 %{_mandir}/man8/amtoc.8*
252 %{_mandir}/man8/amanda.8*
253 %{_mandir}/man8/amcheck.8*
254 %{_mandir}/man8/amcleanup.8*
255 %{_mandir}/man8/amdump.8*
256 %{_mandir}/man8/amflush.8*
257 %{_mandir}/man8/amlabel.8*
258 %{_mandir}/man8/amplot.8*
259 %{_mandir}/man8/amreport.8*
260 %{_mandir}/man8/amstatus.8*
261
262 %files client
263 %defattr(644,root,root,755)
264 %config(noreplace) /etc/sysconfig/rc-inetd/amanda
265
266 %attr(755,root,root) %{_libdir}/libamclient*.so.*.*
267 %attr(755,root,root) %{_libexecdir}/versionsuffix
268 %attr(755,root,root) %{_libexecdir}/amandad
269 %attr(4754,root,amanda) %{_libexecdir}/calcsize
270 %attr(755,root,root) %{_libexecdir}/rundump
271 %attr(4754,root,amanda) %{_libexecdir}/runtar
272 %attr(4754,root,amanda) %{_libexecdir}/selfcheck
273 %attr(755,root,root) %{_libexecdir}/sendbackup
274 %attr(755,root,root) %{_libexecdir}/sendsize
275 %attr(755,root,root) %{_libexecdir}/patch-system
276 %attr(4754,root,amanda) %{_libexecdir}/killpgrp
277 %attr(755,root,root) %{_sbindir}/amrecover
278 %attr(755,root,root) %{_sbindir}/amrestore
279 %{_mandir}/man8/amrecover.8*
280 %{_mandir}/man8/amrestore.8*
This page took 0.069826 seconds and 4 git commands to generate.