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