2007-06-20 Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
* mobile/plptools: libs and utils for communication with Psion palms
#10582
+ * mobile/radeontool: toggles the backlight on screensaver events
#13775
2007-06-19 Philippe Caseiro <puppetmaster AT sourcemage.org>
* database/sqlite3_ruby: new spell, a library to use sqlite3 with ruby
diff --git a/mobile/radeontool/BUILD b/mobile/radeontool/BUILD
new file mode 100755
index 0000000..8f58e6d
--- /dev/null
+++ b/mobile/radeontool/BUILD
@@ -0,0 +1 @@
+make
diff --git a/mobile/radeontool/DEPENDS b/mobile/radeontool/DEPENDS
new file mode 100755
index 0000000..fdf5643
--- /dev/null
+++ b/mobile/radeontool/DEPENDS
@@ -0,0 +1,2 @@
+depends pciutils &&
+depends xscreensaver
diff --git a/mobile/radeontool/DETAILS b/mobile/radeontool/DETAILS
new file mode 100755
index 0000000..10ad135
--- /dev/null
+++ b/mobile/radeontool/DETAILS
@@ -0,0 +1,17 @@
+ SPELL=radeontool
+ VERSION=1.5
+ SOURCE=$SPELL-$VERSION.tar.gz
+SOURCE_DIRECTORY=$BUILD_DIRECTORY/$SPELL-$VERSION
+ SOURCE_URL[0]=http://fdd.com/software/radeon/$SOURCE
+
SOURCE_HASH=sha512:985771cbaff3d6451563ac388b6b303410b7e1088c9a7404de63964c465f3708f9fede40fde7dfeaeb3779dff86a9007fcf982cced23cdc2f6bdd555494f78aa
+ WEB_SITE=http://fdd.com/software/radeon
+ ENTERED=20070512
+ LICENSE=GPL
+ DOCS="CHANGES"
+ SHORT="Radeontool turns off/on the backlight"
+cat << EOF
+radeontool is a hack I created to save some battery on my
+Dell Latitude C610 with an ATI Radeon Mobility graphics chip.
+Radeontool can turn off and on the backlight and external
+video output. Radeontool requires lspci.
+EOF
diff --git a/mobile/radeontool/HISTORY b/mobile/radeontool/HISTORY
new file mode 100755
index 0000000..179e7ea
--- /dev/null
+++ b/mobile/radeontool/HISTORY
@@ -0,0 +1,9 @@
+2007-06-20 Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
+ * PRE_BUILD: added xorg-modular support
+ * DEPENDS: added xscreensaver
+ * DETAILS: overriden DOCS
+ * radeontool-1.5.patch: fixed it to do everything in install
+
+2007-05-12 Javier Vasquez <jevv.cr AT gmail.com>
+ * PRE_BUILD, BUILD, DEPENDS, DETAILS, radeontool-1.5.patch, HISTORY:
+ created this spell, ver. 1.5
diff --git a/mobile/radeontool/PRE_BUILD b/mobile/radeontool/PRE_BUILD
new file mode 100755
index 0000000..662432b
--- /dev/null
+++ b/mobile/radeontool/PRE_BUILD
@@ -0,0 +1,7 @@
+default_pre_build &&
+cd "$SOURCE_DIRECTORY" &&
+patch -p1 < "$SCRIPT_DIRECTORY/radeontool-1.5.patch" &&
+chmod ugo+x lightwatch.pl &&
+if check_if_xorg_modular_libs xscreensaver; then
+ sed -i 's,X11R6/,,' lightwatch.pl
+fi
diff --git a/mobile/radeontool/radeontool-1.5.patch
b/mobile/radeontool/radeontool-1.5.patch
new file mode 100644
index 0000000..cc043df
--- /dev/null
+++ b/mobile/radeontool/radeontool-1.5.patch
@@ -0,0 +1,21 @@
+diff -Naur radeontool-1.5-orig/Makefile radeontool-1.5-fixed/Makefile
+--- radeontool-1.5-orig/Makefile 2002-06-22 23:28:15.000000000 -0600
++++ radeontool-1.5-fixed/Makefile 2007-05-12 22:33:28.000000000 -0600
+@@ -1,8 +1,19 @@
+-
++all: radeontool
+
+ radeontool: radeontool.c
+ gcc -Wall -O2 radeontool.c -o radeontool
+
++clean:
++ rm radeontool
++
++
++install:
++ cp radeontool /usr/sbin
++ cp lightwatch.pl /usr/sbin
++
++uninstall:
++ rm /usr/sbin/radeontool
++ rm /usr/share/doc/radeontool
[SM-Commit] GIT changes to master grimoire by Jaka Kranjc (77b4c114392e4944bff682d8be421d2a06c7f7c9),
Jaka Kranjc, 06/20/2007