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