Hello.
For a few months I've been using rpms that I've built of FUSE. The rpms are split like this: * fuse contains just fusermount and the .so files, plus documentation (README, etc.). * fuse-devel contains the .so symlink for dynamic linking, the static libraries and headers. * kernel_fuse is a dkms-based package containing the kernel module. dkms <http://linux.dell.com/dkms/> is Dynamical Kernel Module Support. This builds the module on install. It also rebuilds the module the first time you boot a new kernel. This means much less work for the user. The downside is that it builds the module as root - depending how paranoid you are, you may not like that. Attached are the spec files and dkms.conf file. Both spec files use the same source tarball, fuse-2.3.0.tar.gz. You can find my rpms for Fedora Core 3 here: http://homepages.nildram.co.uk/~phekda/richdawe/fedora/FC3/ Would there be any interest in including the spec files in the FUSE sources? If there is interest, I can come up with a patch. It would need to integrate building of rpms into the build system. This is because rpm won't build all the rpms. It will build the rpms based on the first spec file. So you'll get either fuse+fuse-devel or just kernel_fuse. Thanks, bye, Rich =] -- Richard Dawe [ http://homepages.nildram.co.uk/~phekda/richdawe/ ] "You can't evaluate a man by logic alone." -- McCoy, "I, Mudd", Star Trek Summary: FUSE (Filesystem in Userspace) Name: fuse Version: 2.3.0 Release: 1 License: GNU LGPL v2 Group: Development/Libraries URL: http://sourceforge.net/projects/fuse Source0: %{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %description FUSE (Filesystem in Userspace) is a simple interface for userspace programs to export a virtual filesystem to the linux kernel. FUSE also aims to provide a secure method for non privileged users to create and mount their own filesystem implementations. %prep %setup -q autoreconf -f -i %{configure} --disable-kernel-module %build %{__make} %install rm -rf $RPM_BUILD_ROOT %{__make} install DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc AUTHORS COPYING COPYING.LIB FAQ Filesystems INSTALL NEWS README README.NFS %{_bindir} %{_libdir}/*.so.* %package devel Group: Development/Libraries Summary: Libraries/include files for FUSE (Filesystem in Userspace) %description devel Install the fuse-devel package if you wish to develop filesystems with FUSE. %files devel %{_includedir} %{_libdir}/*.a %{_libdir}/*.la %{_libdir}/*.so %{_libdir}/pkgconfig/*.pc %changelog * Fri Jun 10 2005 Richard Dawe <[hidden email]> - 2.3.0-1 - Update to 2.3.0. * Sat Mar 19 2005 Richard Dawe <[hidden email]> - 2.2.1-2 - Regenerate configure scripts, to build libraries correctly on x86_64. * Thu Mar 17 2005 Richard Dawe <[hidden email]> - 2.2.1-1 - Update to 2.2.1. * Sun Mar 6 2005 Richard Dawe <[hidden email]> - 2.2-1 - Initial build. Summary: Linux kernel module for FUSE (Filesystem in Userspace) Name: kernel_fuse Version: 2.3.0 Release: 2dkms License: GNU GPL v2 Group: System Environment/Kernel URL: http://sourceforge.net/projects/fuse Source0: fuse-%{version}.tar.gz Source1: kernel_fuse-dkms.conf BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildArch: noarch PreReq: dkms >= 2.0.3 PreReq: gcc PreReq: make %description FUSE (Filesystem in Userspace) is a simple interface for userspace programs to export a virtual filesystem to the linux kernel. FUSE also aims to provide a secure method for non privileged users to create and mount their own filesystem implementations. %prep %setup -q -n fuse-%{version} %build %install [ "$RPM_BUILD_ROOT" != "/" ] && %{__rm} -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_usrsrc} tar -x -z -C $RPM_BUILD_ROOT%{_usrsrc} -f %{SOURCE0} mv \ $RPM_BUILD_ROOT%{_usrsrc}/fuse-%{version} \ $RPM_BUILD_ROOT%{_usrsrc}/%{name}-%{version} cp %{SOURCE1} $RPM_BUILD_ROOT%{_usrsrc}/%{name}-%{version}/dkms.conf %clean [ "$RPM_BUILD_ROOT" != "/" ] && %{__rm} -rf $RPM_BUILD_ROOT %post # Add it (build and install it for currently running kernel if not a BOOT kernel) dkms add -m %name -v %version --rpm_safe_upgrade if [ `uname -r | grep -c "BOOT"` -eq 0 ] && [ -e /lib/modules/`uname -r`/build/include ] ; then dkms build -m %name -v %version dkms install -m %name -v %version elif [ `uname -r | grep -c "BOOT"` -gt 0 ]; then echo -e "Module build for the currently running kernel was skipped" echo -e "since you are running a BOOT variant of the kernel." else echo -e "Module build for the currently running kernel was skipped" echo -e "since the kernel source for this kernel does not seem to be" echo -e "installed." fi %preun echo -e "Uninstall of %name (version %version) beginning:" dkms remove -m %name -v %version --all --rpm_safe_upgrade %files %defattr(-,root,root,-) %{_usrsrc}/%{name}-%{version} %changelog * Fri Jun 10 2005 Richard Dawe <[hidden email]> - 2.3.0-2dkms - Rebuild with corrected version in dkms.conf. - Fix dkms 'clean' step in dkms.conf. * Fri Jun 10 2005 Richard Dawe <[hidden email]> - 2.3.0-1dkms - Update to 2.3.0. * Thu Mar 17 2005 Richard Dawe <[hidden email]> - 2.2.1-1dkms - Update to 2.2.1. * Sun Mar 6 2005 Richard Dawe <[hidden email]> - 2.2-1dkms - Initial build. # # dkms configuraton for fuse. # Written by Richard Dawe <[hidden email]>. # PACKAGE_NAME="fuse" PACKAGE_VERSION="2.3.0" BUILT_MODULE_NAME[0]="fuse" BUILT_MODULE_LOCATION[0]="kernel" DEST_MODULE_LOCATION[0]="/kernel/fs/fuse" MAKE[0]="cd kernel && (-f Makefile || ./configure) && make" CLEAN="cd kernel && (-f Makefile || ./configure) && make clean" AUTOINSTALL="yes" REMAKE_INITRD="no" |
> You can find my rpms for Fedora Core 3 here:
> > http://homepages.nildram.co.uk/~phekda/richdawe/fedora/FC3/ I could place a link to this from the FUSE homepage, so people can find it easier. Would you have objections to that? > Would there be any interest in including the spec files in the FUSE > sources? We've tried this earlier, but it didn't really work out. There were different spec files for different distros and different versions, and I couldn't test either of them (I use debian). Thanks, Miklos ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 _______________________________________________ fuse-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/fuse-devel |
Free forum by Nabble | Edit this page |