diff options
author | Alan Alberghini <414N@slacky.it> | 2011-09-07 23:15:17 -0400 |
---|---|---|
committer | Niels Horn <niels.horn@slackbuilds.org> | 2011-09-21 19:48:31 -0300 |
commit | 5956ee581d602e2cadcc7d24fb7d9958040480d4 (patch) | |
tree | 565e4df6d456034a0c671fb3ea48b39175dfa691 /misc/g15daemon/g15daemon.SlackBuild | |
parent | f640bfb8573e7cf161d8f1ac0a368cadc81eb3e5 (diff) |
misc/g15daemon: Patch to fix Gn keys and suspend fixes.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'misc/g15daemon/g15daemon.SlackBuild')
-rw-r--r-- | misc/g15daemon/g15daemon.SlackBuild | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/misc/g15daemon/g15daemon.SlackBuild b/misc/g15daemon/g15daemon.SlackBuild index 74eac4150b68b..52075439c6d90 100644 --- a/misc/g15daemon/g15daemon.SlackBuild +++ b/misc/g15daemon/g15daemon.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for g15daemon -# Copyright (c) 2009 Alan Alberghini <414N@slacky.it> +# Copyright (c) 2011 Alan Alberghini <414N@slacky.it> # All rights reserved. # # Permission to use, copy, modify, and distribute this software for @@ -23,18 +23,15 @@ # OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. - PRGNAM=g15daemon VERSION=${VERSION:-1.9.5.3} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} -# Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i486 ;; arm*) ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: *) ARCH=$( uname -m ) ;; esac fi @@ -52,7 +49,7 @@ elif [ "$ARCH" = "s390" ]; then SLKCFLAGS="-O2" LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" + SLKCFLAGS="-O2" LIBDIRSUFFIX="64" else SLKCFLAGS="-O2" @@ -74,6 +71,10 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +# Patch for uinput to make the Gn keys work under X +# Thanks to Gentoo bugzilla people! +patch -p1 < "$CWD/g15daemon-1.9.5.3-uinput.patch" + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ @@ -88,18 +89,22 @@ CXXFLAGS="$SLKCFLAGS" \ make install-strip docdir=/usr/doc/$PRGNAM-$VERSION DESTDIR=$PKG -# Install init script +# Install init and configuration script mkdir -p $PKG/etc/rc.d cat $CWD/rc.$PRGNAM > $PKG/etc/rc.d/rc.$PRGNAM.new +cat $CWD/rc.$PRGNAM.conf > $PKG/etc/rc.d/rc.$PRGNAM.conf.new chmod 0755 $PKG/etc/rc.d/rc.$PRGNAM.new +# Install pm-utils hook +mkdir -p $PKG/etc/pm/sleep.d +cat $CWD/51g15hook.sh > $PKG/usr/lib${LIBDIRSUFFIX}/pm-utils/sleep.d/51g15hook +chmod 0755 $PKG/usr/lib${LIBDIRSUFFIX}/pm-utils/sleep.d/51g15hook + cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild cat $CWD/README.SLACKWARE > $PKG/usr/doc/$PRGNAM-$VERSION/README.SLACKWARE -( cd $PKG/usr/man - find . -type f -exec gzip -9 {} \; - for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done -) +find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |