http://prdownloads.sourceforge.net/lufs/lufs-0.9.6.tar.gz?download
[lufs.git] / lufs.spec.in
1 # Your kernel version, tries to auto-detect here
2 %define kernelversion %(uname -r)
3
4 Summary:        lufs - Linux Userland File System
5 Name:           @PACKAGE@
6 Version:        @VERSION@
7 Release:        1
8 License:        GPL
9 Group:          Base
10 Source0:        @PACKAGE@-@VERSION@.tar.gz
11 Patch1:     lufs-rpmbuild.patch
12
13 BuildRequires:  autoconf
14 BuildRequires:  automake
15 BuildRequires:  libtool
16 #BuildRequires: kernel-source = %{kernelversion}
17
18 Requires:   kernel = %{kernelversion}
19
20 BuildRoot:      /tmp/buildroot-@PACKAGE@-@VERSION@
21
22 %description
23 LUFS is a hybrid userspace filesystem framework supporting many filesystems:
24 sshfs, ftpfs, localfs, locasefs, gvfs, cardfs, cefs, etc.  Lots of other 
25 "exotic" filesystems are in the planning phase: socketfs, httpfs, freenetfs
26 and others.
27
28
29 %prep
30 %setup -q
31
32 %patch1 -p1
33
34 %build
35 %{__libtoolize}
36 aclocal
37 %{__autoconf}
38 %{__automake}
39 %configure \
40         --with-kernel=%{kernelversion} \
41         --with-kheaders=/lib/modules/%{kernelversion}/build/include 
42 %{__make}
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46
47 %{__make} install \
48         DESTDIR=$RPM_BUILD_ROOT
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53 %post
54
55 ln -s /usr/bin/auto.sshfs /etc/auto.sshfs
56 ln -s /usr/bin/auto.ftpfs /etc/auto.ftpfs
57 ln -s /usr/bin/lufsd /sbin/mount.lufs
58
59 depmod -a
60
61 if [ "`lsmod | grep lufs`" ]; then rmmod lufs; fi
62
63 modprobe lufs
64
65 %preun
66
67 if [ "`lsmod | grep lufs`" ]; then rmmod lufs; fi
68
69 %postun
70
71 depmod -a
72
73 rm -f /etc/auto.sshfs
74 rm -f /etc/auto.ftpfs
75 rm -f /sbin/mount.lufs
76
77
78 %files
79 %defattr(644,root,root)
80
81 /lib/modules/%{kernelversion}/kernel/fs/lufs/lufs.o
82 /etc/lufsd.conf
83
84 %defattr(755,root,root)
85
86 /usr/bin/lufsd
87 /usr/bin/lussh
88 /usr/bin/lufsmount
89
90 /usr/bin/auto.sshfs
91 /usr/bin/auto.ftpfs
92
93 # These are SUID root...
94
95 %defattr(4755,root,root)
96 /usr/bin/lufsmnt
97 /usr/bin/lufsumount
98
99
100 %changelog
101 * Sun Nov 24 2002 Dave Wilson <dave@...>
102 - initial version