# SliTaz package receipt. PACKAGE="linux-libre-nbd" VERSION="3.18.129-gnu" CATEGORY="base-system" SHORT_DESC="The Linux Libre kernel network block device modules." MAINTAINER="gokhlayeh@slitaz.org" LICENSE="GPL2" PROVIDE="linux-nbd" WANTED="linux-libre" WEB_SITE="http://www.fsfla.org/svnwiki/selibre/linux-libre/" # 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/block/nbd.ko.xz | \ while read module; do dir=$path/$(dirname $module) [ -d $fs/$dir ] || mkdir -p $fs/$dir cp -a $install/$path/$module $fs/$dir done } # Post install/remove commands for Tazpkg. post_install() { chroot "$1/" depmod -a $VERSION-slitaz } post_remove() { chroot "$1/" depmod -a $VERSION-slitaz }