1 %bcond_without kernel25
3 Summary(pl): Demon DevFS
9 Source0: ftp://ftp.atnf.csiro.au/pub/people/rgooch/linux/daemons/devfsd/%{name}-v%{version}.tar.gz
10 # Source0-md5: 44c6394b8e2e8feaf453aeddc8a3ee69
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
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 %define _exec_prefix /
23 %define _sbindir /sbin
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
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
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.
41 The opening of the syslog service is automatically delayed until
44 At startup, before switching to daemon mode, devfsd will scan the
45 mounted device tree and will generate synthetic REGISTER events for
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.
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
62 Otwarcie syslog'a jest normalnie automatycznie opó¼nione do czasu, gdy
63 /dev/log nie zostanie utworzony.
65 Demon systemu plików urz±dzeñ. Pozwala na u¿ywanie "tradycyjnych" nazw
81 CEXTRAS="%{rpmcflags} -I." \
82 nsl_libs=`echo /%{_lib}/libnsl.so.*` \
83 LIBNSL=`echo /%{_lib}/libnsl.so.*`
86 rm -rf $RPM_BUILD_ROOT
87 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/{man8,man5},%{_sysconfdir}}
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
96 rm -rf $RPM_BUILD_ROOT
99 %defattr(644,root,root,755)
100 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/devfsd.conf
101 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/modules.devfs
102 %attr(755,root,root) %{_sbindir}/*