]> git.pld-linux.org Git - packages/bootp.git/blobdiff - bootp.spec
- dropped pre-cvs changelog
[packages/bootp.git] / bootp.spec
index 50da3184e473ed4565970509e7f9139a6417b4dd..1be72785a987a76a8b1def90751ac1e9a356d246 100644 (file)
@@ -1,21 +1,26 @@
-Summary:     bootp/DHCP server and test programs
-Summary(de): bootp/DHCP-Server und Testprogramme
-Summary(fr): Serveur bootp/DHCP et programmes test
-Summary(pl): Serwer BOOTP/DHCP wraz z programami pomocniczymi
-Summary(tr): bootp/DHCP sunucusu ve test programlarý
-Name:        bootp
-Version:     2.4.3
-Release:     9
-Copyright:   BSD
-Group:       Networking/Daemons
-Source:      ftp://ftp.mc.com/pub/%{name}-%{version}.tar.Z
-Patch:       bootp-2.4.3-linux.patch
-Patch1:      http://www.sghms.ac.uk/~mpreston/tools.htm/dhcp.patch
-Patch2:      bootp-2.4.3-glibc.patch
-Patch3:      bootp-2.4.3-pathfix.patch
-Patch4:      bootp-tmprace.patch
-Requires:    inetd
-Buildroot:   /tmp/%{name}-%{version}-root
+Summary:       bootp/DHCP server and test programs
+Summary(de.UTF-8):     bootp/DHCP-Server und Testprogramme
+Summary(fr.UTF-8):     Serveur bootp/DHCP et programmes test
+Summary(pl.UTF-8):     Serwer bootp/DHCP wraz z programami pomocniczymi
+Summary(tr.UTF-8):     bootp/DHCP sunucusu ve test programları
+Name:          bootp
+Version:       2.4.3
+Release:       12
+License:       BSD
+Group:         Networking/Daemons
+Source0:       ftp://ftp.ntplx.net/pub/networking/bootp/%{name}-%{version}.tar.gz
+# Source0-md5: 2a12d862f11908acf84652387be4e03b
+Source1:       %{name}.inetd
+Patch0:                %{name}-2.4.3-linux.patch
+Patch1:                http://www.sghms.ac.uk/~mpreston/tools.htm/dhcp.patch
+Patch2:                %{name}-2.4.3-glibc.patch
+Patch3:                %{name}-2.4.3-pathfix.patch
+Patch4:                %{name}-tmprace.patch
+Patch5:                %{name}-errno.patch
+BuildRequires: rpmbuild(macros) >= 1.268
+Requires:      inetdaemon
+Requires:      rc-inetd
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 This is a server for the bootp protocol; which allows network
 
 %description
 This is a server for the bootp protocol; which allows network
@@ -25,98 +30,77 @@ their networking information. While this server includes rudimentary
 DHCP support as well, we suggest using the dhcpd package if you need
 DHCP support, as it is much more complete.
 
 DHCP support as well, we suggest using the dhcpd package if you need
 DHCP support, as it is much more complete.
 
