# HG changeset patch # User Pascal Bellard # Date 1242226445 -7200 # Node ID 0bbb663f838fd88d548f81314ed31c7f13c03f79 # Parent be451b2403b1fe83e9b98bcecb723c3f777187ce Add linux-wimax diff -r be451b2403b1 -r 0bbb663f838f linux-wimax/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/linux-wimax/receipt Wed May 13 16:54:05 2009 +0200 @@ -0,0 +1,39 @@ +# SliTaz package receipt. + +PACKAGE="linux-wimax" +VERSION="2.6.29.3" +CATEGORY="base-system" +SHORT_DESC="The Linux kernel wimax modules." +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 drivers/net/wimax net/wimax | 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() +{ + chroot "$1/" depmod -a $VERSION-slitaz +} + +post_remove() +{ + depmod -a $VERSION-slitaz +} +