wok-next diff atl2/receipt @ rev 1210
Add cyrus-imapd
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Aug 09 14:25:01 2008 +0000 (2008-08-09) |
parents | |
children | c343c644ab92 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/atl2/receipt Sat Aug 09 14:25:01 2008 +0000 1.3 @@ -0,0 +1,49 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="atl2" 1.7 +VERSION="2.0.4" 1.8 +CATEGORY="system-tools" 1.9 +SHORT_DESC="Driver for the Atheros L2" 1.10 +MAINTAINER="erjo@slitaz.org" 1.11 +DEPENDS="" 1.12 +TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.13 +WEB_SITE="http://atl2.sf.net/" 1.14 +WGET_URL="http://people.redhat.com/csnook/atl2/atl2-2.0.4.tar.bz2" 1.15 + 1.16 +# Rules to configure and make the package. 1.17 +compile_rules() 1.18 +{ 1.19 + KVER=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g` 1.20 + if [ ! -d $WOK/linux/linux-$KVER ]; then 1.21 + tazwok cook linux 1.22 + fi 1.23 + cd $src 1.24 + make 1.25 +} 1.26 + 1.27 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.28 +genpkg_rules() 1.29 +{ 1.30 + KVER=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g` 1.31 + EXTRAVERSION=_$KVER 1.32 + 1.33 + mkdir -p $fs/lib/modules/${KVER}-slitaz/kernel/drivers/net 1.34 + 1.35 + # Find all modules (gztazmod.sh code). 1.36 + echo -n "Searching all modules to compress them... " 1.37 + find $src -name "*.ko" -exec lzma e '{}' '{}'.gz \; 1.38 + 1.39 + # copy module 1.40 + cp -a $src/*.gz $fs/lib/modules/${KVER}-slitaz/kernel/drivers/net 1.41 +} 1.42 + 1.43 +# Post install/remove commands for Tazpkg. 1.44 +post_install() 1.45 +{ 1.46 + depmod -a -b /$1 1.47 +} 1.48 + 1.49 +post_remove() 1.50 +{ 1.51 + depmod -a 1.52 +}