SF.net SVN: morphix: [2259] trunk/scripts-main/matchbox

[email protected]
Newsgroups gmane.linux.morphix.cvs
Message-ID <[email protected]>
Revision: 2259
Author:   bmsleight
Date:     2006-05-26 16:17:26 -0700 (Fri, 26 May 2006)
ViewCVS:  http://svn.sourceforge.net/morphix/?rev=2259&view=rev

Log Message:
-----------
Updating matchbox, adding part from LiveKiosk, plus my own scary Makefiles 

Modified Paths:
--------------
    trunk/scripts-main/matchbox/debian/dirs
    trunk/scripts-main/matchbox/debian/rules

Added Paths:
-----------
    trunk/scripts-main/matchbox/Makefile
    trunk/scripts-main/matchbox/kbdconfig
    trunk/scripts-main/matchbox/mbdock.session
Added: trunk/scripts-main/matchbox/Makefile
===================================================================
--- trunk/scripts-main/matchbox/Makefile	                        (rev 0)
+++ trunk/scripts-main/matchbox/Makefile	2006-05-26 23:17:26 UTC (rev 2259)
@@ -0,0 +1,24 @@
+
+all: install
+
+install:	morphix-init-matchbox
+
+morphix-init-matchbox: 
+	mkdir -p $(DESTDIR)/morphix
+	mkdir -p $(DESTDIR)/etc
+	mkdir -p $(DESTDIR)/etc/skel
+	mkdir -p $(DESTDIR)/etc/skel/.xscreensaver
+	cp -a ./include.sh ./main_module ./launch_persistent-app.sh ./persistent-app ./matchbox-session $(DESTDIR)/morphix/
+	chmod a+x $(DESTDIR)/morphix/matchbox-session
+	chmod a+x $(DESTDIR)/morphix/launch_persistent-app.sh
+	chmod a+x $(DESTDIR)/morphix/persistent-app	
+	cp -a ./kbdconfig ./mbdock.session $(DESTDIR)/etc/skel/.matchbox/
+
+remove:
+	rm $(DESTDIR)/morphix/include.sh
+	rm $(DESTDIR)/morphix//main_module 
+	rm $(DESTDIR)/morphix/launch_persistent-app.sh
+	rm $(DESTDIR)/morphix/persistent-app 
+	rm $(DESTDIR)/morphix/matchbox-session
+	rm $(DESTDIR)/etc/skel/.matchbox/kbdconfig
+	rm $(DESTDIR)/etc/skel/.matchbox/mbdock.session

Modified: trunk/scripts-main/matchbox/debian/dirs
===================================================================
--- trunk/scripts-main/matchbox/debian/dirs	2006-05-25 21:48:37 UTC (rev 2258)
+++ trunk/scripts-main/matchbox/debian/dirs	2006-05-26 23:17:26 UTC (rev 2259)
@@ -1,3 +1,4 @@
-usr/bin
-usr/sbin
 morphix
+etc
+etc/skel
+etc/skel/.matchbox
\ No newline at end of file

Modified: trunk/scripts-main/matchbox/debian/rules
===================================================================
--- trunk/scripts-main/matchbox/debian/rules	2006-05-25 21:48:37 UTC (rev 2258)
+++ trunk/scripts-main/matchbox/debian/rules	2006-05-26 23:17:26 UTC (rev 2259)
@@ -2,37 +2,70 @@
 # -*- makefile -*-
 # Sample debian/rules that uses debhelper.
 # GNU copyright 1997 to 1999 by Joey Hess.
+#
+# Modified to make a template file for a multi-binary package with separated
+# build-arch and build-indep targets  by Bill Allombert 2001
 
 # Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
+# export DH_VERBOSE=1
 
+# This has to be exported to make some magic below work.
+export DH_OPTIONS
+
+
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+	INSTALL_PROGRAM += -s
+endif
+
+configure: configure-stamp
+configure-stamp:
+	dh_testdir
+	# Add here commands to configure the package.
+
+	touch configure-stamp
+
+build:
+	# nothing yet
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-arch-stamp build-indep-stamp #CONFIGURE-STAMP#
+
+	# Add here commands to clean up after the build process.
+	dh_clean 
+
 install:
 	dh_testdir
 	dh_testroot
