http://tcs.ii.uj.edu.pl/~buildcentos/fuse/ contains my end results plus the build script (rpmmacros included as attachment), I haven't yet upgraded to the centos 4.4 kernel as this is a major move for me (a couple dozen machines, not all centos, not all rpm-managed, not all with HDDs should be running the same version) and I simply haven't gotten around to it (I should automate it...). However, it should be relatively simple to do... Maciej On Thu, 14 Sep 2006, Dave Hatton wrote: > Hi > > A search of google failed to show any prebuilt rpms for sshfs and fuse. > > I do see that fuse support is in 2.6.14 kernel which isn't a whole lot of > help. > > Before I dive headlong into this has anyone successfully built fuse/sshfs > against Centos 4.4. > > If so would you share your experience? > > Thanks > > Daveh > > > _______________________________________________ > CentOS mailing list > CentOS@xxxxxxxxxx > http://lists.centos.org/mailman/listinfo/centos >
%packager Maciej Ĺťenczykowski %distribution CentOS4 %vendor TCS-II-UJ %_signature gpg %_gpg_name maze@xxxxxxxxxxxxxxxx %_gpg_path ~/.gnupg %_topdir /home/buildcentos/rpm %_tmppath %{_topdir}/tmp #%_rpmtopdir %{_topdir}/%{name} #%_builddir %{_rpmtopdir}/BUILD #%_rpmdir %{_rpmtopdir}/RPMS #%_sourcedir %{_rpmtopdir}/SOURCES #%_specdir %{_rpmtopdir}/SPECS #%_srcrpmdir %{_rpmtopdir}/SRPMS %disttag centos4 %repotag maze # Change default RPM query format to show ARCH %_query_all_fmt %%{name}-%%{version}-%%{release}.%%{arch} # %_query_all_fmt %%{epoch}:%%{name}-%%{version}-%%{release}.%%{arch} # # Please distribute *only* with this comment block. # # These are the macros used in ATrpms' build machine. They may or may # not work in your setup, but you will get the idea and adapt them to # your setup or vice-versa. # # If you think that these macros are all you need for rebuilding kmdl # rpms you are in error, you also need a working kernel source tree # infrastructure to point these macros to. # # E.g. perform the same steps the Red Hat kernel specfiles do for # setting up a kernel. You only need to go as far as # configuring/preparing the tree. Building the kernel/kernel module # themselves is overkill. # %_kernel %(uname -r) %disttag3 el4 # %_kernel 2.6.9-34.0.1.ELsmp %kmdl_kernelsrcdir /lib/modules/%{_kernel}/build %kmdl_userland %(test "%{_kernel}" = none && echo 1 || echo 0) %_kflavour %(echo %{_kernel} | grep -E '(smp|enterprise|bigmem)' | sed -e's/^.*\\(smp\\|enterprise\\|bigmem\\).*$/\\1/') %_kversion %(echo %{_kernel} | sed -e's/^\\(.*\\)\\(smp\\|enterprise\\|bigmem\\).*$/\\1/') %_krelver %(echo %{_kversion} | sed -e's/-/_/') # The name of the kernel with flavour ("kernel", "kernel-smp", ...) %_kname %(echo kernel-%{_kflavour} | sed -e's/-$//') # A very old naming scheme #_kname2 %(echo kmodule-%{_kflavour} | sed -e's/-$//') # The old ATrpms naming scheme ("kmdl", "kmdl-smp") %_kname3 %(echo kmdl-%{_kflavour} | sed -e's/-$//') %_modflags -include /tmp/atrpms-mykernel-%{_kernel}-%{_target_cpu}.h -DMODULE -DMODVERSIONS -include %{_kernelsrcdir}/include/linux/modversions.h # "kernel": the output of "uname -r" of the kernel to build for # (default: the running one) # "_kernelsrcdir": The directory of the sources used to build "kernel" # (default: /lib/modules/%{_kernel}/build) %kmdl_name %{_kpkgname}-kmdl-%{_kernel} %kmdl_nameof() %1-kmdl-%{_kernel} %kmdl_namepure %{_kpkgname}-kmdl %kmdl_namepureof() %1-kmdl # %kmdl_name_old kernel-module-%{_kpkgname}-%{_kernel} %kmdl_nameof_old() kernel-module-%1-%{_kernel} %kmdl_namepure_old kernel-module-%{_kpkgname} %kmdl_namepureof_old() kernel-module-%1 #_kmdl_name_old %{_kpkgname}-kmdl-%{_kernel} #_kmdl_nameof_old() %1-kmdl-%{_kernel} #_kmdl_name_old %{_kpkgname}-%{_kname3}-%{_kversion} #_kmdl_nameof_old() %1-%{_kname3}-%{_kversion} #_kmdl_namepure_old %{_kpkgname}-kmdl #_kmdl_namepureof_old() %1-kmdl %_kernelbuildreq %{nil} %kmdl() \ %{expand:%%global _kpkgname %1} \ %_kernelbuildreq \ %{nil} %kmdl_parentdependencies\ Requires: %{kmdl_namepure}-%{evr} %kmdl_dependencies\ #Requires: atrpms-kmdl-helper \ #Requires: strictdep-%{_kname}-%{_target_cpu} = %{_kversion}\ Requires: /boot/vmlinuz-%{_kernel}\ Requires: %{_kname} = %{_kversion}, /sbin/depmod, modutils >= 2.4.14\ BuildRequires: %_kernelcompiler\ Provides: %kmdl_namepure-%{evr}\ Provides: %kmdl_namepure-%_kernel = %{evr}\ #\ # backward compatibility kernel-module-foo\ #Provides: %kmdl_namepure_old-%{evr}\ #Provides: %kmdl_namepure_old-%_kernel = %{evr}\ Obsoletes: %kmdl_namepure_old-%{evr}, %kmdl_namepure_old-%_kernel <= %{evr} ## backward compatibility foo-kmdl-smp\ #Provides: %{_kpkgname}-%{_kname3}-%{_kversion} = %{evr}\ #Provides: %{_kpkgname}-kmdl\ ## backward compatibility with foo-kernel-...\ #Provides: %{_kpkgname}-kernel\ #%{?_kflavour:Provides: %{_kpkgname}-%{_kname}}\ #Provides: %{_kpkgname}-%{_kname}-%{_kversion} = %{evr}\ #Provides: %{_kpkgname}-%{_kname}-%{_kversion}-%{_target_cpu} = %{evr}\ ## backward compatibility with unversioned kernel-module-foo\ #Provides: kernel-module-%{_kpkgname}\ #%{?_kflavour:Provides: %{_kname}-module-%{_kpkgname}}\ %_kernelcompiler_el4 /usr/bin/gcc %_kernelcompiler_el3 /usr/bin/gcc %_kernelcompiler_fc4 /usr/bin/gcc %_kernelcompiler_fc3 /usr/bin/gcc %_kernelcompiler_fc2 /usr/bin/gcc %_kernelcompiler_fc1 /usr/bin/gcc32 %_kernelcompiler_rh9 /usr/bin/gcc %_kernelcompiler_rh8_0 /usr/bin/gcc %_kernelcompiler_rh7_3 /usr/bin/gcc %_kernelcompiler %{expand:%%_kernelcompiler_%{disttag3}} %kmdl_moduledir /lib/modules/%{_kernel}/updates %kmdl_config\ export CC=%_kernelcompiler %kmdl_desc\ This package contains the %kmdl_name kernel modules for the Linux kernel package:\ %{_kname}-%{_kversion}.%{_target_cpu}.rpm. %_kernelname %{_kname}-%{_kversion}.%{_target_cpu}.rpm %kmdl_install\ #%{_datadir}/atrpms/addcustomkmdl '/lib/modules/`uname -r`/updates'\ depmod -ae -F /boot/System.map-%{_kernel} %{_kernel} > /dev/null 2>&1 || : %kmdl_remove\ depmod -ae -F /boot/System.map-%{_kernel} %{_kernel} > /dev/null 2>&1 || :
_______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos