wok-tiny diff module-tun/receipt @ rev 126

Update config_form()
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 12 19:39:46 2017 +0100 (2017-02-12)
parents
children 1aa08ca3ecaf
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/module-tun/receipt	Sun Feb 12 19:39:46 2017 +0100
     1.3 @@ -0,0 +1,33 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="module-tun"
     1.7 +VERSION="2.6.14"
     1.8 +CATEGORY="base-system"
     1.9 +GROUP="driver,ethernet"
    1.10 +SHORT_DESC="Kernel module for the Universal TUN/TAP device driver"
    1.11 +MAINTAINER="pascal.bellard@slitaz.org"
    1.12 +LICENSE="GPL2"
    1.13 +WEB_SITE="http://tiny.slitaz.org/"
    1.14 +WANTED="linux"
    1.15 +
    1.16 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.17 +genpkg_rules()
    1.18 +{
    1.19 +	local path
    1.20 +	export src=$WOK/$WANTED/source/linux-$VERSION
    1.21 +	export _pkg=$WOK/$WANTED/install
    1.22 +	path=lib/modules/$(ls $_pkg/lib/modules)/kernel
    1.23 +	mkdir -p $fs/$path
    1.24 +	$src/slitaz/list_modules.sh drivers/net/${PACKAGE#*-}* | while read module; do
    1.25 +		dir=$path/$(dirname $module)
    1.26 +		[ -d $fs/$dir ] || mkdir -p $fs/$dir
    1.27 +		cp -a $_pkg/$path/$module $fs/$dir
    1.28 +	done
    1.29 +}
    1.30 +
    1.31 +# Post install/remove commands for Tazpkg.
    1.32 +post_install()
    1.33 +{
    1.34 +	grep -qs "^${PACKAGE#*-}|" $1/modules ||
    1.35 +	echo "${PACKAGE#*-}" >> $1/modules
    1.36 +}