r6433 - in packages/trunk/sdlbasic: ! dirs' list truncated !

Miriam Ruiz baby-guest at alioth.debian.org
Fri Apr 4 12:26:00 UTC 2008


Author: baby-guest
Date: 2008-04-04 12:26:00 +0000 (Fri, 04 Apr 2008)
New Revision: 6433

Added:
   packages/trunk/sdlbasic/debian/
   packages/trunk/sdlbasic/debian/README.Debian
   packages/trunk/sdlbasic/debian/changelog
   packages/trunk/sdlbasic/debian/compat
   packages/trunk/sdlbasic/debian/control
   packages/trunk/sdlbasic/debian/copyright
   packages/trunk/sdlbasic/debian/cron.d.ex
   packages/trunk/sdlbasic/debian/emacsen-install.ex
   packages/trunk/sdlbasic/debian/emacsen-remove.ex
   packages/trunk/sdlbasic/debian/emacsen-startup.ex
   packages/trunk/sdlbasic/debian/init.d.ex
   packages/trunk/sdlbasic/debian/init.d.lsb.ex
   packages/trunk/sdlbasic/debian/manpage.1.ex
   packages/trunk/sdlbasic/debian/manpage.sgml.ex
   packages/trunk/sdlbasic/debian/manpage.xml.ex
   packages/trunk/sdlbasic/debian/menu.ex
   packages/trunk/sdlbasic/debian/patches/
   packages/trunk/sdlbasic/debian/patches/series
   packages/trunk/sdlbasic/debian/postinst.ex
   packages/trunk/sdlbasic/debian/postrm.ex
   packages/trunk/sdlbasic/debian/preinst.ex
   packages/trunk/sdlbasic/debian/prerm.ex
   packages/trunk/sdlbasic/debian/rules
   packages/trunk/sdlbasic/debian/sdlbasic-default.ex
   packages/trunk/sdlbasic/debian/sdlbasic.doc-base.EX
   packages/trunk/sdlbasic/debian/watch.ex
Modified:
   packages/trunk/sdlbasic/src/sdlBasic/src/sdlBasic/gtk/makefile
   packages/trunk/sdlbasic/src/sdlBasic/src/sdlBrt/makefile
Log:
[svn-inject] Applying Debian modifications to trunk


Property changes on: packages/trunk/sdlbasic/debian
___________________________________________________________________
Name: mergeWithUpstream
   + 1

Added: packages/trunk/sdlbasic/debian/README.Debian
===================================================================
--- packages/trunk/sdlbasic/debian/README.Debian	                        (rev 0)
+++ packages/trunk/sdlbasic/debian/README.Debian	2008-04-04 12:26:00 UTC (rev 6433)
@@ -0,0 +1,6 @@
+sdlbasic for Debian
+-------------------
+
+<possible notes regarding this package - if none, delete this file>
+
+ -- Miriam Ruiz <little_miry at yahoo.es>  Fri, 04 Apr 2008 10:39:30 +0000

Added: packages/trunk/sdlbasic/debian/changelog
===================================================================
--- packages/trunk/sdlbasic/debian/changelog	                        (rev 0)
+++ packages/trunk/sdlbasic/debian/changelog	2008-04-04 12:26:00 UTC (rev 6433)
@@ -0,0 +1,6 @@
+sdlbasic (0.0.20070714-1) unstable; urgency=low
+
+  * Initial release (Closes: #nnnn)
+
+ -- Miriam Ruiz <little_miry at yahoo.es>  Fri, 04 Apr 2008 10:39:30 +0000
+

Added: packages/trunk/sdlbasic/debian/compat
===================================================================
--- packages/trunk/sdlbasic/debian/compat	                        (rev 0)
+++ packages/trunk/sdlbasic/debian/compat	2008-04-04 12:26:00 UTC (rev 6433)
@@ -0,0 +1 @@
+5

Added: packages/trunk/sdlbasic/debian/control
===================================================================
--- packages/trunk/sdlbasic/debian/control	                        (rev 0)
+++ packages/trunk/sdlbasic/debian/control	2008-04-04 12:26:00 UTC (rev 6433)
@@ -0,0 +1,25 @@
+Source: sdlbasic
+Section: devel
+Priority: extra
+Maintainer: Debian Games Team <pkg-games-devel at lists.alioth.debian.org>
+Uploaders: Miriam Ruiz <little_miry at yahoo.es>
+Build-Depends: debhelper (>= 5), quilt,
+ libsdl1.2-dev,
+ libsdl-mixer1.2-dev,
+ libsdl-ttf2.0-dev,
+ libsdl-net1.2-dev,
+ libsdl-image1.2-dev,
+ libsmpeg-dev
+Standards-Version: 3.7.3
+Homepage: http://sdlbasic.sourceforge.net
+DM-Upload-Allowed: yes
+Vcs-Svn: svn://svn.debian.org/svn/pkg-games/packages/trunk/sdlbasic/
+Vcs-Browser: http://svn.debian.org/wsvn/pkg-games/packages/trunk/sdlbasic/?op=log
+
+Package: sdlbasic
+Architecture: any
+Depends: ttf-dejavu, ${shlibs:Depends}, ${misc:Depends}
+Description: multiplatform basic interpreter for game development
+ sdlBasic is a small, efficient and multiplatform basic interpreter for
+ creating games using the power of SDL library. It was inspired by the old
+ and glorious AMOS.

Added: packages/trunk/sdlbasic/debian/copyright
===================================================================
--- packages/trunk/sdlbasic/debian/copyright	                        (rev 0)
+++ packages/trunk/sdlbasic/debian/copyright	2008-04-04 12:26:00 UTC (rev 6433)
@@ -0,0 +1,60 @@
+This package was debianized by Miriam Ruiz <little_miry at yahoo.es> on
+Fri, 04 Apr 2008 10:39:30 +0000.
+
+It was downloaded from <url://example.com>
+
+Upstream Author(s): 
+
+    <put author's name and email here>
+    <likewise for another author>
+
+Copyright: 
+
+    <Copyright (C) YYYY Name OfAuthor>
+    <likewise for another author>
+
+License:
+
+    This package 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 of the License, or
+    (at your option) any later version.
+ 
+    This package 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 this package; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
+
+
+License for Scintilla and sdlBasic Editor:
+
+Copyright 1998-2003 by Neil Hodgson <neilh at scintilla.org>
+Copyright 2005 by sdlBasic team http://sdlBasic.sf.net
+
+All Rights Reserved 
+
+Permission to use, copy, modify, and distribute this software and its 
+documentation for any purpose and without fee is hereby granted, 
+provided that the above copyright notice appear in all copies and that 
+both that copyright notice and this permission notice appear in 
+supporting documentation. 
+
+NEIL HODGSON DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS 
+SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 
+AND FITNESS, IN NO EVENT SHALL NEIL HODGSON BE LIABLE FOR ANY 
+SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 
+WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 
+TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE 
+OR PERFORMANCE OF THIS SOFTWARE. 
+
+
+The Debian packaging is (C) 2008, Miriam Ruiz <little_miry at yahoo.es> and
+is licensed under the GPL, see above.

Added: packages/trunk/sdlbasic/debian/cron.d.ex
===================================================================
--- packages/trunk/sdlbasic/debian/cron.d.ex	                        (rev 0)
+++ packages/trunk/sdlbasic/debian/cron.d.ex	2008-04-04 12:26:00 UTC (rev 6433)
@@ -0,0 +1,4 @@
+#
+# Regular cron jobs for the sdlbasic package
+#
+0 4	* * *	root	sdlbasic_maintenance

Added: packages/trunk/sdlbasic/debian/emacsen-install.ex
===================================================================
--- packages/trunk/sdlbasic/debian/emacsen-install.ex	                        (rev 0)
+++ packages/trunk/sdlbasic/debian/emacsen-install.ex	2008-04-04 12:26:00 UTC (rev 6433)
@@ -0,0 +1,45 @@
+#! /bin/sh -e
+# /usr/lib/emacsen-common/packages/install/sdlbasic
+
+# Written by Jim Van Zandt <jrv at debian.org>, borrowing heavily
+# from the install scripts for gettext by Santiago Vila
+# <sanvila at ctv.es> and octave by Dirk Eddelbuettel <edd at debian.org>.
+
+FLAVOR=$1
+PACKAGE=sdlbasic
+
+if [ ${FLAVOR} = emacs ]; then exit 0; fi
+
+echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR}
+
+#FLAVORTEST=`echo $FLAVOR | cut -c-6`
+#if [ ${FLAVORTEST} = xemacs ] ; then
+#    SITEFLAG="-no-site-file"
+#else
+#    SITEFLAG="--no-site-file"
+#fi
+FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile"
+
+ELDIR=/usr/share/emacs/site-lisp/${PACKAGE}
+ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
+
+# Install-info-altdir does not actually exist. 
+# Maybe somebody will write it.
+if test -x /usr/sbin/install-info-altdir; then
+    echo install/${PACKAGE}: install Info links for ${FLAVOR}
+    install-info-altdir --quiet --section "" "" --dirname=${FLAVOR} /usr/share/info/${PACKAGE}.info.gz
+fi
+
+install -m 755 -d ${ELCDIR}
+cd ${ELDIR}
+FILES=`echo *.el`
+cp ${FILES} ${ELCDIR}
+cd ${ELCDIR}
+
+cat << EOF > path.el
+(setq load-path (cons "." load-path) byte-compile-warnings nil)
+EOF
+${FLAVOR} ${FLAGS} ${FILES}
+rm -f *.el path.el
+
+exit 0

