]> git.pld-linux.org Git - packages/devfsd.git/blob - devfsd.spec
- bcond_with(out) is followed by one \t, then bcond's name.
[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:        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
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 devfsd
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 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}/*
103 %{_mandir}/man?/*
This page took 0.072764 seconds and 3 git commands to generate.