3 # _without_dist_kernel without kernel from distribution
7 Summary: Web-based Distributed Authoring and Versioning
8 Summary(pl): Bazuj±cy na WWW Rozproszone Autoryzowanie i Wersjonowanie
14 Source0: http://prdownloads.sourceforge.net/dav/%{name}-%{version}.tar.gz
16 Patch0: %{name}-path.patch
17 Patch1: %{name}-is_socket_ready.patch
18 URL: http://dav.sourceforge.net/
19 %{!?_without_dist_kernel:BuildRequires: kernel-headers}
20 BuildRequires: autoconf
21 BuildRequires: %{kgcc_package}
22 BuildRequires: openssl-devel
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 %define _sysconfdir /etc
28 WebDAV is an acronym for Web-based Distributed Authoring and Version-
29 ing. Usually http is a read only protocol, but if you install DAV on
30 your web server, it becomes writable. Furthermore, if you use DAVfs,
31 you can mount your web server onto your filesystem and can use it as a
35 WebDAV to bazuj±cy na WWW Rozproszone Autoryzowanie i Wersjonowanie.
36 Zazwyczaj protokó³ http jest protoko³em tylko do odczytu ale po
37 zainstalowaniu DAVa staje siê on równie¿ zapisywalnym. Co wiêcej je¶li
38 u¿ywasz DAVfs to mo¿esz montowaæ swój serwer www jako system plików i
39 u¿ywaæ tak jak normalnego dysku.
41 %package -n kernel-fs-davfs
42 Summary: DAVfs - Drivers
43 Summary(pl): DAVfs - Sterowniki
44 Release: %{_rel}@%{_kernel_ver_str}
47 %{!?_without_dist_kernel:%requires_releq_kernel_up}
50 %description -n kernel-fs-davfs
51 WebDAV is an acronym for Web-based Distributed Authoring and Version-
52 ing. Usually http is a read only protocol, but if you install DAV on
53 your web server, it becomes writable. Furthermore, if you use DAVfs,
54 you can mount your web server onto your filesystem and can use it as a
57 %description -n kernel-fs-davfs -l pl
58 WebDAV to bazuj±cy na WWW Rozproszone Autoryzowanie i Wersjonowanie.
59 Zazwyczaj protokó³ http jest protoko³em tylko do odczytu ale po
60 zainstalowaniu DAVa staje siê on równie¿ zapisywalnym. Co wiêcej je¶li
61 u¿ywasz DAVfs to mo¿esz montowaæ swój serwer www jako system plików i
62 u¿ywaæ tak jak normalnego dysku.
64 %package -n kernel-smp-fs-davfs
65 Summary: DAVfs - SMP Drivers
66 Summary(pl): DAVfs - Sterowniki SMP
67 Release: %{_rel}@%{_kernel_ver_str}
70 %{!?_without_dist_kernel:%requires_releq_kernel_smp}
72 %description -n kernel-smp-fs-davfs
73 WebDAV is an acronym for Web-based Distributed Authoring and Version-
74 ing. Usually http is a read only protocol, but if you install DAV on
75 your web server, it becomes writable. Furthermore, if you use DAVfs,
76 you can mount your web server onto your filesystem and can use it as a
79 %description -n kernel-smp-fs-davfs -l pl
80 WebDAV to bazuj±cy na WWW Rozproszone Autoryzowanie i Wersjonowanie.
81 Zazwyczaj protokó³ http jest protoko³em tylko do odczytu ale po
82 zainstalowaniu DAVa staje siê on równie¿ zapisywalnym. Co wiêcej je¶li
83 u¿ywasz DAVfs to mo¿esz montowaæ swój serwer www jako system plików i
84 u¿ywaæ tak jak normalnego dysku.
94 --with-kernel=%{_kernelsrcdir}
97 %{__make} -C davfs clean all \
99 CFLAGS="-O2 -D__KERNEL__ -DMODULE -D__SMP__ -DCONFIG_X86_LOCAL_APIC \
100 -I%{_kernelsrcdir}/include -Wall -Wstrict-prototypes -fomit-frame-pointer \
101 -fno-strict-aliasing -pipe -fno-strength-reduce"
102 mv davfs/davfs.o davfs-smp.o
104 %{__make} -C davfs clean all \
106 CFLAGS="-O2 -D__KERNEL__ -DMODULE \
107 -I%{_kernelsrcdir}/include -Wall -Wstrict-prototypes -fomit-frame-pointer \
108 -fno-strict-aliasing -pipe -fno-strength-reduce"
111 rm -rf $RPM_BUILD_ROOT
112 install -d $RPM_BUILD_ROOT{/sbin,%{_sysconfdir}/rc.d/init.d}
113 install -d $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}{,smp}/misc
115 echo "all install:" > davfs/Makefile
118 DESTDIR=$RPM_BUILD_ROOT
120 install davfs/davfs.o $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/misc/davfs.o
121 install davfs-smp.o $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/misc/davfs.o
122 ln -s %{_sbindir}/mount.davfs $RPM_BUILD_ROOT/sbin/mount.davfs
124 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/davfsd
128 %post -n kernel-fs-davfs
131 %postun -n kernel-fs-davfs
134 %post -n kernel-smp-fs-davfs
137 %postun -n kernel-smp-fs-davfs
141 /sbin/chkconfig --add davfsd
142 if [ -f /var/lock/subsys/davfsd ]; then
143 /etc/rc.d/init.d/davfsd restart 1>&2
145 echo "Run \"/etc/rc.d/init.d/davfsd start\" to start davfsd daemon."
149 if [ "$1" = "0" ]; then
150 if [ -f /var/lock/subsys/davfsd ]; then
151 /etc/rc.d/init.d/davfsd stop 1>&2
153 /sbin/chkconfig --del davfsd
157 rm -rf $RPM_BUILD_ROOT
160 %defattr(644,root,root,755)
162 %attr(755,root,root) /sbin/*
163 %attr(755,root,root) %{_sbindir}/*
164 %attr(754,root,root) /etc/rc.d/init.d/davfsd
166 %files -n kernel-fs-davfs
167 %defattr(644,root,root,755)
168 %attr(600,root,root) /lib/modules/%{_kernel_ver}/misc/*.o
170 %files -n kernel-smp-fs-davfs
171 %defattr(644,root,root,755)
172 %attr(600,root,root) /lib/modules/%{_kernel_ver}smp/misc/*.o