]>
Commit | Line | Data |
---|---|---|
1d3e239d | 1 | Summary: A server process which provides boot information to diskless clients. |
2 | Name: bootparamd | |
fd9b0b4e JR |
3 | Version: 0.16 |
4 | Release: 3 | |
1d3e239d | 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 | |
1d3e239d | 10 | Prereq: /sbin/chkconfig |
11 | Requires: portmap | |
234250db | 12 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
9060e098 JR |
13 | |
14 | %description | |
15 | The bootparamd process provides bootparamd, a server process which | |
16 | provides the information needed by diskless clients in order for them | |
1d3e239d | 17 | to successfully boot. Bootparamd looks first in /etc/bootparams for an |
9060e098 JR |
18 | entry for that particular client; if a local bootparams file doesn't |
19 | exist, it looks at the appropriate Network Information Service (NIS) | |
1d3e239d | 20 | map. Some network boot loaders (notably Sun's) rely on special boot |
9060e098 | 21 | server code on the server, in addition to the rarp and tftp servers. |
1d3e239d | 22 | This bootparamd server process is compatible with SunOS bootparam |
23 | clients and servers which need that boot server code. | |
9060e098 | 24 | |
1d3e239d | 25 | You should install bootparamd if you need to provide boot information |
26 | to diskless clients on your network. | |
9060e098 JR |
27 | |
28 | %prep | |
fd9b0b4e | 29 | %setup -q -n netkit-bootparamd-0.16 |
9060e098 JR |
30 | |
31 | %build | |
fd9b0b4e JR |
32 | ./configure |
33 | %{__make} CFLAGS="$RPM_OPT_FLAGS" | |
9060e098 JR |
34 | |
35 | %install | |
36 | rm -rf $RPM_BUILD_ROOT | |
fd9b0b4e | 37 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_mandir}/man8} |
1d3e239d | 38 | install -d $RPM_BUILD_ROOT/etc/rc.d/init.d |
fd9b0b4e JR |
39 | |
40 | %{__make} install \ | |
41 | INSTALLROOT=$RPM_BUILD_ROOT \ | |
42 | MANDIR=%{_mandir} | |
43 | ||
44 | install -m 755 %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bootparamd | |
45 | ||
46 | gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man8/* | |
9060e098 JR |
47 | |
48 | %clean | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %post | |
52 | /sbin/chkconfig --add bootparamd | |
53 | ||
54 | %postun | |
55 | if [ $1 = 0 ]; then | |
56 | /sbin/chkconfig --del bootparamd | |
57 | fi | |
58 | ||
59 | %files | |
1d3e239d | 60 | %defattr(644,root,root,755) |
fd9b0b4e | 61 | %attr(754,root,root) /etc/rc.d/init.d/bootparamd |
1d3e239d | 62 | %attr(755,root,root) %{_sbindir}/rpc.bootparamd |
63 | %attr(755,root,root) %{_bindir}/callbootd | |
fd9b0b4e | 64 | %{_mandir}/man8/* |