Added: packages/trunk/sdlbasic/debian/emacsen-remove.ex
===================================================================
--- packages/trunk/sdlbasic/debian/emacsen-remove.ex	                        (rev 0)
+++ packages/trunk/sdlbasic/debian/emacsen-remove.ex	2008-04-04 12:26:00 UTC (rev 6433)
@@ -0,0 +1,15 @@
+#!/bin/sh -e
+# /usr/lib/emacsen-common/packages/remove/sdlbasic
+
+FLAVOR=$1
+PACKAGE=sdlbasic
+
+if [ ${FLAVOR} != emacs ]; then
+    if test -x /usr/sbin/install-info-altdir; then
+        echo remove/${PACKAGE}: removing Info links for ${FLAVOR}
+        install-info-altdir --quiet --remove --dirname=${FLAVOR} /usr/share/info/sdlbasic.info.gz
+    fi
+
+    echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR}
+    rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE}
+fi

Added: packages/trunk/sdlbasic/debian/emacsen-startup.ex
===================================================================
--- packages/trunk/sdlbasic/debian/emacsen-startup.ex	                        (rev 0)
+++ packages/trunk/sdlbasic/debian/emacsen-startup.ex	2008-04-04 12:26:00 UTC (rev 6433)
@@ -0,0 +1,25 @@
+;; -*-emacs-lisp-*-
+;;
+;; Emacs startup file, e.g.  /etc/emacs/site-start.d/50sdlbasic.el
+;; for the Debian sdlbasic package
+;;
+;; Originally contributed by Nils Naumann <naumann at unileoben.ac.at>
+;; Modified by Dirk Eddelbuettel <edd at debian.org>
+;; Adapted for dh-make by Jim Van Zandt <jrv at debian.org>
+
+;; The sdlbasic package follows the Debian/GNU Linux 'emacsen' policy and
+;; byte-compiles its elisp files for each 'emacs flavor' (emacs19,
+;; xemacs19, emacs20, xemacs20...).  The compiled code is then
+;; installed in a subdirectory of the respective site-lisp directory.
+;; We have to add this to the load-path:
+(let ((package-dir (concat "/usr/share/"
+                           (symbol-name flavor)
+                           "/site-lisp/sdlbasic")))
+;; If package-dir does not exist, the sdlbasic package must have
+;; removed but not purged, and we should skip the setup.
+  (when (file-directory-p package-dir)
+        (setq load-path (cons package-dir load-path))
+       (autoload 'sdlbasic-mode "sdlbasic-mode"
+         "Major mode for editing sdlbasic files." t)
+       (add-to-list 'auto-mode-alist '("\\.sdlbasic$" . sdlbasic-mode))))
+

