wok-4.x rev 1847

Up x11vnc (0.9.6)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Dec 13 09:36:41 2008 +0000 (2008-12-13)
parents 3eb7682451ff
children 4dac7faa5912
files x11vnc-extra/receipt x11vnc/receipt x11vnc/stuff/x11vnc
line diff
     1.1 --- a/x11vnc-extra/receipt	Sat Dec 13 09:29:32 2008 +0000
     1.2 +++ b/x11vnc-extra/receipt	Sat Dec 13 09:36:41 2008 +0000
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="x11vnc-extra"
     1.7 -VERSION="0.9.3"
     1.8 +VERSION="0.9.6"
     1.9  CATEGORY="network"
    1.10  SHORT_DESC="java VNC viewer"
    1.11  MAINTAINER="pascal.bellard@slitaz.org"
    1.12 @@ -14,3 +14,9 @@
    1.13  	mkdir -p $fs/usr/share
    1.14  	cp -a $_pkg/usr/share/x11vnc $fs/usr/share
    1.15  }
    1.16 +
    1.17 +# Post install/remove commands for Tazpkg.
    1.18 +post_install()
    1.19 +{
    1.20 +	sed -i 's/X11VNC_OPTIONS="/X11VNC_OPTIONS="-ssl -http /' $1/etc/daemons.conf
    1.21 +}
     2.1 --- a/x11vnc/receipt	Sat Dec 13 09:29:32 2008 +0000
     2.2 +++ b/x11vnc/receipt	Sat Dec 13 09:36:41 2008 +0000
     2.3 @@ -1,7 +1,7 @@
     2.4  # SliTaz package receipt.
     2.5  
     2.6  PACKAGE="x11vnc"
     2.7 -VERSION="0.9.3"
     2.8 +VERSION="0.9.6"
     2.9  CATEGORY="network"
    2.10  SHORT_DESC="VNC server using X server"
    2.11  MAINTAINER="pascal.bellard@slitaz.org"
    2.12 @@ -16,9 +16,10 @@
    2.13  {
    2.14  	cd $src
    2.15  	./configure --prefix=/usr \
    2.16 -		$CONFIGURE_ARGS
    2.17 -	make
    2.18 -	make DESTDIR=$src/_pkg install
    2.19 +		$CONFIGURE_ARGS &&
    2.20 +	make &&
    2.21 +	make DESTDIR=$src/_pkg install &&
    2.22 +	rm $src/_pkg/usr/share/applications
    2.23  }
    2.24  
    2.25  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.26 @@ -34,7 +35,7 @@
    2.27  {
    2.28  	grep -q "^X11VNC" $1/etc/daemons.conf || cat >>$1/etc/daemons.conf <<EOT
    2.29  # VNC server options.
    2.30 -X11VNC_OPTIONS="-rfbauth /etc/vnc.secret -loop"
    2.31 +X11VNC_OPTIONS="-rfbauth /etc/vnc.secret -loop -tightfilexfer -permitfiletransfer -display :0"
    2.32  
    2.33  EOT
    2.34  	[ -f $1/etc/vnc.secret ] || echo -en 'p\x05\xE3\x8B\x81\xB0\xB2\x1B' \
     3.1 --- a/x11vnc/stuff/x11vnc	Sat Dec 13 09:29:32 2008 +0000
     3.2 +++ b/x11vnc/stuff/x11vnc	Sat Dec 13 09:36:41 2008 +0000
     3.3 @@ -13,7 +13,7 @@
     3.4  
     3.5  case "$1" in
     3.6    start)
     3.7 -    if ps | grep -q $DAEMON; then
     3.8 +    if ps | grep -v grep | grep -q $DAEMON; then
     3.9        echo "$NAME already running."
    3.10        exit 1
    3.11      fi
    3.12 @@ -22,7 +22,7 @@
    3.13      status
    3.14      ;;
    3.15    stop)
    3.16 -    if ! ps | grep -q $DAEMON; then
    3.17 +    if ! ps | grep -v grep | grep -q $DAEMON; then
    3.18        echo "$NAME is not running."
    3.19        exit 1
    3.20      fi
    3.21 @@ -31,7 +31,7 @@
    3.22      status
    3.23      ;;
    3.24    restart)
    3.25 -    if ! ps | grep -q $DAEMON; then
    3.26 +    if ! ps | grep -v grep | grep -q $DAEMON; then
    3.27        echo "$NAME is not running."
    3.28        exit 1
    3.29      fi