]> git.pld-linux.org Git - packages/devfsd.git/blob - devfsd.spec
- devfsd.init starts devfsd after init-level change
[packages/devfsd.git] / devfsd.spec
1 Summary:        DevFS Daemon
2 Summary(pl):    Deamon DevFS
3 Name:           devfsd
4 Version:        1.3.18
5 Release:        2
6 License:        GPL
7 Source0:        ftp://ftp.atnf.csiro.au/pub/people/rgooch/linux/daemons/devfsd/%{name}-v%{version}.tar.gz
8 Source1:        %{name}.conf
9 Source2:        %{name}.init
10 Group:          Base
11 Group(de):      Gründsätzlich
12 Group(es):      Base
13 Group(pl):      Podstawowe
14 Group(pt_BR):   Base
15 Conflicts:      kernel =< 2.2
16 Requires:       devfs
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %define         _exec_prefix    /
20
21 %description
22 The devfsd programme is a daemon, run by the system boot scripts which
23 can provide for intelligent management of device entries in the Device
24 Filesystem (devfs).
25
26 As part of its setup phase devfsd creates certain symbolic links which
27 are compiled into the code. These links are required by
28 /usr/src/linux/Documentation/devices.txt. This behaviour may change in
29 future revisions.
30
31 devfsd will read the special control file .devfsd in a mounted devfs,
32 listening for the creation and removal of device entries (this is
33 termed a change operation). For each change operation, devfsd can take
34 many actions. The daemon will normally run itself in the background
35 and send messages to syslog.
36
37 The opening of the syslog service is automatically delayed until
38 /dev/log is created.
39
40 At startup, before switching to daemon mode, devfsd will scan the
41 mounted device tree and will generate synthetic REGISTER events for
42 each leaf node.
43
44 %description -l pl
45 Devfsd jest demonem startowanym ze skryptów startowych systemu, który
46 daje mo¿liwo¶æ inteligentnego zarz±dzania wpisami w Device Filesystem 
47 (devfs).
48 Jako czê¶æ fazy ustawieñ devfsd tworzy linki symboliczne, które s±
49 wkompilowane w kod. Te linki s± wymagane zgodnie z 
50 /usr/src/linux/Documentation/devices.txt. To zachowanie mo¿e siê zmieniæ 
51 w przysz³o¶ci.
52
53 devfsd czyta specjalny plik kontrolny .devfsd w zamountowanym katalogu
54 devfs i czeka na na tworzenie i usuwanie wpisów urz±dzeñ (nazywa siê to
55 operacj± zmiany). Dla ka¿dej zmiany devfsd mo¿e podj±æ wiele dzia³añ. 
56 Demon normalnie uruchamia sam siebie i wysy³a komunikat do syslog'a.
57
58 Otwarcie syslog'a jest normalnie automatycznie opó¼nione do czasu, gdy
59 /dev/log nie zostanie utworzony.
60
61 Demon systemu plików urz±dzeñ. Pozwala na u¿ywanie "tradycyjnych" nazw
62 urz±dzeñ.
63
64 %prep
65 %setup  -q -n devfsd
66
67 %build
68 %{__make} CEXTRAS="%{rpmcflags} -I."
69
70 %install
71 rm -rf $RPM_BUILD_ROOT
72
73 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/{man8,man5},%{_sysconfdir}}
74
75 install devfsd          $RPM_BUILD_ROOT%{_sbindir}
76 install devfsd.8        $RPM_BUILD_ROOT%{_mandir}/man8
77 install devfsd.conf.5   $RPM_BUILD_ROOT%{_mandir}/man5
78 install modules.devfs   $RPM_BUILD_ROOT%{_sysconfdir}/modules.devfs
79 install %{SOURCE1}      $RPM_BUILD_ROOT%{_sysconfdir}/devfsd.conf
80 install %{SOURCE2}      $RPM_BUILD_ROOT/etc/rc.d.init.d/%{name}
81
82 %post
83 /sbin/chkconfig --add devfsd
84 if [ -f /var/lock/subsys/devfsd ]; then
85         /etc/rc.d/init.d/devfsd restart >&2
86 else
87         echo "Run \"/etc/rc.d/init.d/devfsd start\" to activate devfsd."
88 fi
89
90 %preun
91 if [ "$1" = "0" ]; then
92         if [ -f /var/lock/subsys/devfsd ]; then
93                 /etc/rc.d/init.d/devfsd stop >&2
94         fi
95         /sbin/chkconfig --del devfsd
96 fi
97
98 %clean 
99 rm -rf $RPM_BUILD_ROOT
100
101 %files 
102 %defattr(644,root,root,755)
103 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/devfsd.conf
104 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/modules.devfs
105 %attr(755,root,root) %{_sbindir}/*
106 %attr(754,root,root) /etc/rc.d./init.d/%{name}
107 %{_mandir}/man*/*.gz
This page took 0.038929 seconds and 3 git commands to generate.