Added: packages/trunk/sdlbasic/debian/init.d.ex
===================================================================
--- packages/trunk/sdlbasic/debian/init.d.ex	                        (rev 0)
+++ packages/trunk/sdlbasic/debian/init.d.ex	2008-04-04 12:26:00 UTC (rev 6433)
@@ -0,0 +1,157 @@
+#! /bin/sh
+#
+# skeleton	example file to build /etc/init.d/ scripts.
+#		This file should be used to construct scripts for /etc/init.d.
+#
+#		Written by Miquel van Smoorenburg <miquels at cistron.nl>.
+#		Modified for Debian 
+#		by Ian Murdock <imurdock at gnu.ai.mit.edu>.
+#               Further changes by Javier Fernandez-Sanguino <jfs at debian.org>
+#
+# Version:	@(#)skeleton  1.9  26-Feb-2001  miquels at cistron.nl
+#
+
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+DAEMON=/usr/sbin/sdlbasic
+NAME=sdlbasic
+DESC=sdlbasic
+
+test -x $DAEMON || exit 0
+
+LOGDIR=/var/log/sdlbasic
+PIDFILE=/var/run/$NAME.pid
+DODTIME=1                   # Time to wait for the server to die, in seconds
+                            # If this value is set too low you might not
+                            # let some servers to die gracefully and
+                            # 'restart' will not work
+
+# Include sdlbasic defaults if available
+if [ -f /etc/default/sdlbasic ] ; then
+	. /etc/default/sdlbasic
+fi
+
+set -e
+
+running_pid()
+{
+    # Check if a given process pid's cmdline matches a given name
+    pid=$1
+    name=$2
+    [ -z "$pid" ] && return 1 
+    [ ! -d /proc/$pid ] &&  return 1
+    cmd=`cat /proc/$pid/cmdline | tr "\000" "\n"|head -n 1 |cut -d : -f 1`
+    # Is this the expected child?
+    [ "$cmd" != "$name" ] &&  return 1
+    return 0
+}
+
+running()
+{
+# Check if the process is running looking at /proc
+# (works for all users)
+
+    # No pidfile, probably no daemon present
+    [ ! -f "$PIDFILE" ] && return 1
+    # Obtain the pid and check it against the binary name
+    pid=`cat $PIDFILE`
+    running_pid $pid $NAME || return 1
+    return 0
+}
+
+force_stop() {
+# Forcefully kill the process
+    [ ! -f "$PIDFILE" ] && return
+    if running ; then
+        kill -15 $pid
+        # Is it really dead?
+        [ -n "$DODTIME" ] && sleep "$DODTIME"s
+        if running ; then
+            kill -9 $pid
+            [ -n "$DODTIME" ] && sleep "$DODTIME"s
+            if running ; then
+                echo "Cannot kill $LABEL (pid=$pid)!"
+                exit 1
+            fi
+        fi
+    fi
+    rm -f $PIDFILE
+    return 0
+}
+
+case "$1" in
+  start)
+	echo -n "Starting $DESC: "
+	start-stop-daemon --start --quiet --pidfile $PIDFILE \
+		--exec $DAEMON -- $DAEMON_OPTS
+        if running then
+            echo "$NAME."
+        else
+            echo " ERROR."
+        fi
+	;;
+  stop)
+	echo -n "Stopping $DESC: "
+	start-stop-daemon --stop --quiet --pidfile $PIDFILE \
+		--exec $DAEMON
+	echo "$NAME."
+	;;
+  force-stop)
+	echo -n "Forcefully stopping $DESC: "
+        force_stop
+        if ! running then
+            echo "$NAME."
+        else
+            echo " ERROR."
+        fi
+	;;
+  #reload)
+	#
+	#	If the daemon can reload its config files on the fly
+	#	for example by sending it SIGHUP, do it here.
+	#
+	#	If the daemon responds to changes in its config file
+	#	directly anyway, make this a do-nothing entry.
+	#
+	# echo "Reloading $DESC configuration files."
+	# start-stop-daemon --stop --signal 1 --quiet --pidfile \
+	#	/var/run/$NAME.pid --exec $DAEMON
+  #;;
+  force-reload)
+	#
+	#	If the "reload" option is implemented, move the "force-reload"
+	#	option to the "reload" entry above. If not, "force-reload" is
+	#	just the same as "restart" except that it does nothing if the
+	#   daemon isn't already running.
+	# check wether $DAEMON is running. If so, restart
+	start-stop-daemon --stop --test --quiet --pidfile \
+		/var/run/$NAME.pid --exec $DAEMON \
+	&& $0 restart \
+	|| exit 0
+	;;
+  restart)
+    echo -n "Restarting $DESC: "
+	start-stop-daemon --stop --quiet --pidfile \
+		/var/run/$NAME.pid --exec $DAEMON
+	[ -n "$DODTIME" ] && sleep $DODTIME
+	start-stop-daemon --start --quiet --pidfile \
+		/var/run/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS
+	echo "$NAME."
+	;;
+  status)
+    echo -n "$LABEL is "
+    if running ;  then
+        echo "running"
+    else
+        echo " not running."
+        exit 1
+    fi
+    ;;
+  *)
+	N=/etc/init.d/$NAME
+	# echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
+	echo "Usage: $N {start|stop|restart|force-reload|status|force-stop}" >&2
+	exit 1
+	;;
+esac
+
+exit 0

