--- xflip-1.01.orig/trace=open +++ xflip-1.01/trace=open @@ -0,0 +1,121 @@ +execve("/usr/bin/imake", ["imake", "-DUseInstalled", "-I/usr/lib/X11/config"], [/* 48 vars */]) = 0 +uname({sys="Linux", node="otto", ...}) = 0 +brk(0) = 0x804e000 +access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) +mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f86000 +access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) +open("/etc/ld.so.cache", O_RDONLY) = 3 +fstat64(3, {st_mode=S_IFREG|0644, st_size=113147, ...}) = 0 +mmap2(NULL, 113147, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f6a000 +close(3) = 0 +access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) +open("/lib/tls/libc.so.6", O_RDONLY) = 3 +read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240O\1"..., 512) = 512 +fstat64(3, {st_mode=S_IFREG|0644, st_size=1245676, ...}) = 0 +mmap2(NULL, 1251484, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e38000 +mmap2(0xb7f60000, 28672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x128) = 0xb7f60000 +mmap2(0xb7f67000, 10396, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f67000 +close(3) = 0 +mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7e37000 +mprotect(0xb7f60000, 20480, PROT_READ) = 0 +set_thread_area({entry_number:-1 -> 6, base_addr:0xb7e378e0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0 +munmap(0xb7f6a000, 113147) = 0 +rt_sigaction(SIGINT, {SIG_IGN}, {SIG_DFL}, 8) = 0 +rt_sigaction(SIGINT, {0x804a9e0, [INT], SA_RESTART}, {SIG_IGN}, 8) = 0 +rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0 +access("Imakefile", R_OK) = 0 +access("Imakefile.c", F_OK) = -1 ENOENT (No such file or directory) +brk(0) = 0x804e000 +brk(0x806f000) = 0x806f000 +open("Makefile", O_RDWR|O_CREAT|O_TRUNC, 0666) = 3 +open("Imakefile", O_RDONLY) = 4 +fstat64(4, {st_mode=S_IFREG|0644, st_size=387, ...}) = 0 +fstat64(4, {st_mode=S_IFREG|0644, st_size=387, ...}) = 0 +mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f85000 +read(4, "OBJS1 = meltdown.o\nOBJS2 = flip."..., 4096) = 387 +close(4) = 0 +munmap(0xb7f85000, 4096) = 0 +open("Imakefile.c", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 4 +fstat64(4, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 +mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f85000 +uname({sys="Linux", node="otto", ...}) = 0 +lstat64("/etc/SuSE-release", 0xbfbdcd30) = -1 ENOENT (No such file or directory) +lstat64("/etc/redhat-release", 0xbfbdcd30) = -1 ENOENT (No such file or directory) +lstat64("/etc/debian_version", {st_mode=S_IFREG|0644, st_size=17, ...}) = 0 +gettimeofday({1161165952, 131587}, NULL) = 0 +getpid() = 12758 +open("/tmp/imakecONlQk", O_RDWR|O_CREAT|O_EXCL, 0600) = 5 +close(5) = 0 +pipe([5, 6]) = 0 +clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7e37928) = 12759 +close(5) = 0 +fstat64(6, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0 +mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f84000 +write(6, "#include \n#include #include @@ -63,12 +64,14 @@ GC copygc, fillgc; int screen; int depth; +int delay=0; +int wait=-1; short **heights; usage() { - fprintf(stderr, "Usage: meltdown [-planes] [-display ]\n"); + fprintf(stderr, "Usage: meltdown [-planes] [-display ] [-delay x] [-wait n | -wait 0 ]\n"); exit(1); } @@ -93,6 +96,16 @@ usage(); } else if (strncmp(argv[i], "-p", 2) == 0) { use_planes = 1; + } else if (strncmp(argv[i], "-del", 4) == 0) { + if (argv[i+1]) + delay=atoi(argv[++i]); + else + usage(); + } else if (strncmp(argv[i], "-wait", 5) == 0) { + if (argv[i+1]) + wait=atoi(argv[++i]); + else + usage(); } else usage(); } @@ -138,6 +151,26 @@ exit(0); } +finish() +{ + XEvent e; + + XSelectInput(dpy, win, ButtonPressMask | KeyPressMask ); + XSetInputFocus(dpy, win, RevertToParent, CurrentTime); + if ( wait == 0 ) + while (1) { + XNextEvent(dpy, &e); + if (e.type == KeyPress) + break; + if (e.type == ButtonPress) + break; + } + if ( wait > 0 ) sleep (wait); + + XSync(dpy, 0); + exit(0); +} + do_planes() { int finished = 0; @@ -181,17 +214,15 @@ heights[depth][i] = max(heights[depth][i], yloc); } - if (finished >= (DisplayWidth(dpy, screen) - FINISHED)) { - XSync(dpy, 0); - exit(0); - } + if (finished >= DisplayPlanes(dpy, screen) * (DisplayWidth(dpy, screen) - FINISHED)) + finish(); } } do_all() { int finished = 0; -int width, xloc, yloc, dist, size, i; +int width, xloc, yloc, dist, size, i, cnt=0; short *heights; heights = (short *) calloc(sizeof(short), DisplayWidth(dpy, screen)); @@ -227,9 +258,12 @@ heights[i] = max(heights[i], yloc); } - if (finished >= (DisplayWidth(dpy, screen) - FINISHED)) { - XSync(dpy, 0); - exit(0); + if (finished >= (DisplayWidth(dpy, screen) - FINISHED)) + finish(); + + if (delay > 0 && cnt++ == delay) { + usleep(1); + cnt=0; } } } --- xflip-1.01.orig/Imakefile +++ xflip-1.01/Imakefile @@ -1,7 +1,3 @@ -#ifdef HPArchitecture -CCOPTIONS = -Ae -#endif - OBJS1 = meltdown.o OBJS2 = flip.o @@ -11,7 +7,10 @@ AllTarget($(PROGRAMS)) +XCOMM debian likes all games in /usr/games. +BINDIR = /usr/games + NormalProgramTarget(meltdown, $(OBJS1), , , $(LOCAL_LIBRARIES)) NormalProgramTarget(flip, $(OBJS2), , , $(LOCAL_LIBRARIES)) -InstallProgram(meltdown,$(BINDIR)) -InstallProgram(flip,$(BINDIR)) +InstallProgram(meltdown,$(PREFIX)/$(BINDIR)) +InstallProgram(flip,$(PREFIX)/$(BINDIR)) --- xflip-1.01.orig/flip.6x +++ xflip-1.01/flip.6x @@ -0,0 +1,55 @@ +.TH XFLIP 6 +.SH NAME +xflip, meltdown \- astonish your friends with interesting X effects +.SH SYNOPSIS +.B xflip +.I "[-planes] [-vert] [-oblic] [-fast | -random] [-times number] [-display displayname]" +.br +.B meltdown +.I "[-planes] [-display displayname] [-delay x] [-wait n | -wait 0]" +.SH "DESCRIPTION" +This manual page documents briefly the +.BR xflip , +and +.B meltdown +commands. +This manual page was written for the Debian GNU/Linux distribution +(but may be used by others), because the original program does not +have a manual page. +.PP +The programs play with the X display, producing some interesting effects. +One traditional use of these commands is to have them run and affect someone +else's X display, as a practical joke. +.SH OPTIONS +.TP +.B \-display displayname +The X display to operate on. +.TP +.B \-planes +Operate on a singleplane at a time. +.TP +.B \-vert +Flip the screen vertically. +.TP +.B \-oblic +Flip the screen vertically and horizontally at the same time. +.TP +.B \-random +Flip small random peices of the screen instead of the while display. +.TP +.B \-times number +Specifies the number of peices of the screen to flip when -random is used. +Default is 300. +.TP +.B \-delay x +Meltdown may run too fast on fast computers to be fully appreciated; this +can be used to slow it down. If specified, every x times the display is +updated, a 1 microsecond delay will be inserted. The default is no delay at +all. Reasonable values for x are in the 20 to 200 range. +.TP +.B \-wait n +Makes meltdown wait for n seconds after the screen is totally black. If you +pass 0 to -wait, it will wait until you press a key or mouse button. +.SH AUTHOR +This manual page was written by Joey Hess, +for the Debian GNU/Linux system. --- xflip-1.01.orig/debian/copyright +++ xflip-1.01/debian/copyright @@ -0,0 +1,37 @@ +This is the Debian Linux prepackaged version of xflip and xmelt. + +This package was put together by Joey Hess , with sources +obtained from: + http://hpux.cs.utah.edu/hpux/X11/Demos/xflip-1.01.html + +The following copyright applies to this software: + + * Copyright 1990 David Lemke and Network Computing Devices + * + * Permission to use, copy, modify, distribute, and sell this software and its + * documentation for any purpose is hereby granted without fee, provided that + * the above copyright notice appear in all copies and that both that + * copyright notice and this permission notice appear in supporting + * documentation, and that the name of Network Computing Devices not be + * used in advertising or publicity pertaining to distribution of the + * software without specific, written prior permission. Network Computing + * Devices makes no representations about the suitability of this software + * for any purpose. It is provided "as is" without express or implied + * warranty. + * + * NETWORK COMPUTING DEVICES DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS + * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, + * IN NO EVENT SHALL NETWORK COMPUTING DEVICES 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. + * + * Author: + * Dave Lemke + * lemke@ncd.com + * + * Network Computing Devices, Inc + * 350 North Bernardo Ave + * Mountain View, CA 94043 + * --- xflip-1.01.orig/debian/changelog +++ xflip-1.01/debian/changelog @@ -0,0 +1,171 @@ +xflip (1.01-25) unstable; urgency=low + + * Build-Depend on xutils-dev for imake (Closes: #485547) + * don’t ignore make clean error + * bump standards version to 3.8.0, no changes + + -- Joachim Breitner Tue, 10 Jun 2008 10:09:00 +0200 + +xflip (1.01-24) unstable; urgency=low + + * removing unneeded dependency of libXext (thx to checklib) + (using sed on the Makefile after imake... but it works) + + -- Joachim Breitner Wed, 18 Oct 2006 09:57:25 +0000 + +xflip (1.01-23) unstable; urgency=low + + * (meltdown) -wait 0 waits for key/buttonpress + * (meltdown) make -planes do it all the way + * Just noticed that I have not uploaded these + changes from Sun, 24 Oct 2004 23:37:20 +0200... + * Bump standards, no change + + -- Joachim Breitner Sun, 13 Aug 2006 16:31:38 +0000 + +xflip (1.01-21) unstable; urgency=low + + * Edited meltdown to support -wait option + + -- Joachim Breitner Sun, 22 Aug 2004 01:58:08 +0200 + +xflip (1.01-20) unstable; urgency=low + + * Mention meltdown in the description (by users request - there really + are some users!) + * Changed Build-Depends to libx11-dev instead of deprecated xlibs-dev + * Quotes in menu file to make lintian happy + + -- Joachim Breitner Thu, 12 Aug 2004 11:20:15 +0200 + +xflip (1.01-19) unstable; urgency=low + + * Adopted Package (Closes: #202230) + * Minor debian/rules and description changes + * Updates policy (no changes) + + -- Joachim Breitner Fri, 6 Feb 2004 19:21:40 +0100 + +xflip (1.01-18) unstable; urgency=low + + * orphaned; package maintainer set to packages@qa.debian.org + + -- tony mancill Sun, 20 Jul 2003 20:53:30 -0700 + +xflip (1.01-17) unstable; urgency=low + + * updated standards version and build-depends (closes: #170139) + + -- tony mancill Sat, 23 Nov 2002 11:36:39 -0800 + +xflip (1.01-16) unstable; urgency=low + + * fixed menu entry for xflip (closes: #122405) + + -- tony mancill Tue, 4 Dec 2001 17:12:41 -0800 + +xflip (1.01-15) unstable; urgency=low + + * recompiled against xfree 4.x libraries for woody release + + -- tony mancill Tue, 27 Nov 2001 13:23:34 -0800 + +xflip (1.01-14) unstable; urgency=low + + * fix compile on hppa (-Ae in Imakefile not needed) (closes: #104858) + + -- tony mancill Mon, 23 Jul 2001 23:35:40 -0700 + +xflip (1.01-13) unstable; urgency=low + + * new maintainer - tony mancill (Closes: bug#69653) + + -- tony mancill Sat, 26 Aug 2000 16:52:58 -0700 + +xflip (1.01-12) unstable; urgency=low + + * Renamed /usr/games/flip to /usr/games/xflip because /usr/bin/flip is + used by another paclage. Closes: #63916 + + -- Joey Hess Thu, 11 May 2000 13:55:26 -0700 + +xflip (1.01-11) unstable; urgency=low + + * Removed dup man page, Closes: #52897 + + -- Joey Hess Thu, 16 Dec 1999 14:57:55 -0800 + +xflip (1.01-10) unstable; urgency=low + + * Build deps. + + -- Joey Hess Sat, 4 Dec 1999 18:22:49 -0800 + +xflip (1.01-9) unstable; urgency=low + + * FHS + * Let's try signing this upload with gpg.. + + -- Joey Hess Sun, 12 Sep 1999 14:57:45 -0700 + +xflip (1.01-8) unstable; urgency=low + + * Modified meltdown so you can speficy a delay in between each screen + update, so the full effect can be enjoyed on faster machines. (#36452) + * Man page now documents all options. + + -- Joey Hess Wed, 21 Apr 1999 13:32:54 -0700 + +xflip (1.01-7) unstable; urgency=low + + * Moved binaries to /usr/games, moved manpages to /usr/man/man6. + + -- Joey Hess Mon, 9 Mar 1998 23:57:13 -0800 + +xflip (1.01-6) unstable; urgency=low + + * Fixed man page typo #17592. + * Uses debhelper. + + -- Joey Hess Wed, 28 Jan 1998 16:59:14 -0500 + +xflip (1.01-5) unstable; urgency=low + + * Libc6. + * New format menu file. + * Routine update of debian/rules: + Fixed binary-indep target. + + -- Joey Hess Mon, 8 Sep 1997 19:38:42 -0400 + +xflip (1.01-4) unstable; urgency=low + + * Added manpages, closeing #6346. + * Moved menu entries from Apps/Games/Toys to Games/Toys + * Routine update of debian/rules: + Use build-stamp instead of build. + + -- Joey Hess Tue, 28 Jan 1997 22:10:35 -0500 + +xflip (1.01-3) unstable; urgency=low + + * Added a menu-file. + * Routine update of debian/rules: + Use debmake. + New email address. + + -- Joey Hess Fri, 20 Dec 1996 23:47:40 -0500 + +xflip (1.01-2) unstable; urgency=low + + * Updated to new source format. + * Now registers itself with install-fvwm2menu. + + -- Joey Hess Sun, 6 Oct 1996 15:41:45 -0400 + +1.01-2 +* Initial release. + +Local variables: +mode: debian-changelog +End: --- xflip-1.01.orig/debian/rules +++ xflip-1.01/debian/rules @@ -0,0 +1,69 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess. +# Adopted by Joachim Breitner (© 2004) + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +build: build-stamp +build-stamp: + dh_testdir + + # Add here commands to compile the package. + xmkmf -a + sed -i 's/^EXTENSIONLIB =.*/EXTENSIONLIB = /' Makefile + $(MAKE) + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + [ ! -f Makefile ] || $(MAKE) -i clean + + dh_clean Makefile + +# Build architecture-independent files here. +binary-indep: build +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build +# dh_testversion + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs usr/share/man/man6 + cp flip.6x debian/tmp/usr/share/man/man6/ + $(MAKE) PREFIX=debian/tmp install + # Rename. + mv -f debian/tmp/usr/share/man/man6/flip.6x \ + debian/tmp/usr/share/man/man6/xflip.6x + mv -f debian/tmp/usr/games/flip debian/tmp/usr/games/xflip + dh_link usr/share/man/man6/xflip.6x usr/share/man/man6/meltdown.6x + dh_installdocs +# dh_installexamples + dh_installmenu +# dh_installinit +# dh_installcron +# dh_installmanpages +# dh_undocumented + dh_installchangelogs + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol +# dh_makeshlibs + dh_md5sums + dh_builddeb + +source diff: + @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary --- xflip-1.01.orig/debian/control +++ xflip-1.01/debian/control @@ -0,0 +1,16 @@ +Source: xflip +Section: games +Priority: optional +Build-Depends: debhelper, libx11-dev, xutils-dev +Maintainer: Joachim Breitner +Standards-Version: 3.8.0 + +Package: xflip +Architecture: any +Depends: ${shlibs:Depends} +Description: programs to mirror-image or melt your display + Flip your (or your "xhost +" using friend's) screen on either the vertical + or horizontal axis or melt away the graphics on your display. Both commands, + named xflip and meltdown, have a -planes option to independently act on + individual bit planes. This version now comes with a new -oblic option which + flips horizontally and vertically simultaneously. --- xflip-1.01.orig/debian/menu +++ xflip-1.01/debian/menu @@ -0,0 +1,4 @@ +?package(xflip):needs="x11" section="Games/Toys" title="Flip Screen" \ + command="/usr/games/xflip" +?package(xflip):needs="x11" section="Games/Toys" title="Meltdown" \ + command="/usr/games/meltdown"