-	dh_clean -k 
-	dh_installdirs
+	dh_clean -k -s 
+	dh_installdirs -s
 
-	# Add here commands to install the package into debian/.
-	cp -a include.sh main_module launch_persistent-app.sh persistent-app matchbox-session debian/tmp/morphix
-	chmod a+x debian/tmp/morphix/matchbox-session
-	chmod a+x debian/tmp/morphix/launch_persistent-app.sh
-	chmod a+x debian/tmp/morphix/persistent-app
-	
-# Build architecture-independent files here.
+	# Add here commands to install the arch part of the package into 
+	# debian/tmp.
+	$(MAKE) morphix-init-matchbox DESTDIR=$(CURDIR)/debian/tmp
+	dh_install -s
+
+# Must not depend on anything. This is to be called by
+# binary-arch/binary-indep
+# in another 'make' thread.
 binary-indep: build install
-# We have nothing to do by default.
-
-# Build architecture-dependent files here.
-binary-arch: build install
 	dh_testdir
 	dh_testroot
 	dh_installchangelogs 
 	dh_installdocs
 	dh_installexamples
-#	dh_install
 #	dh_installmenu
 #	dh_installdebconf	
-#	dh_installlogrotate
+#	dh_installlogrotate	
 #	dh_installemacsen
 #	dh_installpam
 #	dh_installmime
@@ -42,16 +75,17 @@
 	dh_installman
 	dh_link
 	dh_strip
-	dh_compress
+	dh_compress 
 	dh_fixperms
 #	dh_perl
 #	dh_python
-#	dh_makeshlibs
+	dh_makeshlibs
 	dh_installdeb
 	dh_shlibdeps
 	dh_gencontrol
 	dh_md5sums
 	dh_builddeb
+# Build architecture independant packages using the common target.
 
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install configure
+binary: binary-indep
+.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch configure

Added: trunk/scripts-main/matchbox/kbdconfig
===================================================================
--- trunk/scripts-main/matchbox/kbdconfig	                        (rev 0)
+++ trunk/scripts-main/matchbox/kbdconfig	2006-05-26 23:17:26 UTC (rev 2259)
@@ -0,0 +1,47 @@
+#
+# This is an example keyboard config file for matchbox
+#
+# You can edit this file or change per user by copying to 
+#  ~/.matchbox/kbdconfig
+#
+# Se the matchbox manual for more info ( http://projects.o-hand.com/matchbox )
+
+### Window operation short cuts 
+
+#<Alt>n=next
+#<Alt>p=prev
+#<Alt>c=close
+#<Alt>d=desktop
+#<Alt>m=!matchbox-remote -mbmenu
+
+### App launching.
+
+#<ctrl><alt>x=!xterm
+#<ctrl><alt>r=!rxvt
+
+### App launching with startup notify
+
+#<ctrl><alt>e=!!gpe-calender
+
+### windows style key shortcuts
+
+#<alt>Tab=next
+#<alt><shift>Tab=prev
+
+#<alt>space=taskmenu
+#<alt>escape=!matchbox-remote -mbmenu
+#<alt>f4=close
+
+#f11=fullscreen
+
+### super should be a 'window' key, uncomment '#' if you have one.
+
+#<super>d=desktop
+#<super>r=!xterm
+#<super>e=!!nautilus
+
+### Special keys, likely probably only available on extended keyboards. 
+
+#App=!matchbox-remote -mbmenu
+#Menu=!matchbox-remote -mbmenu
+

Added: trunk/scripts-main/matchbox/mbdock.session
===================================================================
--- trunk/scripts-main/matchbox/mbdock.session	                        (rev 0)
+++ trunk/scripts-main/matchbox/mbdock.session	2006-05-26 23:17:26 UTC (rev 2259)
@@ -0,0 +1,6 @@
+mb-applet-launcher -o -1 --desktop /usr/share/applications/mozilla-firefox.desktop
+
+mb-applet-system-monitor
+mb-applet-wireless
+mb-applet-clock
+	


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.