Added: packages/trunk/sdlbasic/debian/init.d.lsb.ex
===================================================================
--- packages/trunk/sdlbasic/debian/init.d.lsb.ex	                        (rev 0)
+++ packages/trunk/sdlbasic/debian/init.d.lsb.ex	2008-04-04 12:26:00 UTC (rev 6433)
@@ -0,0 +1,281 @@
+#!/bin/sh 
+#
+# Example init.d script with LSB support.
+#
+# Please read this init.d carefully and modify the sections to
+# adjust it to the program you want to run.
+#
+# Copyright (c) 2007 Javier Fernandez-Sanguino <jfs at debian.org>
+#
+# This is free software; you may 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 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 with
+# the Debian operating system, in /usr/share/common-licenses/GPL;  if
+# not, write to the Free Software Foundation, Inc., 59 Temple Place,
+# Suite 330, Boston, MA 02111-1307 USA
+#
+### BEGIN INIT INFO
+# Provides:          sdlbasic
+# Required-Start:    $network $local_fs
+# Required-Stop:     
+# Should-Start:      $named
+# Should-Stop:       
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# Short-Description: <Enter a short description of the sortware>
+# Description:       <Enter a long description of the software>
+#                    <...>
+#                    <...>
+### END INIT INFO
+
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+
+DAEMON=/usr/sbin/sdlbasic # Introduce the server's location here
+NAME=#PACKAGE              # Introduce the short server's name here
+DESC=#PACKAGE              # Introduce a short description here
+LOGDIR=/var/log/sdlbasic  # Log directory to use
+
+PIDFILE=/var/run/$NAME.pid 
+
+test -x $DAEMON || exit 0
+test -x $DAEMON_WRAPPER || exit 0
+
+. /lib/lsb/init-functions
+
+# Default options, these can be overriden by the information
+# at /etc/default/$NAME
+DAEMON_OPTS=""          # Additional options given to the server 
+
+DODTIME=10              # Time to wait for the server to die, in seconds
+                        # If this value is set too low you might not
+                        # let some servers to die gracefully and
+                        # 'restart' will not work
+                        
+LOGFILE=$LOGDIR/$NAME.log  # Server logfile
+#DAEMONUSER=sdlbasic   # Users to run the daemons as. If this value
+                        # is set start-stop-daemon will chuid the server
+
+# Include defaults if available
+if [ -f /etc/default/$NAME ] ; then
+	. /etc/default/$NAME
+fi
+
+# Use this if you want the user to explicitly set 'RUN' in 
+# /etc/default/
+#if [ "x$RUN" != "xyes" ] ; then
+#    log_failure_msg "$NAME disabled, please adjust the configuration to your needs "
+#    log_failure_msg "and then set RUN to 'yes' in /etc/default/$NAME to enable it."
+#    exit 1
+#fi
+
+# Check that the user exists (if we set a user)
+# Does the user exist?
+if [ -n "$DAEMONUSER" ] ; then
+    if getent passwd | grep -q "^$DAEMONUSER:"; then
+        # Obtain the uid and gid
+        DAEMONUID=`getent passwd |grep "^$DAEMONUSER:" | awk -F : '{print $3}'`
+        DAEMONGID=`getent passwd |grep "^$DAEMONUSER:" | awk -F : '{print $4}'`
+    else
+        log_failure_msg "The user $DAEMONUSER, required to run $NAME does not exist."
+        exit 1
+    fi
+fi
+
+
+set -e
+
+running_pid() {
+# Check if a given process pid's cmdline matches a given name
+    pid=$1
+    name=$2
+    [ -z "$pid" ] && return 1 
+    [ ! -d /proc/$pid ] &&  return 1
+    cmd=`cat /proc/$pid/cmdline | tr "\000" "\n"|head -n 1 |cut -d : -f 1`
+    # Is this the expected server
+    [ "$cmd" != "$name" ] &&  return 1
+    return 0
+}
+
+running() {
+# Check if the process is running looking at /proc
+# (works for all users)
+
+    # No pidfile, probably no daemon present
+    [ ! -f "$PIDFILE" ] && return 1
+    pid=`cat $PIDFILE`
+    running_pid $pid $DAEMON_WRAPPER || return 1
+    return 0
+}
+
+start_server() {
+# Start the process using the wrapper
+        if [ -z "$DAEMONUSER" ] ; then
+            start-stop-daemon --start --quiet --pidfile $PIDFILE \
+                        --exec $DAEMON -- $DAEMON_OPTS
+            errcode=$?
+        else
+# if we are using a daemonuser then change the user id
+            start-stop-daemon --start --quiet --pidfile $PIDFILE \
+                        --chuid $DAEMONUSER \
+                        --exec $DAEMON -- $DAEMON_OPTS
+            errcode=$?
+        fi
+	return $errcode
+}
+
+stop_server() {
+# Stop the process using the wrapper
+        if [ -z "$DAEMONUSER" ] ; then
+            start-stop-daemon --stop --quiet --pidfile $PIDFILE \
+                        --exec $DAEMON
+            errcode=$
+        else
+# if we are using a daemonuser then look for process that match
+            start-stop-daemon --stop --quiet --pidfile $PIDFILE \
+                        --user $DAEMONUSER \
+                        --exec $DAEMON
+            errcode=$
+        fi
+
+	return $errcode
+}
+
+reload_server() {
+    [ ! -f "$PIDFILE" ] && return 1
+    pid=`cat $PIDFILE` # This is the daemon's pid
+    # Send a SIGHUP
+    kill -1 $pid
+    return $?
+}
+
+force_stop() {
+# Force the process to die killing it manually
+	[ ! -e "$PIDFILE" ] && return
+	if running ; then
+		kill -15 $pid
+	# Is it really dead?
+		sleep "$DIETIME"s
+		if running ; then
+			kill -9 $pid
+			sleep "$DIETIME"s
+			if running ; then
+				echo "Cannot kill $NAME (pid=$pid)!"
+				exit 1
+			fi
+		fi
+	fi
+	rm -f $PIDFILE
+}
+
+
+case "$1" in
+  start)
+	log_daemon_msg "Starting $DESC " "$NAME"
+        # Check if it's running first
+        if running ;  then
+            log_progress_msg "apparently already running"
+            log_end_msg 0
+            exit 0
+        fi
+        if start_server && running ;  then
+            # It's ok, the server started and is running
+            log_end_msg 0
+        else
+            # Either we could not start it or it is not running
+            # after we did
+            # NOTE: Some servers might die some time after they start,
+            # this code does not try to detect this and might give
+            # a false positive (use 'status' for that)
+            log_end_msg 1
+        fi
+	;;
+  stop)
+        log_daemon_msg "Stopping $DESC" "$NAME"
+        if running ; then
+            # Only stop the server if we see it running
+            stop_server
+            log_end_msg $?
+        else
+            # If it's not running don't do anything
+            log_progress_msg "apparently not running"
+            log_end_msg 0
+            exit 0
+        fi
+        ;;
+  force-stop)
+        # First try to stop gracefully the program
+        $0 stop
+        if running; then
+            # If it's still running try to kill it more forcefully
+            log_daemon_msg "Stopping (force) $DESC" "$NAME"
+            force_stop
+            log_end_msg $?
+        fi
+	;;
+  restart|force-reload)
+        log_daemon_msg "Restarting $DESC" "$NAME"
+        stop_server
+        # Wait some sensible amount, some server need this
+        [ -n "$DIETIME" ] && sleep $DIETIME
+        start_server
+        running
+        log_end_msg $?
+	;;
+  status)
+
+        log_daemon_msg "Checking status of $DESC" "$NAME"
+        if running ;  then
+            log_progress_msg "running"
+            log_end_msg 0
+        else
+            log_progress_msg "apparently not running"
+            log_end_msg 1
+            exit 1
+        fi
+        ;;
+  # Use this if the daemon cannot reload
+  reload)
+        log_warning_msg "Reloading $NAME daemon: not implemented, as the daemon"
+        log_warning_msg "cannot re-read the config file (use restart)."
+        ;;
+  # And this if it cann
+  #reload)
+          #
+          # If the daemon can reload its config files on the fly
+          # for example by sending it SIGHUP, do it here.
+          #
+          # If the daemon responds to changes in its config file
+          # directly anyway, make this a do-nothing entry.
+          #
+          # log_daemon_msg "Reloading $DESC configuration files" "$NAME"
+          # if running ; then
+          #    reload_server
+          #    if ! running ;  then
+          # Process died after we tried to reload
+          #       log_progress_msg "died on reload"
+          #       log_end_msg 1
+          #       exit 1
+          #    fi
+          # else
+          #    log_progress_msg "server is not running"
+          #    log_end_msg 1
+          #    exit 1
+          # fi
+                                                                                    #;;
+
+  *)
+	N=/etc/init.d/$NAME
+	echo "Usage: $N {start|stop|force-stop|restart|force-reload|status}" >&2
+	exit 1
+	;;
+esac
+
+exit 0

