wok-6.x rev 13388

Add autossh
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Sep 24 10:21:41 2012 +0200 (2012-09-24)
parents 2a1852262142
children 99598329e19b
files autossh/receipt compcache/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/autossh/receipt	Mon Sep 24 10:21:41 2012 +0200
     1.3 @@ -0,0 +1,29 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="autossh"
     1.7 +VERSION="1.4c"
     1.8 +CATEGORY="network"
     1.9 +SHORT_DESC="Automatically restart SSH sessions and tunnels."
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +WEB_SITE="http://www.harding.motd.ca/autossh/"
    1.12 +TARBALL="$PACKAGE-$VERSION.tgz"
    1.13 +WGET_URL="${WEB_SITE}$TARBALL"
    1.14 +
    1.15 +DEPENDS="openssh"
    1.16 +BUILD_DEPENDS=""
    1.17 +
    1.18 +# Rules to configure and make the package.
    1.19 +compile_rules()
    1.20 +{
    1.21 +	cd $src
    1.22 +	./configure --prefix=/usr \
    1.23 +		$CONFIGURE_ARGS &&
    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 +	mkdir -p $fs/usr/bin
    1.31 +	cp -a $install/autossh $fs/usr/bin
    1.32 +}
     2.1 --- a/compcache/receipt	Sun Sep 23 18:16:12 2012 +0200
     2.2 +++ b/compcache/receipt	Mon Sep 24 10:21:41 2012 +0200
     2.3 @@ -1,31 +1,16 @@
     2.4  # SliTaz package receipt.
     2.5  
     2.6 -PACKAGE="compcache"
     2.7 -VERSION="0.6.2"
     2.8 -CATEGORY="system-tools"
     2.9 +PACKAGE="linux-zram"
    2.10 +VERSION="3.2.14"
    2.11 +BASEVER="${VERSION:0:3}"
    2.12 +CATEGORY="base-system"
    2.13  SHORT_DESC="Compressed caching"
    2.14 -MAINTAINER="fabrice.thiroux@free.fr"
    2.15 -TARBALL="$PACKAGE-$VERSION.tar.gz"
    2.16 -WEB_SITE="http://code.google.com/p/compcache/"
    2.17 -WGET_URL="http://compcache.googlecode.com/files/$TARBALL"
    2.18 +MAINTAINER="devel@slitaz.org"
    2.19 +WEB_SITE="http://www.kernel.org/"
    2.20 +WANTED="linux"
    2.21 +PROVIDE="compcache"
    2.22  
    2.23  DEPENDS="linux"
    2.24 -BUILD_DEPENDS="lzma linux-module-headers"
    2.25 -
    2.26 -# Rules to configure and make the package.
    2.27 -compile_rules()
    2.28 -{
    2.29 -	KERNEL_VERSION=`grep  ^VERSION= $WOK/linux/receipt | \
    2.30 -		cut -d "=" -f2 | sed -e 's/"//g'`
    2.31 -	cd $src
    2.32 -	
    2.33 -	# Fix build with kernel 2.6.34
    2.34 -	patch -p1 < $stuff/compcache-0.6.2-linux-2.6.34.u || return 1
    2.35 -	
    2.36 -	find -name Makefile | xargs sed -i \
    2.37 -		"s|/lib/modules/\$(shell uname -r)/build|/usr/src/linux|"
    2.38 -	make  KBUILD=/usr/src/linux KVER=$KERNEL_VERSION 
    2.39 -}
    2.40  
    2.41  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.42  genpkg_rules()
    2.43 @@ -60,3 +45,33 @@
    2.44  	echo "Processing post-remove commands..."
    2.45  	chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
    2.46  }
    2.47 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.48 +genpkg_rules()
    2.49 +{
    2.50 +    local path
    2.51 +    path=lib/modules/$BASEVER-slitaz/kernel
    2.52 +    mkdir -p $fs/$path $fs/etc
    2.53 +    export src
    2.54 +    export _pkg
    2.55 +    $wanted_stuff/list_modules.sh fs/${PACKAGE#*-} | while read module; do
    2.56 +    	dir=$path/$(dirname $module)
    2.57 +    	[ -d $fs/$dir ] || mkdir -p $fs/$dir
    2.58 +        cp -a $_pkg/$path/$module $fs/$dir
    2.59 +    done
    2.60 +    touch $fs/etc/filesystems
    2.61 +}
    2.62 +
    2.63 +# Post install/remove commands for Tazpkg.
    2.64 +post_install()
    2.65 +{
    2.66 +	grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
    2.67 +		echo "${PACKAGE#*-}" >> $1/etc/filesystems
    2.68 +	chroot "$1/" depmod -a $BASEVER-slitaz
    2.69 +}
    2.70 +
    2.71 +post_remove()
    2.72 +{
    2.73 +	sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems
    2.74 +	chroot "$1/" depmod -a $BASEVER-slitaz
    2.75 +}
    2.76 +