]>
Commit | Line | Data |
---|---|---|
1d3e239d | 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 | |
234250db | 13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
9060e098 JR |
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 | |
1d3e239d | 18 | to successfully boot. Bootparamd looks first in /etc/bootparams for an |
9060e098 JR |
19 | entry for that particular client; if a local bootparams file doesn't |
20 | exist, it looks at the appropriate Network Information Service (NIS) | |
1d3e239d | 21 | map. Some network boot loaders (notably Sun's) rely on special boot |
9060e098 | 22 | server code on the server, in addition to the rarp and tftp servers. |
1d3e239d | 23 | This bootparamd server process is compatible with SunOS bootparam |
24 | clients and servers which need that boot server code. | |
9060e098 | 25 | |
1d3e239d | 26 | You should install bootparamd if you need to provide boot information |
27 | to diskless clients on your network. | |
9060e098 JR |
28 | |
29 | %prep | |
30 | %setup -q -n netkit-bootparamd-0.10 | |
31 | %patch -p1 | |
32 | ||
33 | %build | |
611387ee | 34 | %{__make} RPM_OPT_FLAGS="$RPM_OPT_FLAGS" |
9060e098 JR |
35 | |
36 | %install | |
37 | rm -rf $RPM_BUILD_ROOT | |
1d3e239d | 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 | |
611387ee | 43 | %{__make} INSTALLROOT=$RPM_BUILD_ROOT install |
9060e098 JR |
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 | |
1d3e239d | 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 | |
12d93f0d | 63 | %attr(754,root,root) /etc/rc.d/init.d/bootparamd |