-%description -l de
-Dies ist ein Server für das bootp-Protokoll, der Netzwerkadministratoren
-das Einrichten von Netzinfos für Clients über ein /etc/bootptab auf einem
-Server gestattet, so daß die Clients ihre Infos automatisch bekommen. 
-Obwohl dieser Server rudimentären DHCP-Support beinhaltet, 
-empfehlen wir den Einsatz des dhcpd-Pakets, wenn Sie DHCP-Unterstützung
-wünschen, weil sie damit umfassenderen Support erhalten.
-
-%description -l fr
-C'est un serveur pour le protocole bootp, qui permet aux administrateurs
-réseau de configurer les informations pour les clients réseau via
-le fichier /etc/bootptab sur un serveur de telle manière que les clients
-puissent automatiquement obtenir les informations. Bien que le serveur
-comprenne aussi un support rudimentaire pour dhcp, nous recommandons
-d'utiliser le package dhcp si vous désirez un support dhcp, car
-il est beaucoup plus complet.
-
-%description -l pl
-Pakiet ten zawiera serwer protoko³u bootp, który umo¿liwia zarz±dzanie
-informacjami o konfiguracji sieciowej komputerów w pliku /etc/bootptab, a
-nastêpnie dostarczenie na rz±danie w/w informacji komputerom (klientom).
-Pomimo, ¿e program oferuje czê¶ciow± obs³ugê DHCP, do serwowania informacji
-przenoszonych za pomoc± tego protoko³u lepiej u¿yæ dedykowanego serwera z
-pakietu dhcp.
-
-%description -l tr
-bootp sunucusu, istemcilerin að bilgilerini sunucu üzerindeki bir dosyadan
-almalarýna olanak verir. Bu sunucu temel DHCP desteðini içermekle birlikte,
-DHCP desteðine gerek duyulan durumlarda dhcpd paketinin kullanýmý önerilir
+%description -l de.UTF-8
+Dies ist ein Server für das bootp-Protokoll, der
+Netzwerkadministratoren das Einrichten von Netzinfos für Clients über
+ein /etc/bootptab auf einem Server gestattet, so daß die Clients ihre
+Infos automatisch bekommen. Obwohl dieser Server rudimentären
+DHCP-Support beinhaltet, empfehlen wir den Einsatz des dhcpd-Pakets,
+wenn Sie DHCP-Unterstützung wünschen, weil sie damit umfassenderen
+Support erhalten.
+
+%description -l fr.UTF-8
+C'est un serveur pour le protocole bootp, qui permet aux
+administrateurs réseau de configurer les informations pour les clients
+réseau via le fichier /etc/bootptab sur un serveur de telle manière
+que les clients puissent automatiquement obtenir les informations.
+Bien que le serveur comprenne aussi un support rudimentaire pour dhcp,
+nous recommandons d'utiliser le package dhcp si vous désirez un
+support dhcp, car il est beaucoup plus complet.
+
+%description -l pl.UTF-8
+Pakiet ten zawiera serwer protokołu bootp, który umożliwia zarządzanie
+informacjami o konfiguracji sieciowej komputerów w pliku
+/etc/bootptab, a następnie dostarczenie na żądanie w/w informacji
+komputerom (klientom). Pomimo, że program oferuje częściową obsługę
+DHCP, do serwowania informacji przenoszonych za pomocą tego protokołu
+lepiej użyć dedykowanego serwera z pakietu dhcp.
+
+%description -l tr.UTF-8
+bootp sunucusu, istemcilerin ağ bilgilerini sunucu üzerindeki bir
+dosyadan almalarına olanak verir. Bu sunucu temel DHCP desteğini
+içermekle birlikte, DHCP desteğine gerek duyulan durumlarda dhcpd
+paketinin kullanımı önerilir
 
 %prep
 %setup -q
 
 %prep
 %setup -q
-%patch -p1
+%patch0 -p1
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
 #%patch4 -p1
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
 #%patch4 -p1
+%patch5 -p1
 
 %build
 
 %build
-make linux
+%{__make} linux SYSDEFS="%{rpmcflags}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/{etc,usr/{sbin,man/man{5,8}}}
+install -d $RPM_BUILD_ROOT/{etc/sysconfig/rc-inetd,%{_sbindir},%{_mandir}/man{5,8}}
 
 
-make DESTDIR=$RPM_BUILD_ROOT install
-make DESTDIR=$RPM_BUILD_ROOT install.man
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+%{__make} install.man \
+       DESTDIR=$RPM_BUILD_ROOT \
+       MANDIR=%{_mandir}
 
 
-touch $RPM_BUILD_ROOT/etc/bootptab
+touch $RPM_BUILD_ROOT%{_sysconfdir}/bootptab
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/bootp
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+%service -q rc-inetd reload
+
+%postun
+if [ "$1" = 0 ]; then
+       %service -q rc-inetd reload
+fi
+
 %files
 %files
-%attr(600,root,root) %config(noreplace) %verify(not size md5 mtime) /etc/bootptab
+%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bootptab
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/bootp
 %attr(755,root,root) %{_sbindir}/*
 %{_mandir}/man[58]/*
 %attr(755,root,root) %{_sbindir}/*
 %{_mandir}/man[58]/*
-
-%changelog
-* Wed Nov 13 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
-  [2.4.3-9]
-- added empty /etc/bootptab %config file,
-- fixed tmp race (bootp-tmprace.patch).
-
-* Fri Sep 18 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
-  [2.4.3-8]
-- added -q %setup parameter,
-- changed Buildroot to /tmp/%%{name}-%%{version}-root,
-- simplification in %install and %files,
-- added using %%{name} and %%{version} in Source.
-
-* Sat Aug 29 1998 Marcin Korzonek <mkorz@shadow.eu.org>
-  [2.4.3-8]
-- added pl translation,
-- added %attr and %defattr macros in %files (allows build package from
-  non-root account).
-
-* Mon Jun 01 1998 Prospector System <bugs@redhat.com>
-- translations modified for de
-
-* Wed May 13 1998 Alan Cox <alan@redhat.com>
-- Fixed a potential problem with the bootfile buffer being non terminated
-  allowing a theoretical exploit. We now check the buffer as we walk it. Bug
-  noted and reported by Chris Evans.
-
-* Tue May 05 1998 Prospector System <bugs@redhat.com>
-- translations modified for de, fr, tr
-
-* Sun Oct 19 1997 Erik Troan <ewt@redhat.com>
-- minor spec file cleanups
-- now uses a build root and %attr
-- requires inetd server
-
-* Thu Jul 10 1997 Erik Troan <ewt@redhat.com>
-- built against glibc
This page took 0.07194 seconds and 4 git commands to generate.