Added: packages/trunk/sdlbasic/debian/manpage.1.ex
===================================================================
--- packages/trunk/sdlbasic/debian/manpage.1.ex	                        (rev 0)
+++ packages/trunk/sdlbasic/debian/manpage.1.ex	2008-04-04 12:26:00 UTC (rev 6433)
@@ -0,0 +1,59 @@
+.\"                                      Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH SDLBASIC SECTION "abril  4, 2008"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh        disable hyphenation
+.\" .hy        enable hyphenation
+.\" .ad l      left justify
+.\" .ad b      justify to both left and right margins
+.\" .nf        disable filling
+.\" .fi        enable filling
+.\" .br        insert line break
+.\" .sp <n>    insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+sdlbasic \- program to do something
+.SH SYNOPSIS
+.B sdlbasic
+.RI [ options ] " files" ...
+.br
+.B bar
+.RI [ options ] " files" ...
+.SH DESCRIPTION
+This manual page documents briefly the
+.B sdlbasic
+and
+.B bar
+commands.
+.PP
+.\" TeX users may be more comfortable with the \fB<whatever>\fP and
+.\" \fI<whatever>\fP escape sequences to invode bold face and italics, 
+.\" respectively.
+\fBsdlbasic\fP is a program that...
+.SH OPTIONS
+These programs follow the usual GNU command line syntax, with long
+options starting with two dashes (`-').
+A summary of options is included below.
+For a complete description, see the Info files.
+.TP
+.B \-h, \-\-help
+Show summary of options.
+.TP
+.B \-v, \-\-version
+Show version of program.
+.SH SEE ALSO
+.BR bar (1),
+.BR baz (1).
+.br
+The programs are documented fully by
+.IR "The Rise and Fall of a Fooish Bar" ,
+available via the Info system.
+.SH AUTHOR
+sdlbasic was written by <upstream author>.
+.PP
+This manual page was written by Miriam Ruiz <miriam at unknown>,
+for the Debian project (but may be used by others).

Added: packages/trunk/sdlbasic/debian/manpage.sgml.ex
===================================================================
--- packages/trunk/sdlbasic/debian/manpage.sgml.ex	                        (rev 0)
+++ packages/trunk/sdlbasic/debian/manpage.sgml.ex	2008-04-04 12:26:00 UTC (rev 6433)
@@ -0,0 +1,156 @@
+<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
+
+<!-- Process this file with docbook-to-man to generate an nroff manual
+     page: `docbook-to-man manpage.sgml > manpage.1'.  You may view
+     the manual page with: `docbook-to-man manpage.sgml | nroff -man |
+     less'.  A typical entry in a Makefile or Makefile.am is:
+
+manpage.1: manpage.sgml
+	docbook-to-man $< > $@
+
+    
+	The docbook-to-man binary is found in the docbook-to-man package.
+	Please remember that if you create the nroff version in one of the
+	debian/rules file targets (such as build), you will need to include
+	docbook-to-man in your Build-Depends control field.
+
+  -->
+
+  <!-- Fill in your name for FIRSTNAME and SURNAME. -->
+  <!ENTITY dhfirstname "<firstname>FIRSTNAME</firstname>">
+  <!ENTITY dhsurname   "<surname>SURNAME</surname>">
+  <!-- Please adjust the date whenever revising the manpage. -->
+  <!ENTITY dhdate      "<date>abril  4, 2008</date>">
+  <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
+       allowed: see man(7), man(1). -->
+  <!ENTITY dhsection   "<manvolnum>SECTION</manvolnum>">
+  <!ENTITY dhemail     "<email>miriam at unknown</email>">
+  <!ENTITY dhusername  "Miriam Ruiz">
+  <!ENTITY dhucpackage "<refentrytitle>SDLBASIC</refentrytitle>">
+  <!ENTITY dhpackage   "sdlbasic">
+
+  <!ENTITY debian      "<productname>Debian</productname>">
+  <!ENTITY gnu         "<acronym>GNU</acronym>">
+  <!ENTITY gpl         "&gnu; <acronym>GPL</acronym>">
+]>
+
+<refentry>
+  <refentryinfo>
+    <address>
+      &dhemail;
+    </address>
+    <author>
+      &dhfirstname;
+      &dhsurname;
+    </author>
+    <copyright>
+      <year>2003</year>
+      <holder>&dhusername;</holder>
+    </copyright>
+    &dhdate;
+  </refentryinfo>
+  <refmeta>
+    &dhucpackage;
+
+    &dhsection;
+  </refmeta>
+  <refnamediv>
+    <refname>&dhpackage;</refname>
+
+    <refpurpose>program to do something</refpurpose>
+  </refnamediv>
+  <refsynopsisdiv>
+    <cmdsynopsis>
+      <command>&dhpackage;</command>
+
+      <arg><option>-e <replaceable>this</replaceable></option></arg>
+
+      <arg><option>--example <replaceable>that</replaceable></option></arg>
+    </cmdsynopsis>
+  </refsynopsisdiv>
+  <refsect1>
+    <title>DESCRIPTION</title>
+
+    <para>This manual page documents briefly the
+      <command>&dhpackage;</command> and <command>bar</command>
+      commands.</para>
+
+    <para>This manual page was written for the &debian; distribution
+      because the original program does not have a manual page.
+      Instead, it has documentation in the &gnu;
+      <application>Info</application> format; see below.</para>
+
+    <para><command>&dhpackage;</command> is a program that...</para>
+
+  </refsect1>
+  <refsect1>
+    <title>OPTIONS</title>
+
+    <para>These programs follow the usual &gnu; command line syntax,
+      with long options starting with two dashes (`-').  A summary of
+      options is included below.  For a complete description, see the
+      <application>Info</application> files.</para>
+
+    <variablelist>
+      <varlistentry>
+        <term><option>-h</option>
+          <option>--help</option>
+        </term>
+        <listitem>
+          <para>Show summary of options.</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>-v</option>
+          <option>--version</option>
+        </term>
+        <listitem>
+          <para>Show version of program.</para>
+        </listitem>
+      </varlistentry>
+    </variablelist>
+  </refsect1>
+  <refsect1>
+    <title>SEE ALSO</title>
+
+    <para>bar (1), baz (1).</para>
+
+    <para>The programs are documented fully by <citetitle>The Rise and
+      Fall of a Fooish Bar</citetitle> available via the
+      <application>Info</application> system.</para>
+  </refsect1>
+  <refsect1>
+    <title>AUTHOR</title>
+
+    <para>This manual page was written by &dhusername; &dhemail; for
+      the &debian; system (but may be used by others).  Permission is
+      granted to copy, distribute and/or modify this document under
+      the terms of the &gnu; General Public License, Version 2 any 
+	  later version published by the Free Software Foundation.
+    </para>
+	<para>
+	  On Debian systems, the complete text of the GNU General Public
+	  License can be found in /usr/share/common-licenses/GPL.
+	</para>
+
+  </refsect1>
+</refentry>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:2
+sgml-indent-data:t
+sgml-parent-document:nil
+sgml-default-dtd-file:nil
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+-->
+
+

Added: packages/trunk/sdlbasic/debian/manpage.xml.ex
===================================================================
--- packages/trunk/sdlbasic/debian/manpage.xml.ex	                        (rev 0)
+++ packages/trunk/sdlbasic/debian/manpage.xml.ex	2008-04-04 12:26:00 UTC (rev 6433)
@@ -0,0 +1,144 @@
+<?xml version='1.0' encoding='ISO-8859-1'?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
+"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
+
+<!--
+
+Process this file with an XSLT processor: `xsltproc \
+-''-nonet /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/\
+manpages/docbook.xsl manpage.dbk'.  A manual page
+<package>.<section> will be generated.  You may view the
+manual page with: nroff -man <package>.<section> | less'.  A
+typical entry in a Makefile or Makefile.am is:
+
+DB2MAN=/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/\
+manpages/docbook.xsl
+XP=xsltproc -''-nonet
+
+manpage.1: manpage.dbk
+        $(XP) $(DB2MAN) $<
+    
+The xsltproc binary is found in the xsltproc package.  The
+XSL files are in docbook-xsl.  Please remember that if you
+create the nroff version in one of the debian/rules file
+targets (such as build), you will need to include xsltproc
+and docbook-xsl in your Build-Depends control field.
+
+-->
+
+  <!-- Fill in your name for FIRSTNAME and SURNAME. -->
+  <!ENTITY dhfirstname "<firstname>FIRSTNAME</firstname>">
+  <!ENTITY dhsurname   "<surname>SURNAME</surname>">
+  <!-- Please adjust the date whenever revising the manpage. -->
+  <!ENTITY dhdate      "<date>abril  4, 2008</date>">
+  <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
+       allowed: see man(7), man(1). -->
+  <!ENTITY dhsection   "<manvolnum>SECTION</manvolnum>">
+  <!ENTITY dhemail     "<email>miriam at unknown</email>">
+  <!ENTITY dhusername  "Miriam Ruiz">
+  <!ENTITY dhucpackage "<refentrytitle>SDLBASIC</refentrytitle>">
+  <!ENTITY dhpackage   "sdlbasic">
+
+  <!ENTITY debian      "<productname>Debian</productname>">
+  <!ENTITY gnu         "<acronym>GNU</acronym>">
+  <!ENTITY gpl         "&gnu; <acronym>GPL</acronym>">
+]>
+
+<refentry>
+  <refentryinfo>
+    <address>
+      &dhemail;
+    </address>
+    <copyright>
+      <year>2007</year>
+      <holder>&dhusername;</holder>
+    </copyright>
+    &dhdate;
+  </refentryinfo>
+  <refmeta>
+    &dhucpackage;
+
+    &dhsection;
+  </refmeta>
+  <refnamediv>
+    <refname>&dhpackage;</refname>
+
+    <refpurpose>program to do something</refpurpose>
+  </refnamediv>
+  <refsynopsisdiv>
+    <cmdsynopsis>
+      <command>&dhpackage;</command>
+
+      <arg><option>-e <replaceable>this</replaceable></option></arg>
+
+      <arg><option>--example <replaceable>that</replaceable></option></arg>
+    </cmdsynopsis>
+  </refsynopsisdiv>
+  <refsect1>
+    <title>DESCRIPTION</title>
+
+    <para>This manual page documents briefly the
+      <command>&dhpackage;</command> and <command>bar</command>
+      commands.</para>
+
+    <para>This manual page was written for the &debian; distribution
+      because the original program does not have a manual page.
+      Instead, it has documentation in the &gnu;
+      <application>Info</application> format; see below.</para>
+
+    <para><command>&dhpackage;</command> is a program that...</para>
+
+  </refsect1>
+  <refsect1>
+    <title>OPTIONS</title>
+
+    <para>These programs follow the usual &gnu; command line syntax,
+      with long options starting with two dashes (`-').  A summary of
+      options is included below.  For a complete description, see the
+      <application>Info</application> files.</para>
+
+    <variablelist>
+      <varlistentry>
+        <term><option>-h</option>
+          <option>--help</option>
+        </term>
+        <listitem>
+          <para>Show summary of options.</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>-v</option>
+          <option>--version</option>
+        </term>
+        <listitem>
+          <para>Show version of program.</para>
+        </listitem>
+      </varlistentry>
+    </variablelist>
+  </refsect1>
+  <refsect1>
+    <title>SEE ALSO</title>
+
+    <para>bar (1), baz (1).</para>
+
+    <para>The programs are documented fully by <citetitle>The Rise and
+      Fall of a Fooish Bar</citetitle> available via the
+      <application>Info</application> system.</para>
+  </refsect1>
+  <refsect1>
+    <title>AUTHOR</title>
+
+    <para>This manual page was written by &dhusername; &dhemail; for
+      the &debian; system (but may be used by others).  Permission is
+      granted to copy, distribute and/or modify this document under
+      the terms of the &gnu; General Public License, Version 2 any 
+	  later version published by the Free Software Foundation.
+    </para>
+	<para>
+	  On Debian systems, the complete text of the GNU General Public
+	  License can be found in /usr/share/common-licenses/GPL.
+	</para>
+
+  </refsect1>
+</refentry>
+

Added: packages/trunk/sdlbasic/debian/menu.ex
===================================================================
--- packages/trunk/sdlbasic/debian/menu.ex	                        (rev 0)
+++ packages/trunk/sdlbasic/debian/menu.ex	2008-04-04 12:26:00 UTC (rev 6433)
@@ -0,0 +1,2 @@
+?package(sdlbasic):needs="X11|text|vc|wm" section="Applications/see-menu-manual"\
+  title="sdlbasic" command="/usr/bin/sdlbasic"

Added: packages/trunk/sdlbasic/debian/patches/series
===================================================================
--- packages/trunk/sdlbasic/debian/patches/series	                        (rev 0)
+++ packages/trunk/sdlbasic/debian/patches/series	2008-04-04 12:26:00 UTC (rev 6433)
@@ -0,0 +1 @@
+

Added: packages/trunk/sdlbasic/debian/postinst.ex
===================================================================
--- packages/trunk/sdlbasic/debian/postinst.ex	                        (rev 0)
+++ packages/trunk/sdlbasic/debian/postinst.ex	2008-04-04 12:26:00 UTC (rev 6433)
@@ -0,0 +1,41 @@
+#!/bin/sh
+# postinst script for sdlbasic
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postinst> `configure' <most-recently-configured-version>
+#        * <old-postinst> `abort-upgrade' <new version>
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <postinst> `abort-remove'
+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+#          <failed-install-package> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    configure)
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+

Added: packages/trunk/sdlbasic/debian/postrm.ex
===================================================================
--- packages/trunk/sdlbasic/debian/postrm.ex	                        (rev 0)
+++ packages/trunk/sdlbasic/debian/postrm.ex	2008-04-04 12:26:00 UTC (rev 6433)
@@ -0,0 +1,39 @@
+#!/bin/sh
+# postrm script for sdlbasic
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postrm> `remove'
+#        * <postrm> `purge'
+#        * <old-postrm> `upgrade' <new-version>
+#        * <new-postrm> `failed-upgrade' <old-version>
+#        * <new-postrm> `abort-install'
+#        * <new-postrm> `abort-install' <old-version>
+#        * <new-postrm> `abort-upgrade' <old-version>
+#        * <disappearer's-postrm> `disappear' <overwriter>
+#          <overwriter-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+    ;;
+
+    *)
+        echo "postrm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+

