1 Summary: A server process which provides boot information to diskless clients
6 Group: Networking/Daemons
7 Group(de): Netzwerkwesen/Server
8 Group(pl): Sieciowe/Serwery
9 Source0: ftp://ftp.linux.org.uk/pub/linux/Networking/netkit/netkit-%{name}-%{version}.tar.gz
11 Patch0: %{name}-install_man_fix.patch
12 Prereq: /sbin/chkconfig
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 The bootparamd process provides bootparamd, a server process which
18 provides the information needed by diskless clients in order for them
19 to successfully boot. Bootparamd looks first in /etc/bootparams for an
20 entry for that particular client; if a local bootparams file doesn't
21 exist, it looks at the appropriate Network Information Service (NIS)
22 map. Some network boot loaders (notably Sun's) rely on special boot
23 server code on the server, in addition to the rarp and tftp servers.
24 This bootparamd server process is compatible with SunOS bootparam
25 clients and servers which need that boot server code.
28 %setup -q -n netkit-bootparamd-%{version}
32 ./configure --with-c-compiler=%{__cc}
33 %{__make} CFLAGS="%{?debug:-O0 -g}%{!?debug:$RPM_OPT_FLAGS}"
36 rm -rf $RPM_BUILD_ROOT
37 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_mandir}/man8} \
38 $RPM_BUILD_ROOT/etc/rc.d/init.d
41 INSTALLROOT=$RPM_BUILD_ROOT \
44 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bootparamd
47 rm -rf $RPM_BUILD_ROOT
50 /sbin/chkconfig --add bootparamd
51 if [ -f /var/lock/subsys/rpc.bootparamd ]; then
52 /etc/rc.d/init.d/bootparamd restart 1>&2
54 echo "Type \"/etc/rc.d/init.d/bootparamd start\" to start rpc.bootparamd server" 1>&2
58 if [ "$1" = "0" ]; then
59 if [ -f /var/lock/subsys/rpc.bootparamd ]; then
60 /etc/rc.d/init.d/bootparamd stop 1>&2
62 /sbin/chkconfig --del bootparamd
66 %defattr(644,root,root,755)
67 %attr(754,root,root) /etc/rc.d/init.d/bootparamd
68 %attr(755,root,root) %{_sbindir}/rpc.bootparamd
69 %attr(755,root,root) %{_bindir}/callbootd