]> git.pld-linux.org Git - SPECS.git/blob - udhcp.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / udhcp.spec
1 # TODO
2 # - separate client and server package?
3 #
4 # Conditional build:
5 %bcond_with     uClibc          # link with uClibc
6 %bcond_with     combined_binary # combined_binary
7 #
8 Summary:        udhcp Server/Client Package
9 Summary(pl.UTF-8):      Serwer i klient udhcp
10 Name:           udhcp
11 Version:        0.9.8
12 Release:        0.1
13 Epoch:          0
14 License:        GPL
15 Group:          Networking/Daemons
16 #Group:         Networking/Utilities
17 Source0:        http://udhcp.busybox.net/source/%{name}-%{version}.tar.gz
18 # Source0-md5:  2d7e548820d2ded5e183933cb701defb
19 Patch0:         %{name}-DESTDIR.patch
20 Patch1:         %{name}-opt.patch
21 URL:            http://udhcp.busybox.net/
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 The udhcp server/client is targeted deliberately at embedded
26 environments... Other Linux DHCP servers out there (such as the ISC
27 DHCP server) are targeted at larger systems such as PCs (with more
28 RAM/disk space/etc.). As a result, the udhcp package does not have as
29 large a feature set as some of these DHCP packages.
30
31 Compiled against uClibc, both the server and client binaries are
32 around 18k and when compiled as one combined binary, has a size of
33 28k. udhcp is a perfect fit for embedded systems requring DHCP
34 capabilities.
35  
36 The udhcp server lease file is in binary format making the additional
37 storage space required for IP and MAC addresses minimal. It also has
38 the option of storing lease times in absolute form, or relative form,
39 for systems without a clock. The lease file can also be saved
40 periodically or by using a signal for systems with flash memory.
41  
42 The client accepts all options on the command line, and calls external
43 scripts to handle the configuration of interfaces to allow for the
44 ultimate flexibility.
45
46 %description -l pl.UTF-8
47 Serwer/klient udhcp jest przeznaczony dla środowisk wbudowanych. Inne
48 linuksowe serwery DHCP (takie jak serwer DHCP ISC) są przeznaczone dla
49 większych systemów, takich jak PC (z większą ilością RAM-u,
50 przestrzeni dyskowe itp.). W efekcie pakiet udhcp nie ma tak wielu
51 możliwości jak niektóre inne pakiety DHCP.
52
53 Skompilowane z uClibc binarki serwera i klienta mają około 18kB, a
54 skompilowane jako jedna połączona binarka - 28kB. udhcp świetnie
55 pasuje dla systemów wbudowanych wymagających obsługi DHCP.
56
57 Plik dzierżaw serwera udhcp jest w formacie binarnym, przez co
58 wymagana przestrzeń na adresy IP i MAC jest minimalna. Ma także opcję
59 przechowywania czasów dzierżawy w postaci absolutnej lub relatywnej
60 dla systemów bez zegara. Plik dzierżaw może być także zapisywany
61 regularnie lub przy użyciu sygnału dla systemów z pamięcią flash.
62
63 Klient pobiera wszystkie opcje z linii poleceń i wywołuje zewnętrzne
64 skrypty do obsługi konfiguracji interfejsów, co daje ostateczną
65 elastyczność.
66
67 %prep
68 %setup -q
69 %patch0 -p1
70 %patch1 -p1
71
72 %build
73 %{__make} \
74         %{?with_combined_binary:COMBINED_BINARY=1} \
75         OPTFLAGS='%{rpmcflags}'
76
77 %install
78 rm -rf $RPM_BUILD_ROOT
79
80 %{__make} install \
81         DESTDIR=$RPM_BUILD_ROOT
82
83 %clean
84 rm -rf $RPM_BUILD_ROOT
85
86 %files
87 %defattr(644,root,root,755)
88 %doc AUTHORS ChangeLog README TODO
89 %attr(755,root,root) /sbin/udhcpc
90 %attr(755,root,root) %{_bindir}/dumpleases
91 %attr(755,root,root) %{_sbindir}/udhcpd
92 %{_mandir}/man1/dumpleases.1*
93 %{_mandir}/man5/udhcpd.conf.5*
94 %{_mandir}/man8/udhcpc.8*
95 %{_mandir}/man8/udhcpd.8*
96 %{_datadir}/udhcpc
This page took 0.322573 seconds and 3 git commands to generate.