# SliTaz package receipt. PACKAGE="linux-libre-usbip" VERSION="2.6.37-libre" CATEGORY="base-system" SHORT_DESC="The Linux Libre kernel usbip module." MAINTAINER="gokhlayeh@slitaz.org" PROVIDE="linux-usbip" DEPENDS="linux-libre" WANTED="linux-libre" WEB_SITE="http://www.fsfla.org/svnwiki/selibre/linux-libre/" PROVIDE="usbip-module" # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { local path path=lib/modules/$VERSION-slitaz/kernel mkdir -p $fs/$path export src export _pkg $wanted_stuff/list_modules.sh drivers/staging/usbip | while read module; do dir=$path/$(dirname $module) [ -d $fs/$dir ] || mkdir -p $fs/$dir cp -a $_pkg/$path/$module $fs/$dir done } # Post install/remove commands for Tazpkg. post_install() { grep -qs ^${PACKAGE##*-}$ $1/etc/filesystems || \ echo "${PACKAGE##*-}" >> $1/etc/filesystems chroot "$1/" depmod -a $VERSION-slitaz } post_remove() { sed -i "/^${PACKAGE##*-}\$/d" $1/etc/filesystems chroot "$1/" depmod -a $VERSION-slitaz }