wok rev 2193

Add gpm
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 09 11:24:26 2009 +0000 (2009-02-09)
parents edc45fd54795
children 1428395b4afe
files gpm-dev/receipt gpm/receipt gpm/stuff/etc/init.d/gpm
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gpm-dev/receipt	Mon Feb 09 11:24:26 2009 +0000
     1.3 @@ -0,0 +1,17 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="gpm-dev"
     1.7 +VERSION="1.20.5"
     1.8 +CATEGORY="development"
     1.9 +SHORT_DESC="Mouse server for console, development files."
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +WEB_SITE="ftp://ftp.linux.it/pub/People/rubini/$PACKAGE"
    1.12 +WANTED="gpm"
    1.13 +
    1.14 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.15 +genpkg_rules()
    1.16 +{
    1.17 +	mkdir -p $fs/usr/lib
    1.18 +	cp -a $_pkg/usr/include $fs/usr
    1.19 +	cp -a $_pkg/usr/lib/*a $fs/usr/lib
    1.20 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/gpm/receipt	Mon Feb 09 11:24:26 2009 +0000
     2.3 @@ -0,0 +1,30 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="gpm"
     2.7 +VERSION="1.20.5"
     2.8 +CATEGORY="misc"
     2.9 +SHORT_DESC="Mouse server for console."
    2.10 +MAINTAINER="pascal.bellard@slitaz.org"
    2.11 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    2.12 +WEB_SITE="ftp://ftp.linux.it/pub/People/rubini/$PACKAGE"
    2.13 +WGET_URL="ftp://ftp.linux.it/pub/People/rubini/$PACKAGE/$TARBALL"
    2.14 +BUILD_DEPENDS="gawk"
    2.15 +
    2.16 +# Rules to configure and make the package.
    2.17 +compile_rules()
    2.18 +{
    2.19 +	cd $src
    2.20 +	./configure --prefix=/usr --sysconfdir=/etc $CONFIGURE_ARGS &&
    2.21 +	make &&
    2.22 +	make DESTDIR=$PWD/_pkg install
    2.23 +}
    2.24 +
    2.25 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.26 +genpkg_rules()
    2.27 +{
    2.28 +	mkdir -p $fs/usr/lib
    2.29 +	cp -a $_pkg/usr/bin $fs/usr
    2.30 +	cp -a $_pkg/usr/sbin $fs/usr
    2.31 +	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
    2.32 +	cp -a stuff/* $fs
    2.33 +}
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/gpm/stuff/etc/init.d/gpm	Mon Feb 09 11:24:26 2009 +0000
     3.3 @@ -0,0 +1,40 @@
     3.4 +#!/bin/sh
     3.5 +# /etc/init.d/gpm : Start, stop and restart gpm server on SliTaz, at 
     3.6 +# boot time or with the command line.
     3.7 +#
     3.8 +# To start gpm server at boot time, just put mysql in the $RUN_DAEMONS
     3.9 +# variable of /etc/rcS.conf and configure options with /etc/daemons.conf
    3.10 +#
    3.11 +. /etc/init.d/rc.functions
    3.12 +. /etc/daemons.conf
    3.13 +
    3.14 +NAME=gpm
    3.15 +DESC="gpm server"
    3.16 +DAEMON=/usr/sbin/gpm
    3.17 +OPTIONS=$GPM_OPTIONS
    3.18 +[ -n "$OPTIONS" ] || OPTIONS="-m /dev/psaux -t ps2"
    3.19 +
    3.20 +case "$1" in
    3.21 +  start)
    3.22 +    $DAEMON $OPTIONS
    3.23 +    status
    3.24 +    ;;
    3.25 +  stop)
    3.26 +    $DAEMON -k
    3.27 +    status
    3.28 +    ;;
    3.29 +  restart)
    3.30 +    $DAEMON -k
    3.31 +    status
    3.32 +    $DAEMON $OPTIONS
    3.33 +    status
    3.34 +    ;;
    3.35 +  *)
    3.36 +    echo ""
    3.37 +    echo -e "\033[1mUsage:\033[0m /etc/init.d/`basename $0` [start|stop|restart]"
    3.38 +    echo ""
    3.39 +    exit 1
    3.40 +    ;;
    3.41 +esac
    3.42 +
    3.43 +exit 0