]> git.pld-linux.org Git - packages/bootparamd.git/blob - bootparamd.spec
- spec adapterized.
[packages/bootparamd.git] / bootparamd.spec
1 Summary:        A server process which provides boot information to diskless clients.
2 Name:           bootparamd
3 Version:        0.10
4 Release:        22
5 License:        BSD
6 Group:          Networking/Daemons
7 Group(pl):      Sieciowe/Serwery
8 Source0:        ftp://sunsite.unc.edu/pub/Linux/system/network/daemons/netkit-%{name}-%{version}.tar.gz
9 Source1:        bootparamd.init
10 Patch0:         netkit-bootparamd-0.10-misc.patch
11 Prereq:         /sbin/chkconfig
12 Requires:       portmap
13 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15 %description
16 The bootparamd process provides bootparamd, a server process which
17 provides the information needed by diskless clients in order for them
18 to successfully boot. Bootparamd looks first in /etc/bootparams for an
19 entry for that particular client; if a local bootparams file doesn't
20 exist, it looks at the appropriate Network Information Service (NIS)
21 map. Some network boot loaders (notably Sun's) rely on special boot
22 server code on the server, in addition to the rarp and tftp servers.
23 This bootparamd server process is compatible with SunOS bootparam
24 clients and servers which need that boot server code.
25
26 You should install bootparamd if you need to provide boot information
27 to diskless clients on your network.
28
29 %prep
30 %setup -q -n netkit-bootparamd-0.10
31 %patch -p1
32
33 %build
34 make RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
35
36 %install
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT%{_bindir}
39 install -d $RPM_BUILD_ROOT%{_sbindir}
40 install -d $RPM_BUILD_ROOT%{_mandir}/man1
41 install -d $RPM_BUILD_ROOT%{_mandir}/man8
42 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
43 make INSTALLROOT=$RPM_BUILD_ROOT install
44 install -m 755 $RPM_SOURCE_DIR/bootparamd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/bootparamd
45
46 %clean
47 rm -rf $RPM_BUILD_ROOT
48
49 %post
50 /sbin/chkconfig --add bootparamd
51
52 %postun
53 if [ $1 = 0 ]; then
54     /sbin/chkconfig --del bootparamd
55 fi
56
57 %files
58 %defattr(644,root,root,755)
59 %attr(755,root,root) %{_sbindir}/rpc.bootparamd
60 %attr(755,root,root) %{_bindir}/callbootd
61 %{_mandir}/man8/rpc.bootparamd.8
62 %{_mandir}/man8/bootparamd.8
63 %attr(754,root,root) /etc/rc.d/init.d/bootparamd
This page took 0.03434 seconds and 4 git commands to generate.