'lufs.spec' is now substituted by 'configure' from 'lufs.spec.in'.
authorshort <>
Tue, 19 Aug 2003 08:05:58 +0000 (08:05 +0000)
committershort <>
Tue, 19 Aug 2003 08:05:58 +0000 (08:05 +0000)
configure.in
lufs.spec.in [new file with mode: 0644]

index 51c148f..14db26a 100644 (file)
@@ -261,6 +261,7 @@ AC_OUTPUT(\
        config/Makefile \
        docs/Makefile \
        man/Makefile \
+       lufs.spec \
         )
 
 echo "###############################################################################"
diff --git a/lufs.spec.in b/lufs.spec.in
new file mode 100644 (file)
index 0000000..feee862
--- /dev/null
@@ -0,0 +1,105 @@
+# Your kernel version, tries to auto-detect here
+%define kernelversion %(uname -r)
+
+%define name    lufs
+%define version 0.8.2
+
+Summary:       lufs - Linux Userland File System
+Name:          %{name}
+Version:       %{version}
+Release:       1
+License:       GPL
+Group:         Base
+Source0:       %{name}-%{version}.tar.gz
+Patch1:     lufs-rpmbuild.patch
+
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: libtool
+#BuildRequires:        kernel-source = %{kernelversion}
+
+Requires:   kernel = %{kernelversion}
+
+BuildRoot:     /tmp/buildroot-%{name}-%{version}
+
+%description
+LUFS is a hybrid userspace filesystem framework supporting many filesystems:
+sshfs, ftpfs, localfs, locasefs, gvfs, cardfs, cefs, etc.  Lots of other 
+"exotic" filesystems are in the planning phase: socketfs, httpfs, freenetfs
+and others.
+
+
+%prep
+%setup -q
+
+%patch1 -p1
+
+%build
+%{__libtoolize}
+aclocal
+%{__autoconf}
+%{__automake}
+%configure \
+       --with-kernel=%{kernelversion} \
+       --with-kheaders=/lib/modules/%{kernelversion}/build/include 
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+
+ln -s /usr/bin/auto.sshfs /etc/auto.sshfs
+ln -s /usr/bin/auto.ftpfs /etc/auto.ftpfs
+ln -s /usr/bin/lufsd /sbin/mount.lufs
+
+depmod -a
+
+if [ "`lsmod | grep lufs`" ]; then rmmod lufs; fi
+
+modprobe lufs
+
+%preun
+
+if [ "`lsmod | grep lufs`" ]; then rmmod lufs; fi
+
+%postun
+
+depmod -a
+
+rm -f /etc/auto.sshfs
+rm -f /etc/auto.ftpfs
+rm -f /sbin/mount.lufs
+
+
+%files
+%defattr(644,root,root)
+
+/lib/modules/%{kernelversion}/kernel/fs/lufs/lufs.o
+/etc/lufsd.conf
+
+%defattr(755,root,root)
+
+/usr/bin/lufsd
+/usr/bin/lussh
+/usr/bin/lufsmount
+
+/usr/bin/auto.sshfs
+/usr/bin/auto.ftpfs
+
+# These are SUID root...
+
+%defattr(4755,root,root)
+/usr/bin/lufsmnt
+/usr/bin/lufsumount
+
+
+%changelog
+* Sun Nov 24 2002 Dave Wilson <dave@...>
+- initial version