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