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
15 Patch0: %{name}-path.patch
16 Patch1: %{name}-is_socket_ready.patch
17 URL: http://dav.sourceforge.net/
18 %{!?_without_dist_kernel:BuildRequires: kernel-headers}
19 BuildRequires: autoconf
20 BuildRequires: %{kgcc_package}
21 BuildRequires: openssl-devel
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 %define _sysconfdir /etc
27 WebDAV is an acronym for Web-based Distributed Authoring and Version-
28 ing. Usually http is a read only protocol, but if you install DAV on
29 your web server, it becomes writable. Furthermore, if you use DAVfs,
30 you can mount your web server onto your filesystem and can use it as a
34 WebDAV to bazuj±cy na WWW Rozproszone Autoryzowanie i Wersjonowanie.
35 Zazwyczaj protokó³ http jest protoko³em tylko do odczytu ale po
36 zainstalowaniu DAVa staje siê on równie¿ zapisywalnym. Co wiêcej je¶li
37 u¿ywasz DAVfs to mo¿esz montowaæ swój serwer www jako system plików i
38 u¿ywaæ tak jak normalnego dysku.
40 %package -n kernel-fs-davfs
41 Summary: DAVfs - Drivers
42 Summary(pl): DAVfs - Sterowniki
43 Release: %{_rel}@%{_kernel_ver_str}
46 %{!?_without_dist_kernel:%requires_releq_kernel_up}
49 %description -n kernel-fs-davfs
50 WebDAV is an acronym for Web-based Distributed Authoring and Version-
51 ing. Usually http is a read only protocol, but if you install DAV on
52 your web server, it becomes writable. Furthermore, if you use DAVfs,
53 you can mount your web server onto your filesystem and can use it as a
56 %description -n kernel-fs-davfs -l pl
57 WebDAV to bazuj±cy na WWW Rozproszone Autoryzowanie i Wersjonowanie.
58 Zazwyczaj protokó³ http jest protoko³em tylko do odczytu ale po
59 zainstalowaniu DAVa staje siê on równie¿ zapisywalnym. Co wiêcej je¶li
60 u¿ywasz DAVfs to mo¿esz montowaæ swój serwer www jako system plików i
61 u¿ywaæ tak jak normalnego dysku.
63 %package -n kernel-smp-fs-davfs
64 Summary: DAVfs - SMP Drivers
65 Summary(pl): DAVfs - Sterowniki SMP
66 Release: %{_rel}@%{_kernel_ver_str}
69 %{!?_without_dist_kernel:%requires_releq_kernel_smp}
71 %description -n kernel-smp-fs-davfs
72 WebDAV is an acronym for Web-based Distributed Authoring and Version-
73 ing. Usually http is a read only protocol, but if you install DAV on
74 your web server, it becomes writable. Furthermore, if you use DAVfs,
75 you can mount your web server onto your filesystem and can use it as a
78 %description -n kernel-smp-fs-davfs -l pl
79 WebDAV to bazuj±cy na WWW Rozproszone Autoryzowanie i Wersjonowanie.
80 Zazwyczaj protokó³ http jest protoko³em tylko do odczytu ale po
81 zainstalowaniu DAVa staje siê on równie¿ zapisywalnym. Co wiêcej je¶li
82 u¿ywasz DAVfs to mo¿esz montowaæ swój serwer www jako system plików i
83 u¿ywaæ tak jak normalnego dysku.
93 --with-kernel=%{_kernelsrcdir}
96 %{__make} -C davfs clean all \
98 CFLAGS="-O2 -D__KERNEL__ -DMODULE -D__SMP__ -DCONFIG_X86_LOCAL_APIC \
99 -I%{_kernelsrcdir}/include -Wall -Wstrict-prototypes -fomit-frame-pointer \
100 -fno-strict-aliasing -pipe -fno-strength-reduce"
101 mv davfs/davfs.o davfs-smp.o
103 %{__make} -C davfs clean all \
105 CFLAGS="-O2 -D__KERNEL__ -DMODULE \
106 -I%{_kernelsrcdir}/include -Wall -Wstrict-prototypes -fomit-frame-pointer \
107 -fno-strict-aliasing -pipe -fno-strength-reduce"
110 rm -rf $RPM_BUILD_ROOT
111 install -d $RPM_BUILD_ROOT{/sbin,%{_sysconfdir}/rc.d/init.d}
112 install -d $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}{,smp}/misc
114 echo "all install:" > davfs/Makefile
117 DESTDIR=$RPM_BUILD_ROOT
119 install davfs/davfs.o $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/misc/davfs.o
120 install davfs-smp.o $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/misc/davfs.o
121 ln -s %{_sbindir}/mount.davfs $RPM_BUILD_ROOT/sbin/mount.davfs
125 %post -n kernel-fs-davfs
128 %postun -n kernel-fs-davfs
131 %post -n kernel-smp-fs-davfs
134 %postun -n kernel-smp-fs-davfs
138 /sbin/chkconfig --add davfsd
139 if [ -f /var/lock/subsys/davfsd ]; then
140 /etc/rc.d/init.d/davfsd restart 1>&2
142 echo "Run \"/etc/rc.d/init.d/davfsd start\" to start davfsd daemon."
146 if [ "$1" = "0" ]; then
147 if [ -f /var/lock/subsys/davfsd ]; then
148 /etc/rc.d/init.d/davfsd stop 1>&2
150 /sbin/chkconfig --del davfsd
154 rm -rf $RPM_BUILD_ROOT
157 %defattr(644,root,root,755)
159 %attr(755,root,root) /sbin/*
160 %attr(755,root,root) %{_sbindir}/*
162 %files -n kernel-fs-davfs
163 %defattr(644,root,root,755)
164 %attr(600,root,root) /lib/modules/%{_kernel_ver}/misc/*.o
166 %files -n kernel-smp-fs-davfs
167 %defattr(644,root,root,755)
168 %attr(600,root,root) /lib/modules/%{_kernel_ver}smp/misc/*.o