Added: packages/trunk/sdlbasic/debian/preinst.ex
===================================================================
--- packages/trunk/sdlbasic/debian/preinst.ex	                        (rev 0)
+++ packages/trunk/sdlbasic/debian/preinst.ex	2008-04-04 12:26:00 UTC (rev 6433)
@@ -0,0 +1,37 @@
+#!/bin/sh
+# preinst script for sdlbasic
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <new-preinst> `install'
+#        * <new-preinst> `install' <old-version>
+#        * <new-preinst> `upgrade' <old-version>
+#        * <old-preinst> `abort-upgrade' <new-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    install|upgrade)
+    ;;
+
+    abort-upgrade)
+    ;;
+
+    *)
+        echo "preinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+

Added: packages/trunk/sdlbasic/debian/prerm.ex
===================================================================
--- packages/trunk/sdlbasic/debian/prerm.ex	                        (rev 0)
+++ packages/trunk/sdlbasic/debian/prerm.ex	2008-04-04 12:26:00 UTC (rev 6433)
@@ -0,0 +1,40 @@
+#!/bin/sh
+# prerm script for sdlbasic
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <prerm> `remove'
+#        * <old-prerm> `upgrade' <new-version>
+#        * <new-prerm> `failed-upgrade' <old-version>
+#        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
+#        * <deconfigured's-prerm> `deconfigure' `in-favour'
+#          <package-being-installed> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    remove|upgrade|deconfigure)
+    ;;
+
+    failed-upgrade)
+    ;;
+
+    *)
+        echo "prerm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+

