]> git.pld-linux.org Git - packages/devfsd.git/blob - devfsd.spec
ab791346e8a2459fb8e86ca571b9b6ebe8579465
[packages/devfsd.git] / devfsd.spec
1 %bcond_without  kernel25
2 Summary:        DevFS Daemon
3 Summary(pl.UTF-8):      Demon DevFS
4 Name:           devfsd
5 Version:        1.3.25
6 Release:        6
7 License:        GPL
8 Group:          Base
9 Source0:        ftp://ftp.atnf.csiro.au/pub/people/rgooch/linux/daemons/devfsd/%{name}-v%{version}.tar.gz
10 # Source0-md5:  44c6394b8e2e8feaf453aeddc8a3ee69
11 Source1:        %{name}.conf
12 Patch0:         %{name}-lirc.patch
13 Patch1:         %{name}-optflags.patch
14 Patch2:         %{name}-kernel2.5.patch
15 Patch3:         %{name}-drzewo.patch
16 Patch4:         %{name}-include.patch
17 URL:            http://www.atnf.csiro.au/~rgooch/linux/
18 Conflicts:      kernel =< 2.2
19 Requires:       devfs
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %define         _exec_prefix    /
23 %define         _sbindir        /sbin
24
25 %description
26 The devfsd programme is a daemon, run by the system boot scripts which
27 can provide for intelligent management of device entries in the Device
28 Filesystem (devfs).
29
30 As part of its setup phase devfsd creates certain symbolic links which
31 are compiled into the code. These links are required by
32 /usr/src/linux/Documentation/devices.txt. This behaviour may change in
33 future revisions.
34
35 devfsd will read the special control file .devfsd in a mounted devfs,
36 listening for the creation and removal of device entries (this is
37 termed a change operation). For each change operation, devfsd can take
38 many actions. The daemon will normally run itself in the background
39 and send messages to syslog.
40
41 The opening of the syslog service is automatically delayed until
42 /dev/log is created.
43
44 At startup, before switching to daemon mode, devfsd will scan the
45 mounted device tree and will generate synthetic REGISTER events for
46 each leaf node.
47
48 %description -l pl.UTF-8
49 Devfsd jest demonem startowanym ze skryptów startowych systemu, który
50 daje możliwość inteligentnego zarządzania wpisami w Device Filesystem
51 (devfs). Jako część fazy ustawień devfsd tworzy linki symboliczne,
52 które są wkompilowane w kod. Te linki są wymagane zgodnie z
53 /usr/src/linux/Documentation/devices.txt. To zachowanie może się
54 zmienić w przyszłości.
55
56 devfsd czyta specjalny plik kontrolny .devfsd w zamontowanym katalogu
57 devfs i czeka na na tworzenie i usuwanie wpisów urządzeń (nazywa się
58 to operacją zmiany). Dla każdej zmiany devfsd może podjąć wiele
59 działań. Demon normalnie uruchamia sam siebie i wysyła komunikat do
60 syslog'a.
61
62 Otwarcie syslog'a jest normalnie automatycznie opóźnione do czasu, gdy
63 /dev/log nie zostanie utworzony.
64
65 Demon systemu plików urządzeń. Pozwala na używanie "tradycyjnych" nazw
66 urządzeń.
67
68 %prep
69 %setup  -q -n %{name}
70 %patch0 -p1
71 %patch1 -p1
72 %if %{with kernel25}
73 %patch2 -p1
74 %endif
75 %patch3 -p1
76 %patch4 -p1
77
78 %build
79 %{__make} \
80         CC="%{__cc}" \
81         CEXTRAS="%{rpmcflags} -I." \
82         nsl_libs=`echo /%{_lib}/libnsl.so.*` \
83         LIBNSL=`echo /%{_lib}/libnsl.so.*`
84
85 %install
86 rm -rf $RPM_BUILD_ROOT
87 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/{man8,man5},%{_sysconfdir}}
88
89 install devfsd          $RPM_BUILD_ROOT%{_sbindir}
90 install devfsd.8        $RPM_BUILD_ROOT%{_mandir}/man8
91 install devfsd.conf.5   $RPM_BUILD_ROOT%{_mandir}/man5
92 install modules.devfs   $RPM_BUILD_ROOT%{_sysconfdir}/modules.devfs
93 install %{SOURCE1}      $RPM_BUILD_ROOT%{_sysconfdir}/devfsd.conf
94
95 %clean
96 rm -rf $RPM_BUILD_ROOT
97
98 %files
99 %defattr(644,root,root,755)
100 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/devfsd.conf
101 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/modules.devfs
102 %attr(755,root,root) %{_sbindir}/*
103 %{_mandir}/man?/*
This page took 0.054 seconds and 2 git commands to generate.