summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog24
-rw-r--r--debian/control21
-rw-r--r--debian/copyright18
-rw-r--r--debian/patches/00list1
-rwxr-xr-xdebian/patches/01-xterm.dpatch31
-rw-r--r--debian/ratpoison.187
-rw-r--r--debian/ratpoison.dirs1
-rw-r--r--debian/ratpoison.doc-base8
-rw-r--r--debian/ratpoison.docs3
-rw-r--r--debian/ratpoison.info1
-rw-r--r--debian/ratpoison.menu2
-rw-r--r--debian/ratpoison.watch1
-rw-r--r--debian/ratpoison.wm1
-rwxr-xr-xdebian/rules110
14 files changed, 309 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..e20d755
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,24 @@
+ratpoison (0.0.5-20001216) unstable; urgency=low
+
+ * CVS version as of 2000/12/16
+
+ -- Gergely Nagy <8@free.bsd.hu> Sat, 16 Dec 2000 18:13:19 +0100
+
+ratpoison (0.0.5-2) unstable; urgency=low
+
+ * Does not include /usr/info anymore. Whoops...
+ * Modified menu entry (Closes: Bug#79072).
+ * Fixed debian/rules#clean, I'm terribly sorry, won't happen again.
+
+ -- Gergely Nagy <8@free.bsd.hu> Mon, 11 Dec 2000 12:33:55 +0100
+
+ratpoison (0.0.5-1) unstable; urgency=low
+
+ * Initial Release.
+
+ -- Gergely Nagy <8@free.bsd.hu> Mon, 4 Dec 2000 21:52:54 +0100
+
+Local variables:
+mode: debian-changelog
+add-log-mailing-address "8@free.bsd.hu"
+End:
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..0e89940
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,21 @@
+Source: ratpoison
+Section: x11
+Priority: extra
+Maintainer: Gergely Nagy <8@free.bsd.hu>
+Build-Depends: debhelper (>= 2.0.89), xlibs-dev | xlib6g-dev
+Standards-Version: 3.2.1
+
+Package: ratpoison
+Architecture: any
+Depends: ${shlibs:Depends}
+Provides: x-window-manager
+Description: Simple window manager with no fat library dependencies.
+ ratpoison is a simple Window Manager with no fat library
+ dependencies, no fancy graphics, no window decorations,
+ and no flashy wank. It is largely modelled after GNU
+ Screen which has done wonders in virtual terminal market.
+ .
+ All interaction with the window manager is done through
+ keystrokes. ratpoison has a prefix map to minimize the
+ key clobbering that cripples EMACS and other quality
+ pieces of software.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..5df2bc5
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,18 @@
+This package was debianized by Gergely Nagy <8@free.bsd.hu> on
+Tue, 28 Nov 2000 16:13:08 +0100.
+
+It was downloaded from
+ ftp://ratpoison.sourceforge.net/pub/ratpoison/ratpoison-0.0.5.tar.gz
+
+Upstream Author: Shawn Betts <sabetts@users.sourceforge.net>
+
+Changes made to the original sources:
+ * added debian/
+ * added a manual page
+
+Copyright:
+
+ratpoison is covered by the GNU GPL v2. The complete text can be found in
+/usr/share/common-licenses/GPL
+
+Modifications for Debian are also covered by the GNU GPL.
diff --git a/debian/patches/00list b/debian/patches/00list
new file mode 100644
index 0000000..7937674
--- /dev/null
+++ b/debian/patches/00list
@@ -0,0 +1 @@
+01-xterm
diff --git a/debian/patches/01-xterm.dpatch b/debian/patches/01-xterm.dpatch
new file mode 100755
index 0000000..4bc94ab
--- /dev/null
+++ b/debian/patches/01-xterm.dpatch
@@ -0,0 +1,31 @@
+#!/bin/sh -e
+
+# All lines beginning with `# DP:' are a description of the patch.
+# DP: Calls x-terminal-emulator instead of xterm
+
+if [ $# -ne 1 ]; then
+ echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+ exit 1
+fi
+case "$1" in
+ -patch) patch -f --no-backup-if-mismatch -p0 < $0;;
+ -unpatch) patch -f --no-backup-if-mismatch -R -p0 < $0;;
+ *)
+ echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+ exit 1
+esac
+
+exit 0
+
+diff -u src/actions.c src/actions.c
+--- src/actions.c Sat Dec 16 16:07:05 2000
++++ src/actions.c Sat Dec 16 18:15:07 2000
+@@ -9,7 +9,7 @@
+
+ /* Initialization of the key structure */
+ rp_action key_actions[] = { {KEY_PREFIX, 0, 0, generate_prefix},
+- {XK_c, -1, "xterm", spawn},
++ {XK_c, -1, "x-terminal-emulator", spawn},
+ {XK_e, -1, "emacs", spawn},
+ {XK_p, -1, 0, prev_window},
+ {XK_n, -1, 0, next_window},
diff --git a/debian/ratpoison.1 b/debian/ratpoison.1
new file mode 100644
index 0000000..0be07f9
--- /dev/null
+++ b/debian/ratpoison.1
@@ -0,0 +1,87 @@
+.TH RATPOISON 1 "December 4, 2000" "ratpoison 0.0.5" RATPOISON
+.SH NAME
+ratpoison \- fatless X window manager
+.SH SYNOPSIS
+.B ratpoison
+.SH DESCRIPTION
+This manual page documents briefly the
+.B ratpoison
+window manager.
+
+This manual page was written for the Debian GNU/Linux distribution
+because the original program does not have a manual page.
+Instead, it has documentation in the GNU Info format; see below.
+.PP
+\fBratpoison\fP is a simple Window Manager with no fat library
+dependencies, no fancy graphics, no window decorations, and no
+flashy wank. It is largely modelled after \fIGNU Screen\fP which
+has done wonders in virtual terminal market.
+
+All interaction with the window manager is done through
+keystrokes. ratpoison has a prefix map to minimize the key
+clobbering that cripples EMACS and other quality pieces of
+software.
+.SH KEYSTROKES
+.TP
+.B C\-t C\-c
+This opens a new XTerm.
+.TP
+.B C\-t C\-e
+This opens a new EMACS session. You will probably only need to do this
+once.
+.TP
+.B C\-t C\-w
+This displays the Program Bar which displays the windows you currently
+have running. The number before each window name is used to jump to that
+window. You can to this by typing \fBC\-t C\-<n>\fP where \fI<n>\fP is the
+number of the window. Note that only windows with numbers from 0 to 9
+can be referenced.
+
+After 5 seconds the Program Bar disappears.
+.TP
+.B C\-t C\-p
+This jumps you to the previous window in the window list.
+.TP
+.B C\-t C\-n
+This jumps you to the next window in the window list.
+.TP
+.B C\-t C\-<n>
+This jumps you to window <n> where <n> is the window number as shown in
+the Program Bar.
+.TP
+.B C\-t C\-t
+This toggles between the current window and the last window.
+.TP
+.B C\-t t
+Sometimes you need to send a C\-t to the current window. This keystroke
+does just that.
+.TP
+.B C\-t C\-k
+This deletes the current window.
+.TP
+.B C\-t C\-K
+This destroys the current window. Normally you should only need to
+use `C-t k', but just incase you need to rip the heart out of a
+misbehaving window this command should do the trick.
+.TP
+.B C\-t C\-a
+Rename the currently active window. This name will remain for the
+duration of the window's life.
+.TP
+.B C\-t C\-'
+Go to a window by name.
+.SH "SEE ALSO"
+The full documentation for
+.B ratpoison
+is maintained as a Texinfo manual. If the
+.B info
+and
+.B ratpoison
+programs are properly installed at your site, the command
+.IP
+.B info ratpoison
+.PP
+should give you access to the complete manual.
+.SH AUTHOR
+This manual page was written by Gergely Nagy <8@free.bsd.hu>,
+for the Debian GNU/Linux system (but may be used by others).
diff --git a/debian/ratpoison.dirs b/debian/ratpoison.dirs
new file mode 100644
index 0000000..e772481
--- /dev/null
+++ b/debian/ratpoison.dirs
@@ -0,0 +1 @@
+usr/bin
diff --git a/debian/ratpoison.doc-base b/debian/ratpoison.doc-base
new file mode 100644
index 0000000..a8268e9
--- /dev/null
+++ b/debian/ratpoison.doc-base
@@ -0,0 +1,8 @@
+Document: ratpoison
+Title: Debian ratpoison Manual
+Author: Shawn Betts <sabetts@users.sourceforge.net>
+Abstract: This manual describes the ratpoison window manager
+Section: X11/Window Managers
+
+Format: info
+Files: /usr/share/info/ratpoison.info.gz
diff --git a/debian/ratpoison.docs b/debian/ratpoison.docs
new file mode 100644
index 0000000..6f83607
--- /dev/null
+++ b/debian/ratpoison.docs
@@ -0,0 +1,3 @@
+AUTHORS
+NEWS
+README
diff --git a/debian/ratpoison.info b/debian/ratpoison.info
new file mode 100644
index 0000000..2758ea9
--- /dev/null
+++ b/debian/ratpoison.info
@@ -0,0 +1 @@
+doc/ratpoison.info
diff --git a/debian/ratpoison.menu b/debian/ratpoison.menu
new file mode 100644
index 0000000..3b330e5
--- /dev/null
+++ b/debian/ratpoison.menu
@@ -0,0 +1,2 @@
+?package(ratpoison):needs=wm section=WindowManagers \
+ title="ratpoison" command="/usr/bin/ratpoison"
diff --git a/debian/ratpoison.watch b/debian/ratpoison.watch
new file mode 100644
index 0000000..0bbfbbe
--- /dev/null
+++ b/debian/ratpoison.watch
@@ -0,0 +1 @@
+ratpoison.sourceforge.net /pub/ratpoison ratpoison-(.*)\.tar\.gz debian uupdate
diff --git a/debian/ratpoison.wm b/debian/ratpoison.wm
new file mode 100644
index 0000000..664edf7
--- /dev/null
+++ b/debian/ratpoison.wm
@@ -0,0 +1 @@
+/usr/bin/ratpoison
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..1ef40f8
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,110 @@
+#!/usr/bin/make -f
+# by Gergely Nagy <8@free.bsd.hu>
+# patch and unpatch based on debian/rules.d/patch.mk in glibc-2.1.95-1
+
+export DH_COMPAT=2
+CFLAGS = -O2
+ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -g
+endif
+
+configure: patch configure-stamp
+configure-stamp:
+ dh_testdir
+ CFLAGS="$(CFLAGS)" ./configure --prefix=/usr \
+ --infodir=/usr/share/info \
+ --mandir=/usr/share/man
+ touch configure-stamp
+
+patch: patch-stamp
+patch-stamp:
+ test -d debian/patched || install -d debian/patched
+ @echo "Patches applied in the Debian version of ratpoison:" > $@T
+ @for patch in `cat debian/patches/00list`; do \
+ stamp=debian/patched/$$patch.dpatch; \
+ patch=debian/patches/$$patch.dpatch; \
+ test -x $$patch || chmod +x $$patch; \
+ if test -f $$stamp; then \
+ echo "$$patch already applied."; \
+ echo -e "\n$$patch:" >> $@T; \
+ sed -n 's/^# *DP: */ /p' $$patch >> $@T; \
+ else \
+ echo "trying to apply patch $$patch..."; \
+ if $$patch -patch >$$stamp.new 2>&1; then \
+ mv $$stamp.new $$stamp; \
+ touch $$stamp; \
+ echo -e "\n$$patch:" >> $@T; \
+ sed -n 's/^# *DP: */ /p' $$patch >> $@T; \
+ else \
+ echo "error in applying $$patch patch."; \
+ exit 1; \
+ fi; \
+ fi; \
+ done
+ mv -f $@T $@
+
+unpatch:
+ @for patch in `tac debian/patches/00list`; do \
+ stamp=debian/patched/$$patch.dpatch; \
+ patch=debian/patches/$$patch.dpatch; \
+ test -x $$patch || chmod +x $$patch; \
+ if test -f $$stamp; then \
+ echo "trying to revert patch $$patch..."; \
+ if $$patch -unpatch; then \
+ echo "reverted $$patch patch."; \
+ rm -f $$stamp; \
+ else \
+ echo "error in reverting $$patch patch."; \
+ exit 1; \
+ fi; \
+ fi; \
+ done
+ rm -f patch-stamp
+
+build: configure build-stamp
+build-stamp:
+ dh_testdir
+ $(MAKE)
+ touch build-stamp
+
+clean: clean1 unpatch
+clean1:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp configure-stamp patch-stamp
+ -$(MAKE) distclean
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+ $(MAKE) install prefix=`pwd`/debian/`dh_listpackages`/usr
+
+binary-indep: build install
+
+binary-arch: build install
+ dh_testversion 2.0.89
+ dh_testdir
+ dh_testroot
+ dh_installdocs
+ dh_installexamples
+ dh_installmenu
+ dh_installmanpages
+ dh_installinfo
+ dh_installchangelogs src/ChangeLog
+ dh_installwm
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install unpatch \
+ clean1 patch configure