]> git.pld-linux.org Git - packages/bootparamd.git/blobdiff - bootparamd.spec
- s/postun/preun/ (init.d/bootparamd must exist to stop daemon); release 10
[packages/bootparamd.git] / bootparamd.spec
index 4580f8148a7106a1b42bb655eeb775d408a0db3a..9b6813407d39b046fca5f723b4cdd3d7ce2a5cf1 100644 (file)
@@ -1,13 +1,16 @@
-Summary:       A server process which provides boot information to diskless clients.
+Summary:       A server process which provides boot information to diskless clients
+Summary(pl):   Demon zapewniaj±cy informacje potrzebne do uruchomienia bezdyskowych klientów
 Name:          bootparamd
-Version:       0.10
-Release:       22
+Version:       0.17
+Release:       10
 License:       BSD
 Group:         Networking/Daemons
+Group(de):     Netzwerkwesen/Server
 Group(pl):     Sieciowe/Serwery
-Source0:       ftp://sunsite.unc.edu/pub/Linux/system/network/daemons/netkit-%{name}-%{version}.tar.gz
-Source1:       bootparamd.init
-Patch0:                netkit-bootparamd-0.10-misc.patch
+Source0:       ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/netkit-%{name}-%{version}.tar.gz
+Source1:       %{name}.init
+Patch0:                %{name}-install_man_fix.patch
+Prereq:                rc-scripts
 Prereq:                /sbin/chkconfig
 Requires:      portmap
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -23,41 +26,56 @@ 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.
 
-You should install bootparamd if you need to provide boot information
-to diskless clients on your network.
+%description -l pl
+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
+%setup -q -n netkit-bootparamd-%{version}
 %patch -p1
 
 %build
-%{__make} RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
+./configure --with-c-compiler=%{__cc}
+%{__make} CFLAGS="%{rpmcflags}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_bindir}
-install -d $RPM_BUILD_ROOT%{_sbindir}
-install -d $RPM_BUILD_ROOT%{_mandir}/man1
-install -d $RPM_BUILD_ROOT%{_mandir}/man8
-install -d $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/bootparamd
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post
 /sbin/chkconfig --add bootparamd
+if [ -f /var/lock/subsys/rpc.bootparamd ]; then
+       /etc/rc.d/init.d/bootparamd restart 1>&2
+else
+       echo "Type \"/etc/rc.d/init.d/bootparamd start\" to start rpc.bootparamd server" 1>&2
+fi
 
-%postun
-if [ $1 = 0 ]; then
-    /sbin/chkconfig --del bootparamd
+%preun
+if [ "$1" = "0" ]; then
+       if [ -f /var/lock/subsys/rpc.bootparamd ]; then
+               /etc/rc.d/init.d/bootparamd stop 1>&2
+       fi
+       /sbin/chkconfig --del bootparamd
 fi
 
 %files
 %defattr(644,root,root,755)
+%attr(754,root,root) /etc/rc.d/init.d/bootparamd
 %attr(755,root,root) %{_sbindir}/rpc.bootparamd
 %attr(755,root,root) %{_bindir}/callbootd
-%{_mandir}/man8/rpc.bootparamd.8
-%{_mandir}/man8/bootparamd.8
-%attr(754,root,root) /etc/rc.d/init.d/bootparamd
+%{_mandir}/man[58]/*
This page took 0.187231 seconds and 4 git commands to generate.