]> git.pld-linux.org Git - packages/bootparamd.git/blob - bootparamd.spec
08e8600e6d8e54c0992361e1b117288da78cca43
[packages/bootparamd.git] / bootparamd.spec
1 Summary:        A server process which provides boot information to diskless clients
2 Summary(pl):    Demon zapewniaj±cy informacje potrzebne do uruchomienia bezdyskowych klientów
3 Name:           bootparamd
4 Version:        0.17
5 Release:        10
6 License:        BSD
7 Group:          Networking/Daemons
8 Source0:        ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/netkit-%{name}-%{version}.tar.gz
9 Source1:        %{name}.init
10 Patch0:         %{name}-install_man_fix.patch
11 Prereq:         rc-scripts
12 Prereq:         /sbin/chkconfig
13 Requires:       portmap
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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
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.
26
27 %description -l pl
28 Pakiet zawiera program bootparamd - demon, który zapewnia informacje
29 potrzebne dla uruchomienia bezdyskowych klientów. bootparamd szuka w
30 /etc/bootparams wpisu dla konkretnego klienta; je¿eli plik ten nie
31 istnieje, szuka odpowiedniej mapy NIS. Niektóre sieciowe bootloadery
32 (np. Suna) polegaj± na specjalnym kodzie bootuj±cym na serwerze. Ten
33 bootparamd jest kompatybilny z klientami bootparam na SunOS-ie i
34 serwerami potrzebuj±cymi tego kodu.
35
36 %prep
37 %setup -q -n netkit-bootparamd-%{version}
38 %patch -p1
39
40 %build
41 ./configure --with-c-compiler=%{__cc}
42 %{__make} CFLAGS="%{rpmcflags}"
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_mandir}/man8} \
47         $RPM_BUILD_ROOT/etc/rc.d/init.d
48
49 %{__make} install \
50         INSTALLROOT=$RPM_BUILD_ROOT \
51         MANDIR=%{_mandir}
52
53 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bootparamd
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %post
59 /sbin/chkconfig --add bootparamd
60 if [ -f /var/lock/subsys/rpc.bootparamd ]; then
61         /etc/rc.d/init.d/bootparamd restart 1>&2
62 else
63         echo "Type \"/etc/rc.d/init.d/bootparamd start\" to start rpc.bootparamd server" 1>&2
64 fi
65
66 %preun
67 if [ "$1" = "0" ]; then
68         if [ -f /var/lock/subsys/rpc.bootparamd ]; then
69                 /etc/rc.d/init.d/bootparamd stop 1>&2
70         fi
71         /sbin/chkconfig --del bootparamd
72 fi
73
74 %files
75 %defattr(644,root,root,755)
76 %attr(754,root,root) /etc/rc.d/init.d/bootparamd
77 %attr(755,root,root) %{_sbindir}/rpc.bootparamd
78 %attr(755,root,root) %{_bindir}/callbootd
79 %{_mandir}/man[58]/*
This page took 0.065439 seconds and 2 git commands to generate.