#!/bin/bash ## src2pkg script for: fuse ## Auto-generated by src2pkg-1.1 ## src2pkg Copyright 2006-2007 Gilbert Ashley SOURCE_NAME='fuse-2.6.3.tar.gz' NAME='fuse' VERSION='2.6.3' ARCH='i486' BUILD='1' PRE_FIX='/usr' # Any extra options go here EXTRA_CONFIGS='--with-kernel=/usr/src/linux' # Get the functions and configs source /usr/libexec/src2pkg/FUNCTIONS ; # do_all_processes can substitute these 16 steps: pre_process find_source make_dirs unpack_source fix_source_perms configure_source compile_source fake_install # if you use kernel 2.4.xx you neeed to use the kernel module from fuse 2.5.x # this is recommended in the fuse-2.6 sources KVERSION=`uname -r` if [[ `echo $KVERSION |grep '2.4'` ]] ; then echo "Now building kernel module for kernel-2.4" cd $SRC_BUILDS_DIR && tar xf $SOURCES_DIR/fuse-2.5.3.tar.bz2 cd $SRC_BUILDS_DIR/fuse-2.5.3 ; echo -n " configuring... " ./configure --with-kernel=/usr/src/linux --disable-util --disable-example &> /dev/null echo "Done." echo -n " compiling... " make &> /dev/null echo "Done." mkdir -p $PKG_DIR/lib/modules/$KVERSION/kernel/fs/fuse echo " Copying kernel module into PKG_DIR..." cp $SRC_BUILDS_DIR/fuse-2.5.3/kernel/fuse.o $PKG_DIR/lib/modules/$KVERSION//kernel/fs/fuse/ cd $SRC_BUILDS_DIR ; echo " Removing kernel module build files..." rm -rf $SRC_BUILDS_DIR/fuse-2.5.3 fi fix_pkg_perms strip_bins create_docs compress_man_pages make_description make_doinst make_package post_process # src2pkg - Copyright 2005-2007 Gilbert Ashley ## See the documentation for more help and examples. Below are some of # the most common Extras and Options for easy cut-and-paste use. # EXTRA_CONFIGS='' PRE_FIX='' DOCLIST='' # MAKE_COMMAND='' INSTALL_LINE='' # SHELL_INSTALL='YES' CORRECT_PERMS='NO'