]> git.pld-linux.org Git - packages/bootparamd.git/blob - bootparamd.spec
- allow some actions when network is down
[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 # Source0-md5:  00d211115b11aec2e214b701fe72f397
10 Source1:        %{name}.init
11 Patch0:         %{name}-install_man_fix.patch
12 Prereq:         rc-scripts
13 Prereq:         /sbin/chkconfig
14 Requires:       portmap
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 The bootparamd process provides bootparamd, a server process which
19 provides the information needed by diskless clients in order for them
20 to successfully boot. Bootparamd looks first in /etc/bootparams for an
21 entry for that particular client; if a local bootparams file doesn't
22 exist, it looks at the appropriate Network Information Service (NIS)
23 map. Some network boot loaders (notably Sun's) rely on special boot
24 server code on the server, in addition to the rarp and tftp servers.
25 This bootparamd server process is compatible with SunOS bootparam
26 clients and servers which need that boot server code.
27
28 %description -l pl
29 Pakiet zawiera program bootparamd - demon, który zapewnia informacje
30 potrzebne dla uruchomienia bezdyskowych klientów. bootparamd szuka w
31 /etc/bootparams wpisu dla konkretnego klienta; je¿eli plik ten nie
32 istnieje, szuka odpowiedniej mapy NIS. Niektóre sieciowe bootloadery
33 (np. Suna) polegaj± na specjalnym kodzie bootuj±cym na serwerze. Ten
34 bootparamd jest kompatybilny z klientami bootparam na SunOS-ie i
35 serwerami potrzebuj±cymi tego kodu.
36
37 %prep
38 %setup -q -n netkit-bootparamd-%{version}
39 %patch -p1
40
41 %build
42 ./configure --with-c-compiler=%{__cc}
43 %{__make} CFLAGS="%{rpmcflags}"
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_mandir}/man8} \
48         $RPM_BUILD_ROOT/etc/rc.d/init.d
49
50 %{__make} install \
51         INSTALLROOT=$RPM_BUILD_ROOT \
52         MANDIR=%{_mandir}
53
54 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bootparamd
55
56 %clean
57 rm -rf $RPM_BUILD_ROOT
58
59 %post
60 /sbin/chkconfig --add bootparamd
61 if [ -f /var/lock/subsys/rpc.bootparamd ]; then
62         /etc/rc.d/init.d/bootparamd restart 1>&2
63 else
64         echo "Type \"/etc/rc.d/init.d/bootparamd start\" to start rpc.bootparamd server" 1>&2
65 fi
66
67 %preun
68 if [ "$1" = "0" ]; then
69         if [ -f /var/lock/subsys/rpc.bootparamd ]; then
70                 /etc/rc.d/init.d/bootparamd stop 1>&2
71         fi
72         /sbin/chkconfig --del bootparamd
73 fi
74
75 %files
76 %defattr(644,root,root,755)
77 %attr(754,root,root) /etc/rc.d/init.d/bootparamd
78 %attr(755,root,root) %{_sbindir}/rpc.bootparamd
79 %attr(755,root,root) %{_bindir}/callbootd
80 %{_mandir}/man[58]/*
This page took 0.05735 seconds and 3 git commands to generate.