5 %def_with static_client
11 Summary: Tools
for using the Network Block Device
13 Group: Networking
/Other
14 URL: http
://%name.sourceforge.net
/
15 Source: %name-%version.tar.bz2
16 Patch0: %name-types.patch
17 Patch1: %name-2.9.6-gznbd.patch
18 Patch2: %name-2.9.7-prerun.patch
19 BuildRequires
: glib2
-devel
>= 2.6.0
20 %{?_with_gznbd:BuildRequires: zlib-devel}
21 %{?_with_static_client:BuildRequires: dietlibc}
24 %Name contains the tools needed to
export a network block device and to
25 use a network block device. The nbd module is part of the
2.2 kernels
27 If you have a kernel patched
for it
, you can use the network block
28 device to swap over the net
, which is particularly useful
for diskless
42 Group: Networking
/Other
45 %Name server needed to
export a network block device.
50 Group: Networking
/Other
53 %Name client needed to use a network block device.
54 You can use the network block device to swap over the net
, which is
55 particularly useful
for diskless workstations.
58 %if_with static_client
59 %package client
-static
61 Group: Networking
/Other
63 %description client
-static
64 %Name client needed to use a network block device.
65 You can use the network block device to swap over the net
, which is
66 particularly useful
for diskless workstations.
68 This package contains static
%name-client
(can be used
for initrd
).
81 %{subst_enable debug} \
82 %{subst_enable syslog} \
84 %if_with static_client
85 %make_build CC
="diet
-Os
%__cc"
%name-client
86 mv
%name-client
{,.static
}
90 %{?_with_gznbd:%make_build -C gznbd CFLAGS="%optflags -DMY_NAME='\"gznbd\"'"}
94 install -d
%buildroot%_sysconfdir/%name-server
95 %make_install DESTDIR
=%buildroot install
96 %{?_with_static_client:install -m 0755 %name-client.static %buildroot%_sbindir/}
97 %{?_with_gznbd:install -m 0755 gznbd/gznbd %buildroot/%_bindir/}
106 %dir %_sysconfdir/nbd
-server
112 %_sbindir/%name-client
116 %if_with static_client
118 %_sbindir/%name-client.static
123 * Sun Oct
14 2007 Led
<led@altlinux.ru
> 2.9.7-alt2
124 - added
%name-client.static
125 - added
%name-2.9.7-prerun.patch
127 * Fri Sep
21 2007 Led
<led@altlinux.ru
> 2.9.7-alt1
130 * Mon Aug
06 2007 Led
<led@altlinux.ru
> 2.9.6-alt1
132 - updated
%name-2.9.6-gznbd.patch
134 * Sat Jun
16 2007 Led
<led@altlinux.ru
> 2.9.3-alt1
137 * Fri Mar
16 2007 Led
<led@altlinux.ru
> 2.9.0-alt0.1