diff --git a/packages/x11/other/ratpoison/build b/packages/x11/other/ratpoison/build new file mode 100755 index 0000000000..d832e8380e --- /dev/null +++ b/packages/x11/other/ratpoison/build @@ -0,0 +1,31 @@ +#!/bin/sh + +. config/options + +$SCRIPTS/build toolchain +$SCRIPTS/build libXft +$SCRIPTS/build libICE +$SCRIPTS/build libX11 +$SCRIPTS/build libXext +$SCRIPTS/build libXtst +$SCRIPTS/build libXinerama + +LDFLAGS="$LDFLAGS -fwhole-program" + +cd $PKG_BUILD + +$AUTORECONF +./configure --host=$TARGET_NAME \ + --build=$HOST_NAME \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --x-includes=$SYSROOT_PREFIX/usr/include \ + --x-libraries=$SYSROOT_PREFIX/usr/lib \ + --disable-debug \ + --disable-history \ + --with-xterm=rxvt \ + --with-xft \ + --with-x + +make diff --git a/packages/x11/other/ratpoison/config/ratpoisonrc b/packages/x11/other/ratpoison/config/ratpoisonrc new file mode 100644 index 0000000000..20d4958744 --- /dev/null +++ b/packages/x11/other/ratpoison/config/ratpoisonrc @@ -0,0 +1,4 @@ +startup_message off +set wingravity static +set transgravity static +set maxsizegravity static diff --git a/packages/x11/other/ratpoison/init.d/50_ratpoison b/packages/x11/other/ratpoison/init.d/50_ratpoison new file mode 100755 index 0000000000..11151a3ae4 --- /dev/null +++ b/packages/x11/other/ratpoison/init.d/50_ratpoison @@ -0,0 +1,36 @@ +#!/bin/sh + +################################################################################ +# Copyright (C) 2009-2010 OpenELEC.tv +# http://www.openelec.tv +# +# This Program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This Program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +# starting windowmanager +# +# runlevels: openelec + +. /etc/profile + +progress "starting Windowmanager" + +# waiting for Xorg to start + wait_for_xorg + +# starting ratpoison + DISPLAY=:0.0 ratpoison > /dev/null 2>&1 & + diff --git a/packages/x11/other/ratpoison/install b/packages/x11/other/ratpoison/install new file mode 100755 index 0000000000..ebee2027f5 --- /dev/null +++ b/packages/x11/other/ratpoison/install @@ -0,0 +1,19 @@ +#!/bin/sh + +. config/options + +$SCRIPTS/install libXft +#$SCRIPTS/install libICE +$SCRIPTS/install libX11 +$SCRIPTS/install libXext +$SCRIPTS/install libXtst +$SCRIPTS/install libXinerama +$SCRIPTS/install liberation-fonts + +PKG_DIR=`find $PACKAGES -type d -name $1` + +mkdir -p $INSTALL/usr/bin + cp $PKG_BUILD/src/ratpoison $INSTALL/usr/bin + +mkdir -p $INSTALL/etc + cp $PKG_DIR/config/ratpoisonrc $INSTALL/etc diff --git a/packages/x11/other/ratpoison/patches/ratpoison-1.4.5-getline.diff b/packages/x11/other/ratpoison/patches/ratpoison-1.4.5-getline.diff new file mode 100644 index 0000000000..95fcab638d --- /dev/null +++ b/packages/x11/other/ratpoison/patches/ratpoison-1.4.5-getline.diff @@ -0,0 +1,12 @@ +diff -Naur ratpoison-1.4.5-old/configure.in ratpoison-1.4.5-new/configure.in +--- ratpoison-1.4.5-old/configure.in 2009-07-12 14:01:04.000000000 -0700 ++++ ratpoison-1.4.5-new/configure.in 2009-07-14 19:56:24.000000000 -0700 +@@ -146,7 +146,7 @@ + dnl Checks for typedefs, structures, and compiler characteristics. + + dnl Checks for library functions. +-AC_CHECK_FUNCS(getopt getopt_long setsid setpgid setpgrp putenv vsnprintf usleep) ++AC_CHECK_FUNCS(getline getopt getopt_long setsid setpgid setpgrp putenv vsnprintf usleep) + + AC_TYPE_SIGNAL + diff --git a/packages/x11/other/ratpoison/patches/ratpoison-1.4.5-staticgravity.diff b/packages/x11/other/ratpoison/patches/ratpoison-1.4.5-staticgravity.diff new file mode 100644 index 0000000000..642fe0e262 --- /dev/null +++ b/packages/x11/other/ratpoison/patches/ratpoison-1.4.5-staticgravity.diff @@ -0,0 +1,35 @@ +diff -Naur ratpoison-1.4.5-old/src/actions.c ratpoison-1.4.5-new/src/actions.c +--- ratpoison-1.4.5-old/src/actions.c 2009-07-14 19:56:16.000000000 -0700 ++++ ratpoison-1.4.5-new/src/actions.c 2009-07-14 19:56:56.000000000 -0700 +@@ -1882,6 +1882,8 @@ + { + int ret = -1; + ++ if (!strcasecmp (data, "static") || !strcasecmp (data, "static") || !strcmp (data, "10")) ++ ret = StaticGravity; + if (!strcasecmp (data, "northwest") || !strcasecmp (data, "nw") || !strcmp (data, "7")) + ret = NorthWestGravity; + if (!strcasecmp (data, "north") || !strcasecmp (data, "n") || !strcmp (data, "8")) +diff -Naur ratpoison-1.4.5-old/src/manage.c ratpoison-1.4.5-new/src/manage.c +--- ratpoison-1.4.5-old/src/manage.c 2009-07-14 19:56:16.000000000 -0700 ++++ ratpoison-1.4.5-new/src/manage.c 2009-07-14 19:56:56.000000000 -0700 +@@ -541,6 +541,9 @@ + case SouthEastGravity: + win->x = frame->x + frame->width - win->width - win->border; + break; ++ case StaticGravity: ++ win->x = frame->x + win->x; ++ break; + } + + /* Y coord. */ +@@ -561,6 +564,9 @@ + case SouthWestGravity: + win->y = frame->y + frame->height - win->height - win->border; + break; ++ case StaticGravity: ++ win->y = frame->y + win->y; ++ break; + } + } + diff --git a/packages/x11/other/ratpoison/url b/packages/x11/other/ratpoison/url new file mode 100644 index 0000000000..2d585357f6 --- /dev/null +++ b/packages/x11/other/ratpoison/url @@ -0,0 +1 @@ +http://mirror.lihnidos.org/GNU/savannah/ratpoison/ratpoison-1.4.5.tar.gz \ No newline at end of file