]> git.pld-linux.org Git - packages/bootparamd.git/blame - bootparamd.spec
- changed %%{!?debug:...}%%{?debug...} to %%{?debug:...}%%{!?debug...}
[packages/bootparamd.git] / bootparamd.spec
CommitLineData
20d7a062 1Summary: A server process which provides boot information to diskless clients
1d3e239d 2Name: bootparamd
ed8d00cd 3Version: 0.17
ad77d1e2 4Release: 6
1d3e239d 5License: BSD
6Group: Networking/Daemons
ad77d1e2 7Group(de): Netzwerkwesen/Server
1d3e239d 8Group(pl): Sieciowe/Serwery
ed8d00cd 9Source0: ftp://ftp.linux.org.uk/pub/linux/Networking/netkit/netkit-%{name}-%{version}.tar.gz
ad77d1e2 10Source1: %{name}.init
11Patch0: %{name}-install_man_fix.patch
1d3e239d 12Prereq: /sbin/chkconfig
13Requires: portmap
234250db 14BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
9060e098
JR
15
16%description
17The bootparamd process provides bootparamd, a server process which
18provides the information needed by diskless clients in order for them
1d3e239d 19to successfully boot. Bootparamd looks first in /etc/bootparams for an
9060e098
JR
20entry for that particular client; if a local bootparams file doesn't
21exist, it looks at the appropriate Network Information Service (NIS)
1d3e239d 22map. Some network boot loaders (notably Sun's) rely on special boot
9060e098 23server code on the server, in addition to the rarp and tftp servers.
1d3e239d 24This bootparamd server process is compatible with SunOS bootparam
25clients 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
36rm -rf $RPM_BUILD_ROOT
20d7a062 37install -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 44install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bootparamd
fd9b0b4e 45
9060e098
JR
46%clean
47rm -rf $RPM_BUILD_ROOT
48
49%post
50/sbin/chkconfig --add bootparamd
20d7a062 51if [ -f /var/lock/subsys/rpc.bootparamd ]; then
52 /etc/rc.d/init.d/bootparamd restart 1>&2
53else
464eedcf 54 echo "Type \"/etc/rc.d/init.d/bootparamd start\" to start rpc.bootparamd server" 1>&2
20d7a062 55fi
9060e098
JR
56
57%postun
20d7a062 58if [ "$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
63fi
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]/*
This page took 0.031149 seconds and 4 git commands to generate.