wok-6.x rev 16505

Add dhid dyn IP daemon + add to ARM python-psutil and fix htop icon in /usr/share
author Christophe Lincoln <pankso@slitaz.org>
date Thu Apr 24 14:08:25 2014 +0200 (2014-04-24)
parents f8e9bf4989d3
children 048c66ed11ec
files dhid/receipt dhid/stuff/init.d/dhid htop/receipt python-psutil/receipt python-rpi-pyglow/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dhid/receipt	Thu Apr 24 14:08:25 2014 +0200
     1.3 @@ -0,0 +1,38 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="dhid"
     1.7 +VERSION="5.5"
     1.8 +CATEGORY="network"
     1.9 +SHORT_DESC="Open source Dynamic IP Updater."
    1.10 +MAINTAINER="pankso@slitaz.org"
    1.11 +LICENSE="BSD"
    1.12 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.13 +WEB_SITE="http://dhis.org"
    1.14 +WGET_URL="ftp://ftp.dhis.org/pub/dhis/$TARBALL"
    1.15 +CONFIG_FILES="/etc/dhid.conf"
    1.16 +HOST_ARCH="i486 arm"
    1.17 +
    1.18 +DEPENDS="gmp"
    1.19 +BUILD_DEPENDS="gmp-dev"
    1.20 +
    1.21 +# Handle cross comilation
    1.22 +case "$ARCH" in
    1.23 +	arm) ARCH_FLAGS=" LFLAGS=-L/cross/$ARCH/sysroot/usr/lib" ;;
    1.24 +esac
    1.25 +	
    1.26 +# Rules to configure and make the package.
    1.27 +compile_rules()
    1.28 +{
    1.29 +	make CC=${HOST_SYSTEM}-gcc ${ARCH_FLAGS}
    1.30 +}
    1.31 +
    1.32 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.33 +genpkg_rules()
    1.34 +{
    1.35 +	mkdir -p $fs/usr/sbin $fs/etc $fs/usr/share/doc/dhid
    1.36 +	cp ${src}/dhid.conf.sample ${fs}/etc/dhid.conf
    1.37 +	cp ${src}/README ${fs}/usr/share/doc/dhid
    1.38 +	cp -a ${src}/dhid ${fs}/usr/sbin
    1.39 +	cp -a ${stuff}/init.d ${fs}/etc
    1.40 +}
    1.41 +
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/dhid/stuff/init.d/dhid	Thu Apr 24 14:08:25 2014 +0200
     2.3 @@ -0,0 +1,48 @@
     2.4 +#!/bin/sh
     2.5 +#
     2.6 +# /etc/init.d/dhid: Start, stop and restart dhis daemon on SliTaz
     2.7 +#
     2.8 +. /lib/libtaz.sh
     2.9 +#. /etc/daemons.conf
    2.10 +
    2.11 +NAME=DHID
    2.12 +DESC="dyn ip"
    2.13 +DAEMON=/usr/sbin/dhid
    2.14 +PIDFILE=/run/dhid.pid
    2.15 +OPTIONS="-P $PIDFILE"
    2.16 +
    2.17 +case "$1" in
    2.18 +		start)
    2.19 +		if active_pidfile $PIDFILE dhid; then
    2.20 +			echo "$NAME already running."; §exit 1
    2.21 +		fi
    2.22 +		echo -n "Starting $DESC: $NAME... "
    2.23 +		$DAEMON $OPTIONS 
    2.24 +		status ;;
    2.25 +	
    2.26 +	stop)
    2.27 +		if ! active_pidfile $PIDFILE dhid; then
    2.28 +			echo "$NAME is not running."; exit 1
    2.29 +		fi
    2.30 +		echo -n "Stopping $DESC: $NAME... "
    2.31 +		kill $(cat $PIDFILE)
    2.32 +		rm $PIDFILE
    2.33 +		status ;;
    2.34 +	
    2.35 +	restart)
    2.36 +		if ! active_pidfile $PIDFILE dhid; then
    2.37 +			echo "$NAME is not running."; exit 1
    2.38 +		fi
    2.39 +		echo -n "Restarting $DESC: $NAME... "
    2.40 +		kill $(cat $PIDFILE)
    2.41 +		rm $PIDFILE
    2.42 +		sleep 2
    2.43 +		$DAEMON $OPTIONS
    2.44 +		status ;;
    2.45 +	
    2.46 +	*) 
    2.47 +		echo "Usage: /etc/init.d/$(basename $0) [start|stop|restart]"
    2.48 +		exit 1 ;;
    2.49 +esac
    2.50 +
    2.51 +exit 0
     3.1 --- a/htop/receipt	Thu Apr 24 03:51:21 2014 +0200
     3.2 +++ b/htop/receipt	Thu Apr 24 14:08:25 2014 +0200
     3.3 @@ -14,6 +14,8 @@
     3.4  
     3.5  DEPENDS="ncursesw"
     3.6  BUILD_DEPENDS="ncursesw-dev"
     3.7 +
     3.8 +# Handle cross comilation
     3.9  case "$ARCH" in
    3.10  	arm) CROSS_ARGS="--enable-native_affinity=no" ;;
    3.11  esac
    3.12 @@ -21,7 +23,6 @@
    3.13  # Rules to configure and make the package.
    3.14  compile_rules()
    3.15  {
    3.16 -	cd $src
    3.17  	./configure \
    3.18  		--enable-unicode \
    3.19  		$CONFIGURE_ARGS $CROSS_ARGS &&
    3.20 @@ -33,5 +34,4 @@
    3.21  {
    3.22  	mkdir -p $fs/usr/bin
    3.23  	cp -a $install/usr/bin/* $fs/usr/bin
    3.24 -	cp -a $install/usr/share/pixmaps $fs/usr/share
    3.25  }
     4.1 --- a/python-psutil/receipt	Thu Apr 24 03:51:21 2014 +0200
     4.2 +++ b/python-psutil/receipt	Thu Apr 24 14:08:25 2014 +0200
     4.3 @@ -10,6 +10,7 @@
     4.4  TARBALL="$SOURCE-$VERSION.tar.gz"
     4.5  WEB_SITE="http://code.google.com/p/psutil/"
     4.6  WGET_URL="http://psutil.googlecode.com/files/$TARBALL"
     4.7 +HOST_ARCH="i486 arm"
     4.8  
     4.9  DEPENDS="python"
    4.10  BUILD_DEPENDS="python-dev setuptools"
    4.11 @@ -17,8 +18,19 @@
    4.12  # Rules to configure and make the package.
    4.13  compile_rules()
    4.14  {
    4.15 -	cd $src
    4.16 +	# Cross compilation hack
    4.17 +	case "$ARCH" in
    4.18 +		arm*)
    4.19 +			mv /usr/bin/i486-slitaz-linux-gcc /tmp &&
    4.20 +			ln -s /cross/${ARCH}/tools/bin/arm-slitaz-linux-gnueabi-gcc \
    4.21 +				/usr/bin/i486-slitaz-linux-gcc ;;
    4.22 +	esac &&
    4.23  	python setup.py install --root=$DESTDIR
    4.24 +	case "$ARCH" in
    4.25 +		arm*) 
    4.26 +			rm /usr/bin/i486-slitaz-linux-gcc &&
    4.27 +			mv /tmp/i486-slitaz-linux-gcc /usr/bin ;;
    4.28 +	esac
    4.29  }
    4.30  
    4.31  # Rules to gen a SliTaz package suitable for Tazpkg.
     5.1 --- a/python-rpi-pyglow/receipt	Thu Apr 24 03:51:21 2014 +0200
     5.2 +++ b/python-rpi-pyglow/receipt	Thu Apr 24 14:08:25 2014 +0200
     5.3 @@ -12,7 +12,7 @@
     5.4  TAGS="raspberrypi rpi"
     5.5  HOST_ARCH="arm"
     5.6  
     5.7 -DEPENDS="python python-smbus python-rpi-gpio"
     5.8 +DEPENDS="python python-smbus python-psutil python-rpi-gpio"
     5.9  
    5.10  # Rules to gen a SliTaz package suitable for Tazpkg.
    5.11  genpkg_rules()