# HG changeset patch # User Pascal Bellard # Date 1215725504 0 # Node ID cd9d437a5a0fce5bf052c2aac404990b7a8385f6 # Parent 6ea7e8f0074a0fef2ca0669db647e6a094ece29f Add linux-ncpfs diff -r 6ea7e8f0074a -r cd9d437a5a0f linux-ncpfs/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/linux-ncpfs/receipt Thu Jul 10 21:31:44 2008 +0000 @@ -0,0 +1,36 @@ +# SliTaz package receipt. + +PACKAGE="linux-ncpfs" +VERSION="2.6.25.5" +CATEGORY="base-system" +SHORT_DESC="The Linux kernel ncpfs module." +MAINTAINER="pascal.bellard@slitaz.org" +WANTED="linux" +WEB_SITE="http://www.kernel.org/" + +# 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 + $src/list_modules.sh fs/ncpfs | 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() +{ + depmod -a -b "$1/" $VERSION-slitaz +} + +post_remove() +{ + depmod -a $VERSION-slitaz +} +