info: dhcp

mkorz@jaguar.domek.pl mkorz w jaguar.domek.pl
Czw, 24 Wrz 1998, 23:16:22 CEST


Hej,
tym razem dhcpd.spec:

-- 
   Marcin Korzonek
   mkorz w shadow.eu.org
-------------- następna część ---------
Summary: Dynamic Host Control Protocol Server and Clients.
Summary(pl): Serwer i klient DHCP
Name: dhcp
Version: 2.0b1pl1
Release: 4
Copyright: distributable
Group: Networking/Daemons
Source0: ftp://ftp.isc.org/isc/dhcp/%{name}-%{version}.tar.gz
Source1: dhcpd.init
Source2: dhcpd.conf
Source3: dhcpd.leases
Patch: dhcp-buildroot.patch
Patch1: dhcp-2.0b1pl1-hdrlen.patch
Patch2: dhcp-rpm_opt.patch
BuildRoot: /var/tmp/%{name}-%{version}-root
Obsoletes: dhcpd

%description
This is the second release of the dhcp package from the Internet Software
Consortium. It provides a server and a relay agent.

%description -l pl
Serwer i program pośredniczący (relay agent) protokołu DHCP.

%package client
Summary: DHCP client
Group: Networking/Daemons
Obsoletes: dhcpcd

%description client
This is the second reload of the dhcppackage from the Internet Software
Consortium. It provides a client.

%description client -l pl
Klient protokołu DHCP.

%prep
%setup -q
%patch -p1 -b .ewt
(cd common; 
%patch1 -p0 -b .hdroverflow
)
%patch2 -p1 -b .rpm_opt

%build
./configure 
make

%install
rm -rf $RPM_BUILD_ROOT

install -d $RPM_BUILD_ROOT/usr/sbin
install -d $RPM_BUILD_ROOT/usr/man/man5
install -d $RPM_BUILD_ROOT/usr/man/man8
install -d $RPM_BUILD_ROOT/var/dhcpd
install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
install -d $RPM_BUILD_ROOT/sbin

#make DESTDIR=$RPM_BUILD_ROOT install

install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/dhcpd
install %{SOURCE2} $RPM_BUILD_ROOT/etc
install %{SOURCE3} $RPM_BUILD_ROOT/etc

install -s server/dhcpd $RPM_BUILD_ROOT/usr/sbin
install -s relay/dhcrelay $RPM_BUILD_ROOT/usr/sbin
install client/scripts/linux $RPM_BUILD_ROOT/etc/dhclient-script
install -s client/dhclient $RPM_BUILD_ROOT/sbin

install server/dhcpd.conf.5 $RPM_BUILD_ROOT/usr/man/man5
install server/dhcpd.leases.5 $RPM_BUILD_ROOT/usr/man/man5
install common/dhcp-options.5 $RPM_BUILD_ROOT/usr/man/man5
install server/dhcpd.8 $RPM_BUILD_ROOT/usr/man/man8
install relay/dhcrelay.8 $RPM_BUILD_ROOT/usr/man/man8

install client/dhclient.conf.5 $RPM_BUILD_ROOT/usr/man/man5
install client/dhclient.leases.5 $RPM_BUILD_ROOT/usr/man/man5
install client/dhclient.8 $RPM_BUILD_ROOT/usr/man/man8
install client/dhclient-script.8 $RPM_BUILD_ROOT/usr/man/man8


%post
/sbin/chkconfig --add dhcpd

%postun
if [ $1 = 0 ]; then
    # execute this only if we are NOT doing an upgrade
    /sbin/chkconfig --del dhcpd 
fi

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644, root, root, 755)
%doc CHANGES README RELNOTES TODO doc/* server/dhcpd.conf
%attr(600, root, root) %config(noreplace) %verify(not size md5 mtime) /etc/dhcpd.conf
%attr(600, root, root) %config(noreplace) %verify(not size md5 mtime) /etc/dhcpd.leases
%attr(700, root, root) /etc/rc.d/init.d/dhcpd
%attr(700, root, root) /usr/sbin/dhcpd
%attr(700, root, root) /usr/sbin/dhcrelay
%attr(644, root, man) /usr/man/man5/dhcpd.conf.5
%attr(644, root, man) /usr/man/man5/dhcpd.leases.5
%attr(644, root, man) /usr/man/man5/dhcp-options.5
%attr(644, root, man) /usr/man/man8/dhcpd.8
%attr(644, root, man) /usr/man/man8/dhcrelay.8

%files client
%defattr(644, root, root, 755)
%attr(700, root, root) /etc/dhclient-script
%attr(700, root, root) /sbin/dhclient
%attr(644, root, man) /usr/man/man5/dhclient.conf.5
%attr(644, root, man) /usr/man/man5/dhclient.leases.5
%attr(644, root, man) /usr/man/man8/dhclient.8
%attr(644, root, man) /usr/man/man8/dhclient-script.8

%changelog
* Thu Sep 24 1998 Marcin Korzonek <mkorz w shadow.eu.org>
- translations modified for pl
- defined files permission
- allow building from non-root account
- enable building client package

* Mon Jun 15 1998 Wojtek Slusarczyk <wojtek w shadow.eu.org>
[2.0b1pl1-4]
- build againmst glibc-2.1

* Thu Jun 11 1998 Erik Troan <ewt w redhat.com>

- applied patch from Chris Evans which makes the server a bit more paranoid
  about dhcp requests coming in from the wire

* Mon Jun 01 1998 Erik Troan <ewt w redhat.com>

- updated to dhcp 2.0b1pl1
- got proper man pages in the package

* Tue Mar 31 1998 Erik Troan <ewt w redhat.com>

- updated to build in a buildroot properly
- don't package up the client, as it doens't work very well <sigh>

* Tue Mar 17 1998 Bryan C. Andregg <bandregg w redhat.com>

- Build rooted and corrected file listing.

* Mon Mar 16 1998 Mike Wangsmo <wanger w redhat.com>

- removed the actual inet.d links (chkconfig takes care of this for us)
  and made the %postun section handle upgrades.

* Mon Mar 16 1998 Bryan C. Andregg <bandregg w redhat.com>

- First package.




Więcej informacji o liście dyskusyjnej pld-devel-pl