]> git.pld-linux.org Git - packages/bootparamd.git/blobdiff - bootparamd.spec
- rel 12
[packages/bootparamd.git] / bootparamd.spec
index 061ab860314a43f1f6fa6235cbbbde34ae8910c4..a7285c86326b8732cf06e80a9dfbbf66b5b5a64f 100644 (file)
@@ -1,17 +1,16 @@
 Summary:       A server process which provides boot information to diskless clients
-Summary(pl):   Demon który zapewnia informacje potrzebne do uruchomienia bezdyskowych klientów
+Summary(pl):   Demon zapewniaj±cy informacje potrzebne do uruchomienia bezdyskowych klientów
 Name:          bootparamd
 Version:       0.17
-Release:       8
+Release:       12
 License:       BSD
 Group:         Networking/Daemons
-Group(de):     Netzwerkwesen/Server
-Group(pl):     Sieciowe/Serwery
 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
-Prereq:                rc-scripts
-Requires:      /sbin/chkconfig
+PreReq:                rc-scripts
+Requires(post,preun):  /sbin/chkconfig
 Requires:      portmap
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -26,12 +25,22 @@ 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.
 
+%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-%{version}
 %patch -p1
 
 %build
-./configure --with-c-compiler=%{__cc}
+./configure \
+       --with-c-compiler=%{__cc}
 %{__make} CFLAGS="%{rpmcflags}"
 
 %install
@@ -49,10 +58,20 @@ install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bootparamd
 rm -rf $RPM_BUILD_ROOT
 
 %post
-DESC="rpc.bootparamd server"; %chkconfig_add
+/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
-%chkconfig_addun
+%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)
This page took 0.057988 seconds and 4 git commands to generate.