]> git.pld-linux.org Git - packages/bootparamd.git/blobdiff - bootparamd.spec
- R: rc-scripts >= 0.4.1.5
[packages/bootparamd.git] / bootparamd.spec
index 4ede71b64f533e3159dc1d5ca2bda6c0b16c8197..6be0f1e55d840c5ff3a680dc795ff496c04d6701 100644 (file)
@@ -1,14 +1,19 @@
 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.16
-Release:       3
+Version:       0.17
+Release:       13
 License:       BSD
 Group:         Networking/Daemons
-Group(pl):     Sieciowe/Serwery
-Source0:       ftp://sunsite.unc.edu/pub/Linux/system/network/daemons/netkit-%{name}-%{version}.tar.gz
-Source1:       bootparamd.init
-Prereq:                /sbin/chkconfig
+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
@@ -22,12 +27,23 @@ 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.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-%{version}
+%setup -q -n netkit-%{name}-%{version}
+%patch0 -p1
 
 %build
-./configure
-%{__make} CFLAGS="$RPM_OPT_FLAGS"
+./configure \
+       --with-c-compiler="%{__cc}"
+%{__make} CFLAGS="%{rpmcflags}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -38,32 +54,25 @@ install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_mandir}/man8} \
        INSTALLROOT=$RPM_BUILD_ROOT \
        MANDIR=%{_mandir}
 
-install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bootparamd
-
-gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man8/*
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/rpc.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
+/sbin/chkconfig --add rpc.bootparamd
+%service rpc.bootparamd restart "rpc.bootparamd server"
 
-%postun
+%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
+       %service rpc.bootparamd stop
+       /sbin/chkconfig --del rpc.bootparamd
 fi
 
 %files
 %defattr(644,root,root,755)
-%attr(754,root,root) /etc/rc.d/init.d/bootparamd
+%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}/man8/*
+%{_mandir}/man[58]/*
This page took 0.080957 seconds and 4 git commands to generate.