Added: packages/trunk/sdlbasic/debian/rules
===================================================================
--- packages/trunk/sdlbasic/debian/rules	                        (rev 0)
+++ packages/trunk/sdlbasic/debian/rules	2008-04-04 12:26:00 UTC (rev 6433)
@@ -0,0 +1,107 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+
+configure: configure-stamp
+configure-stamp:
+	dh_testdir
+	$(MAKE) -f /usr/share/quilt/quilt.make patch
+	touch $@
+
+SRCDIR="$(CURDIR)/src/sdlBasic/src"
+SHAREDIR="$(CURDIR)/src/sdlBasic/share"
+
+MAKEFLAGS=os=linux \
+	prefix="/usr" \
+	bindir="/usr/bin" \
+	datadir="/usr/share/games/sdlbasic" \
+	font_prefix="/usr/share/fonts/truetype/ttf-dejavu"
+
+build: build-stamp
+build-stamp: configure-stamp 
+	dh_testdir
+	$(MAKE) -C $(SRCDIR)/sdlBasic/scintilla/gtk
+	$(MAKE) -C $(SRCDIR)/sdlBasic/gtk PLUGINS_PATH="/usr/share/games/sdlbasic/plugins"
+	$(MAKE) -C $(SRCDIR)/sdlBrt/unzip $(MAKEFLAGS) CFLAGS="$(CFLAGS)"
+	$(MAKE) -C $(SRCDIR)/sdlBrt/SDLengine $(MAKEFLAGS) CFLAGS="$(CFLAGS)"
+	$(MAKE) -C $(SRCDIR)/sdlBrt/BASengine $(MAKEFLAGS) CFLAGS="$(CFLAGS)"
+	$(MAKE) -C $(SRCDIR)/sdlBrt $(MAKEFLAGS) CFLAGS="$(CFLAGS)"
+	#docbook-to-man debian/sdlbasic.sgml > sdlbasic.1
+	touch $@
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp configure-stamp
+	$(MAKE) -C $(SRCDIR)/sdlBasic/scintilla/gtk clean
+	$(MAKE) -C $(SRCDIR)/sdlBasic/gtk clean PLUGINS_PATH="/usr/share/games/sdlbasic/plugins"
+	$(MAKE) -C $(SRCDIR)/sdlBrt $(MAKEFLAGS) clean RM="$(RM) -f"
+	$(MAKE) -C $(SRCDIR)/sdlBrt/SDLengine $(MAKEFLAGS) clean RM="$(RM) -f"
+	$(MAKE) -C $(SRCDIR)/sdlBrt/BASengine $(MAKEFLAGS) clean RM="$(RM) -f"
+	$(MAKE) -C $(SRCDIR)/sdlBrt/unzip $(MAKEFLAGS) clean RM="$(RM) -f"
+	$(MAKE) -f /usr/share/quilt/quilt.make unpatch
+	dh_clean 
+
+DESTDIR="$(CURDIR)/debian/sdlbasic"
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k 
+	dh_installdirs
+
+	$(MAKE) -C $(SRCDIR)/sdlBasic/gtk install DESTDIR=$(DESTDIR) \
+		PLUGINS_PATH="/usr/share/games/sdlbasic/plugins"
+	$(MAKE) -C $(SRCDIR)/sdlBrt $(MAKEFLAGS) install DESTDIR=$(DESTDIR)
+
+	mkdir -p $(DESTDIR)/usr/share/doc/sdlbasic
+	cp -r $(SHAREDIR)/doc/sdlBasic/* $(DESTDIR)/usr/share/doc/sdlbasic
+	mkdir -p $(DESTDIR)/usr/share/games/sdlbasic
+	cp -r $(SHAREDIR)/sdlBasic/* $(DESTDIR)/usr/share/games/sdlbasic
+
+	test -d $(DESTDIR)/usr/share/sdlBasic && rmdir $(DESTDIR)/usr/share/sdlBasic
+	test -d $(DESTDIR)/usr/share/doc/sdlBasic && rmdir $(DESTDIR)/usr/share/doc/sdlBasic
+
+binary-indep: build install
+
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs 
+	dh_installdocs
+	dh_installexamples
+#	dh_install
+#	dh_installmenu
+#	dh_installdebconf
+#	dh_installlogrotate
+#	dh_installemacsen
+#	dh_installpam
+#	dh_installmime
+#	dh_python
+#	dh_installinit
+#	dh_installcron
+#	dh_installinfo
+	dh_installman
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+#	dh_perl
+#	dh_makeshlibs
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure


Property changes on: packages/trunk/sdlbasic/debian/rules
___________________________________________________________________
Name: svn:executable
   + *

Added: packages/trunk/sdlbasic/debian/sdlbasic-default.ex
===================================================================
--- packages/trunk/sdlbasic/debian/sdlbasic-default.ex	                        (rev 0)
+++ packages/trunk/sdlbasic/debian/sdlbasic-default.ex	2008-04-04 12:26:00 UTC (rev 6433)
@@ -0,0 +1,10 @@
+# Defaults for sdlbasic initscript
+# sourced by /etc/init.d/sdlbasic
+# installed at /etc/default/sdlbasic by the maintainer scripts
+
+#
+# This is a POSIX shell fragment
+#
+
+# Additional options that are passed to the Daemon.
+DAEMON_OPTS=""

Added: packages/trunk/sdlbasic/debian/sdlbasic.doc-base.EX
===================================================================
--- packages/trunk/sdlbasic/debian/sdlbasic.doc-base.EX	                        (rev 0)
+++ packages/trunk/sdlbasic/debian/sdlbasic.doc-base.EX	2008-04-04 12:26:00 UTC (rev 6433)
@@ -0,0 +1,22 @@
+Document: sdlbasic
+Title: Debian sdlbasic Manual
+Author: <insert document author here>
+Abstract: This manual describes what sdlbasic is
+ and how it can be used to
+ manage online manuals on Debian systems.
+Section: unknown
+
+Format: debiandoc-sgml
+Files: /usr/share/doc/sdlbasic/sdlbasic.sgml.gz
+
+Format: postscript
+Files: /usr/share/doc/sdlbasic/sdlbasic.ps.gz
+
+Format: text
+Files: /usr/share/doc/sdlbasic/sdlbasic.text.gz
+
+Format: HTML
+Index: /usr/share/doc/sdlbasic/html/index.html
+Files: /usr/share/doc/sdlbasic/html/*.html
+
+  

Added: packages/trunk/sdlbasic/debian/watch.ex
===================================================================
--- packages/trunk/sdlbasic/debian/watch.ex	                        (rev 0)
+++ packages/trunk/sdlbasic/debian/watch.ex	2008-04-04 12:26:00 UTC (rev 6433)
@@ -0,0 +1,22 @@
+# Example watch control file for uscan
+# Rename this file to "watch" and then you can run the "uscan" command
+# to check for upstream updates and more.
+# See uscan(1) for format
+
+# Compulsory line, this is a version 3 file
+version=3
+
+# Uncomment to examine a Webpage 
+# <Webpage URL> <string match>
+#http://www.example.com/downloads.php sdlbasic-(.*)\.tar\.gz
+
+# Uncomment to examine a Webserver directory
+#http://www.example.com/pub/sdlbasic-(.*)\.tar\.gz
+
+# Uncommment to examine a FTP server
+#ftp://ftp.example.com/pub/sdlbasic-(.*)\.tar\.gz debian uupdate
+
+# Uncomment to find new files on sourceforge, for debscripts >= 2.9
+# http://sf.net/sdlbasic/sdlbasic-(.*)\.tar\.gz
+
+

Modified: packages/trunk/sdlbasic/src/sdlBasic/src/sdlBasic/gtk/makefile
===================================================================
--- packages/trunk/sdlbasic/src/sdlBasic/src/sdlBasic/gtk/makefile	2008-04-04 12:25:45 UTC (rev 6432)
+++ packages/trunk/sdlbasic/src/sdlBasic/src/sdlBasic/gtk/makefile	2008-04-04 12:26:00 UTC (rev 6433)
@@ -96,25 +96,26 @@
 # This is OK - just means no SciTE in the Gnome Applications menu
 # Dead:	install -D SciTEGTK.properties $(SYSCONF_PATH)/SciTEGlobal.properties
 install:
-	$(INSTALL) -m 755 -d $(bindir) $(SYSCONF_PATH)
-	$(INSTALL) -m 755 -d $(bindir) $(DOC_PATH)
-	$(INSTALL) -m 755 -d $(bindir) $(PLUGINS_PATH)
+	$(INSTALL) -m 755 -d $(DESTDIR)$(bindir)
+	$(INSTALL) -m 755 -d $(DESTDIR)$(SYSCONF_PATH)
+	$(INSTALL) -m 755 -d $(DESTDIR)$(DOC_PATH)
+	$(INSTALL) -m 755 -d $(DESTDIR)$(PLUGINS_PATH)
 
-	$(INSTALL) -m 755 $(PROG) $(bindir)
+	$(INSTALL) -m 755 $(PROG) $(DESTDIR)$$(bindir)
 
 	for files in ../../../share/sdlBasic/*.properties ../../../share/sdlBasic/*.api; \
 	do \
-		$(INSTALL) -m 644 $$files $(SYSCONF_PATH); \
+		$(INSTALL) -m 644 $$files $(DESTDIR)$$(SYSCONF_PATH); \
 	done
 
 #for files in ..../share/doc/sdlBasic/*.html ../doc/SciTEIco.png ../doc/PrintHi.png; \
 #do \
-#$(INSTALL) -m 644 $$files $(DOC_PATH); \
+#$(INSTALL) -m 644 $$files $(DESTDIR)$$(DOC_PATH); \
 #done
 
 	for files in ../../../share/sdlBasic/plugins/*.sdlbas; \
 	do \
-		$(INSTALL) -m 644 $$files $(PLUGINS_PATH); \
+		$(INSTALL) -m 644 $$files $(DESTDIR)$$(PLUGINS_PATH); \
 	done
 
 uninstall:

Modified: packages/trunk/sdlbasic/src/sdlBasic/src/sdlBrt/makefile
===================================================================
--- packages/trunk/sdlbasic/src/sdlBasic/src/sdlBrt/makefile	2008-04-04 12:25:45 UTC (rev 6432)
+++ packages/trunk/sdlbasic/src/sdlBasic/src/sdlBrt/makefile	2008-04-04 12:26:00 UTC (rev 6433)
@@ -328,23 +328,23 @@
 ifeq ($(compress), UPX)
 	upx -9 $(TARGET)
 endif
-	$(INSTALL) -c -m 755 -d ${exec_prefix}
-	$(INSTALL) -c $(TARGET) ${exec_prefix}
+	$(INSTALL) -c -m 755 -d $(DESTDIR)${exec_prefix}
+	$(INSTALL) -c $(TARGET) $(DESTDIR)${exec_prefix}
 
 
 install-fonts:
-	$(INSTALL) -c -m 755 -d ${font_prefix}/dejavu
-	$(INSTALL)  fonts/DejaVuSans.ttf ${font_prefix}/dejavu/DejaVuSans.ttf
-	$(INSTALL)  fonts/DejaVuSansMono-Roman.ttf ${font_prefix}/dejavu/DejaVuSansMono-Roman.ttf
+	$(INSTALL) -c -m 755 -d $(DESTDIR)${font_prefix}/dejavu
+	$(INSTALL)  fonts/DejaVuSans.ttf $(DESTDIR)${font_prefix}/dejavu/DejaVuSans.ttf
+	$(INSTALL)  fonts/DejaVuSansMono-Roman.ttf $(DESTDIR)${font_prefix}/dejavu/DejaVuSansMono-Roman.ttf
 
 remove:	remove-bin	remove-fonts
 
 remove-bin:
-	$(RM) ${exec_prefix}/$(TARGET)
+	$(RM) $(DESTDIR)${exec_prefix}/$(TARGET)
 
 remove-fonts:
-	$(RM) ${font_prefix}/dejavu/DejaVuSans.ttf
-	$(RM) ${font_prefix}/dejavu/DejaVuSansMono-Roman.ttf
+	$(RM) $(DESTDIR)${font_prefix}/dejavu/DejaVuSans.ttf
+	$(RM) $(DESTDIR)${font_prefix}/dejavu/DejaVuSansMono-Roman.ttf
 
 clean:
 	$(RM) *.o




More information about the Pkg-games-commits mailing list