X-Git-Url: http://git.pld-linux.org/?p=packages%2Fbootparamd.git;a=blobdiff_plain;f=bootparamd.spec;h=6be0f1e55d840c5ff3a680dc795ff496c04d6701;hp=3f372fc8fedcc4a895eb5a125cb4676c0aeaf355;hb=b4cb4396262a696ae45f35521ca8d28ea1cf24ec;hpb=234250dba3e16f2f52183c7c3f7a50e053bad673 diff --git a/bootparamd.spec b/bootparamd.spec index 3f372fc..6be0f1e 100644 --- a/bootparamd.spec +++ b/bootparamd.spec @@ -1,61 +1,78 @@ -Summary: A server process which provides boot information to diskless clients. -Name: bootparamd -Version: 0.10 -Release: 22 -Copyright: BSD -Group: System Environment/Daemons -Source: ftp://sunsite.unc.edu/pub/Linux/system/network/daemons/netkit-bootparamd-0.10.tar.gz -Source1: bootparamd.init -Patch: netkit-bootparamd-0.10-misc.patch -Prereq: /sbin/chkconfig -Requires: portmap +Summary: A server process which provides boot information to diskless clients +Summary(pl.UTF-8): Demon zapewniający informacje potrzebne do uruchomienia bezdyskowych klientów +Name: bootparamd +Version: 0.17 +Release: 13 +License: BSD +Group: Networking/Daemons +Source0: ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/netkit-%{name}-%{version}.tar.gz +# Source0-md5: 00d211115b11aec2e214b701fe72f397 +Source1: %{name}.init +Patch0: %{name}-install_man_fix.patch +BuildRequires: cpp +BuildRequires: rpmbuild(macros) >= 1.268 +Requires(post,preun): /sbin/chkconfig +Requires: portmap +Requires: rc-scripts >= 0.4.1.5 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description The bootparamd process provides bootparamd, a server process which provides the information needed by diskless clients in order for them -to successfully boot. Bootparamd looks first in /etc/bootparams for an +to successfully boot. Bootparamd looks first in /etc/bootparams for an entry for that particular client; if a local bootparams file doesn't exist, it looks at the appropriate Network Information Service (NIS) -map. Some network boot loaders (notably Sun's) rely on special boot +map. Some network boot loaders (notably Sun's) rely on special boot server code on the server, in addition to the rarp and tftp servers. -This bootparamd server process is compatible with SunOS bootparam clients -and servers which need that boot server code. +This bootparamd server process is compatible with SunOS bootparam +clients and servers which need that boot server code. -You should install bootparamd if you need to provide boot information to -diskless clients on your network. +%description -l pl.UTF-8 +Pakiet zawiera program bootparamd - demon, który zapewnia informacje +potrzebne dla uruchomienia bezdyskowych klientów. bootparamd szuka w +/etc/bootparams wpisu dla konkretnego klienta; jeżeli plik ten nie +istnieje, szuka odpowiedniej mapy NIS. Niektóre sieciowe bootloadery +(np. Suna) polegają na specjalnym kodzie bootującym na serwerze. Ten +bootparamd jest kompatybilny z klientami bootparam na SunOS-ie i +serwerami potrzebującymi tego kodu. %prep -%setup -q -n netkit-bootparamd-0.10 -%patch -p1 +%setup -q -n netkit-%{name}-%{version} +%patch0 -p1 %build -make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" +./configure \ + --with-c-compiler="%{__cc}" +%{__make} CFLAGS="%{rpmcflags}" %install rm -rf $RPM_BUILD_ROOT -mkdir -p $RPM_BUILD_ROOT/usr/bin -mkdir -p $RPM_BUILD_ROOT/usr/sbin -mkdir -p $RPM_BUILD_ROOT/usr/man/man1 -mkdir -p $RPM_BUILD_ROOT/usr/man/man8 -mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d -make INSTALLROOT=$RPM_BUILD_ROOT install -install -m 755 $RPM_SOURCE_DIR/bootparamd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/bootparamd +install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_mandir}/man8} \ + $RPM_BUILD_ROOT/etc/rc.d/init.d + +%{__make} install \ + INSTALLROOT=$RPM_BUILD_ROOT \ + MANDIR=%{_mandir} + +install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/rpc.bootparamd %clean rm -rf $RPM_BUILD_ROOT %post -/sbin/chkconfig --add bootparamd +/sbin/chkconfig --add rpc.bootparamd +%service rpc.bootparamd restart "rpc.bootparamd server" -%postun -if [ $1 = 0 ]; then - /sbin/chkconfig --del bootparamd +%preun +if [ "$1" = "0" ]; then + %service rpc.bootparamd stop + /sbin/chkconfig --del rpc.bootparamd fi %files -/usr/sbin/rpc.bootparamd -/usr/bin/callbootd -/usr/man/man8/rpc.bootparamd.8 -/usr/man/man8/bootparamd.8 -%attr(754,root,root) /etc/rc.d/init.d/bootparamd +%defattr(644,root,root,755) +%doc ChangeLog README +%attr(754,root,root) /etc/rc.d/init.d/rpc.bootparamd +%attr(755,root,root) %{_sbindir}/rpc.bootparamd +%attr(755,root,root) %{_bindir}/callbootd +%{_mandir}/man[58]/*