]>
Commit | Line | Data |
---|---|---|
20d7a062 | 1 | Summary: A server process which provides boot information to diskless clients |
1d3e239d | 2 | Name: bootparamd |
ed8d00cd | 3 | Version: 0.17 |
ad77d1e2 | 4 | Release: 6 |
1d3e239d | 5 | License: BSD |
6 | Group: Networking/Daemons | |
ad77d1e2 | 7 | Group(de): Netzwerkwesen/Server |
1d3e239d | 8 | Group(pl): Sieciowe/Serwery |
ed8d00cd | 9 | Source0: ftp://ftp.linux.org.uk/pub/linux/Networking/netkit/netkit-%{name}-%{version}.tar.gz |
ad77d1e2 | 10 | Source1: %{name}.init |
11 | Patch0: %{name}-install_man_fix.patch | |
1d3e239d | 12 | Prereq: /sbin/chkconfig |
13 | Requires: portmap | |
234250db | 14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
9060e098 JR |
15 | |
16 | %description | |
17 | The bootparamd process provides bootparamd, a server process which | |
18 | provides the information needed by diskless clients in order for them | |
1d3e239d | 19 | to successfully boot. Bootparamd looks first in /etc/bootparams for an |
9060e098 JR |
20 | entry for that particular client; if a local bootparams file doesn't |
21 | exist, it looks at the appropriate Network Information Service (NIS) | |
1d3e239d | 22 | map. Some network boot loaders (notably Sun's) rely on special boot |
9060e098 | 23 | server code on the server, in addition to the rarp and tftp servers. |
1d3e239d | 24 | This bootparamd server process is compatible with SunOS bootparam |
25 | clients and servers which need that boot server code. | |
9060e098 | 26 | |
9060e098 | 27 | %prep |
20d7a062 | 28 | %setup -q -n netkit-bootparamd-%{version} |
ad77d1e2 | 29 | %patch -p1 |
9060e098 JR |
30 | |
31 | %build | |
ad77d1e2 | 32 | ./configure --with-c-compiler=%{__cc} |
abc93c5d | 33 | %{__make} CFLAGS="%{?debug:-O -g}%{!?debug:$RPM_OPT_FLAGS}" |
9060e098 JR |
34 | |
35 | %install | |
36 | rm -rf $RPM_BUILD_ROOT | |
20d7a062 | 37 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_mandir}/man8} \ |
38 | $RPM_BUILD_ROOT/etc/rc.d/init.d | |
fd9b0b4e JR |
39 | |
40 | %{__make} install \ | |
41 | INSTALLROOT=$RPM_BUILD_ROOT \ | |
42 | MANDIR=%{_mandir} | |
43 | ||
20d7a062 | 44 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bootparamd |
fd9b0b4e | 45 | |
9060e098 JR |
46 | %clean |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %post | |
50 | /sbin/chkconfig --add bootparamd | |
20d7a062 | 51 | if [ -f /var/lock/subsys/rpc.bootparamd ]; then |
52 | /etc/rc.d/init.d/bootparamd restart 1>&2 | |
53 | else | |
464eedcf | 54 | echo "Type \"/etc/rc.d/init.d/bootparamd start\" to start rpc.bootparamd server" 1>&2 |
20d7a062 | 55 | fi |
9060e098 JR |
56 | |
57 | %postun | |
20d7a062 | 58 | if [ "$1" = "0" ]; then |
59 | if [ -f /var/lock/subsys/rpc.bootparamd ]; then | |
60 | /etc/rc.d/init.d/bootparamd stop 1>&2 | |
61 | fi | |
62 | /sbin/chkconfig --del bootparamd | |
9060e098 JR |
63 | fi |
64 | ||
65 | %files | |
1d3e239d | 66 | %defattr(644,root,root,755) |
fd9b0b4e | 67 | %attr(754,root,root) /etc/rc.d/init.d/bootparamd |
1d3e239d | 68 | %attr(755,root,root) %{_sbindir}/rpc.bootparamd |
69 | %attr(755,root,root) %{_bindir}/callbootd | |
ad77d1e2 | 70 | %{_mandir}/man[58]/* |