debian/0000755000000000000000000000000012216623557007177 5ustar debian/control0000644000000000000000000000150712216623557010605 0ustar Source: xphoon Section: games Priority: optional Build-Depends: debhelper (>= 9), libxext-dev, libx11-dev, xutils-dev, hardening-wrapper Maintainer: Ricardo Mones Standards-Version: 3.9.4 Homepage: http://xphoon.sourceforge.net/ Vcs-Git: git://anonscm.debian.org/users/mones/xphoon.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=users/mones/xphoon.git Package: xphoon Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: sets the root window to a picture of the moon xphoon sets the X root window to a picture of the moon in its current phase, including the partial lighting of the dark side by reflected earthlight. Picture is a monochrome dithered bitmap which is calculated via mathematical formulae. It keeps running on background updating the picture accordingly as time goes by. debian/watch0000644000000000000000000000006512216623557010231 0ustar version=3 http://sf.net/xphoon/xphoon-(\d+)\.tar\.gz debian/install0000644000000000000000000000002212216623557010562 0ustar xphoon /usr/games debian/source/0000755000000000000000000000000012216623557010477 5ustar debian/source/format0000644000000000000000000000001412216623557011705 0ustar 3.0 (quilt) debian/copyright0000644000000000000000000000145412216623557011136 0ustar This package was initially debianized by David Frey on Mon Nov 3 21:41:25 CET 1997 and was maintained by Sean 'Shaleh' Perry and is now maintained by Junichi Uekawa I (David Frey) got it from sunsite.cnlab-switch.ch:/mirror/X11/R5-contrib/xphoon.tar.Z. Changes: * added Debian GNU/Linux package maintenance system files * re-packaged it. Copyright: Copyright (C) 1988, 1991 by Jef Poskanzer and Craig Leres. 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. This software is provided "as is" without express or implied warranty. debian/rules0000755000000000000000000000050012216623557010252 0ustar #!/usr/bin/make -f export DEB_BUILD_HARDENING=1 CDEBUGFLAGS = -Dlint -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CDEBUGFLAGS += -O0 else CDEBUGFLAGS += -O2 endif %: dh $@ override_dh_auto_build: xmkmf $(MAKE) CDEBUGFLAGS="$(CDEBUGFLAGS)" override_dh_auto_install: # not need to create /usr/bin debian/patches/0000755000000000000000000000000012216623557010626 5ustar debian/patches/series0000644000000000000000000000017212216623557012043 0ustar do-not-require-a-tty.patch manpage-section.patch xbm-include.patch preprocessor-warnings.patch implicit-declaration.patch debian/patches/preprocessor-warnings.patch0000644000000000000000000000304712216623557016227 0ustar Description: fix warnings for extra tokens at end of #endif/#else directives Author: Ricardo Mones Last-Update: 2031-09-19 diff -urN b/dtime.c c/dtime.c --- b/dtime.c 1991-09-14 07:15:25.000000000 +0200 +++ c/dtime.c 2013-09-19 01:36:51.789573189 +0200 @@ -22,9 +22,9 @@ #ifdef SYS5 extern int daylight; extern long timezone; -#else /*SYS5*/ +#else #include -#endif /*SYS5*/ +#endif extern long time(); struct tm* localtime(); @@ -45,7 +45,7 @@ register struct tm* tm; #ifndef SYS5 struct timeb tb; -#endif not SYS5 +#endif static struct tws tw; if ( clock == (long*) 0 ) @@ -66,10 +66,10 @@ #ifndef SYS5 ftime( &tb ); tw.tw_zone = -tb.timezone; -#else SYS5 +#else tzset(); tw.tw_zone = -( timezone / 60 ); -#endif SYS5 +#endif tw.tw_flags &= ~TW_SDAY; tw.tw_flags |= TW_SEXP; tw.tw_clock = *clock; diff -urN b/tws.h c/tws.h --- b/tws.h 1991-09-14 01:32:38.000000000 +0200 +++ c/tws.h 2013-09-19 01:37:18.029113040 +0200 @@ -69,9 +69,9 @@ #ifdef ATZ #define dtime(cl) dasctime( dlocaltime( cl ), TW_NULL ) -#else ATZ +#else #define dtime(cl) dasctime( dlocaltime( cl ), TW_ZONE ) -#endif ATZ +#endif #define dtwszone(tw) dtimezone( tw -> tw_zone, tw -> tw_flags ) diff -urN b/vroot.h c/vroot.h --- b/vroot.h 1991-09-18 21:49:11.000000000 +0200 +++ c/vroot.h 2013-09-19 01:37:51.228530540 +0200 @@ -95,4 +95,4 @@ #undef DefaultRootWindow #define DefaultRootWindow(dpy) VirtualRootWindowOfScreen(DefaultScreenOfDisplay(dpy)) -#endif /* _VROOT_H_ */ +#endif debian/patches/xbm-include.patch0000644000000000000000000000056212216623557014061 0ustar Description: fix include to be able to build with hardened flags Author: Ricardo Mones Last-Update: 2031-09-19 --- a/moon.c 1991-09-16 02:59:28.000000000 +0200 +++ b/moon.c 2013-09-19 01:30:22.552417038 +0200 @@ -14,7 +14,7 @@ #endif #include -#include +#include "moon.xbm" void getbits( wP, hP, moonP, cxP, cyP, rP ) debian/patches/implicit-declaration.patch0000644000000000000000000000060012216623557015740 0ustar Description: fix “incompatible implicit declaration of built-in function 'exit'” Author: Ricardo Mones Last-Update: 2031-09-19 diff -urN a/phase.c b/phase.c --- a/phase.c 1991-09-14 07:15:29.000000000 +0200 +++ b/phase.c 2013-09-19 02:15:10.166484773 +0200 @@ -9,6 +9,7 @@ #endif #include +#include #include #include "tws.h" debian/patches/manpage-section.patch0000644000000000000000000000072312216623557014723 0ustar Description: fix man page section Author: Junichi Uekawa Last-Update: 2011-08-16 diff -urN xphoon-20000613.orig/xphoon.man xphoon-20000613/xphoon.man --- xphoon-20000613.orig/xphoon.man 2000-06-13 23:50:54.000000000 +0200 +++ xphoon-20000613/xphoon.man 2011-08-16 21:45:41.000000000 +0200 @@ -1,4 +1,4 @@ -.TH xphoon 1 "6 April 1999" +.TH xphoon 6 "6 April 1999" .SH NAME xphoon - displays the PHase of the mOON on the root window .SH SYNOPSIS debian/patches/do-not-require-a-tty.patch0000644000000000000000000000175512216623557015565 0ustar Description: fix -i (background) option to not require a tty Author: Jeff King Reviewed-by: Junichi Uekawa Bug-Debian: http://bugs.debian.org/206319 Last-Update: 2011-08-16 diff -urN xphoon-20000613.orig/xphoon.c xphoon-20000613/xphoon.c --- xphoon-20000613.orig/xphoon.c 2000-06-13 23:50:16.000000000 +0200 +++ xphoon-20000613/xphoon.c 2011-08-16 21:45:41.000000000 +0200 @@ -25,6 +25,7 @@ #include #include /* added by Lalo Martins */ #include +#include /* added by Jeff King */ #include "tws.h" @@ -202,9 +203,14 @@ tty = open( "/dev/tty", 0 ); if ( tty < 0 ) { - (void) fprintf( stderr, "%s: ", argv0 ); - perror( "/dev/tty open" ); - exit( 1 ); + /* if we don't have a tty, don't flag an error + * Jeff King, Aug 20 2003 */ + if ( errno != ENXIO ) + { + (void) fprintf( stderr, "%s: ", argv0 ); + perror( "/dev/tty open" ); + exit( 1 ); + } } else { debian/manpages0000644000000000000000000000001312216623557010707 0ustar xphoon.man debian/docs0000644000000000000000000000000712216623557010047 0ustar README debian/pbuilder-test/0000755000000000000000000000000012216623557011762 5ustar debian/pbuilder-test/001_ldd0000644000000000000000000000004312216623557013025 0ustar #!/bin/bash ldd /usr/games/xphoon debian/compat0000644000000000000000000000000212216623557010375 0ustar 9 debian/menu0000644000000000000000000000015712216623557010071 0ustar ?package(xphoon):\ needs="x11"\ section="Games/Toys"\ title="X Phase of Moon"\ command="/usr/games/xphoon" debian/changelog0000644000000000000000000001414312216623557011054 0ustar xphoon (20000613+0-2) unstable; urgency=low * debian/rules, debian/{install|dirs|docs|manpages} - Switch to debhelper sequencer - Enable hardening through hardening-wrapper * debian/control, debian/compat - Bump debhelper compat level to 9 - Update Vcs-* headers to use the canonical hostname - Bump Standards-Version to 3.9.4 (no other changes) * debian/patches/{xbm-include|preprocessor-warnings |implicit-declaration}.patch - New patches to be able to build with hardening flags and to remove all preprocessor/compiler warnings * debian/watch - Added watch file just to keep lintian happy -- Ricardo Mones Thu, 19 Sep 2013 18:31:03 +0200 xphoon (20000613+0-1) unstable; urgency=low * Bumped version because of repackaging of orig.tar.gz tarball to remove included debian dir. * debian/source/format, debian/patches/* - Switch to dpkg-source 3.0 (quilt) format - Add patches to upstream contained in diff.gz in DEP3 format * debian/control - Update Standards-Version to 3.9.2 (no other changes required) - Development moved to git.debian.org: added Vcs-* headers - Update description to reflect program dynamic behaviour * debian/rules - Provide build-arch and build-indep targets (thanks lintian) -- Ricardo Mones Thu, 18 Aug 2011 11:15:09 +0200 xphoon (20000613-15) unstable; urgency=low * debian/control - Update Standards-Version to 3.8.3 (no other changes) - Added ${misc:Depends} to binary package -- Ricardo Mones Sat, 16 Jan 2010 01:04:42 +0100 xphoon (20000613-14) unstable; urgency=low * New maintainer (Closes: #435898) * debian/control - Changed maintainer address, bumped Standards-Version, added Homepage * debian/menu; debian/xphoon.files; debian/post* - Better title; removed trailing blank line; removed default scripts -- Ricardo Mones Fri, 17 Oct 2008 02:40:36 +0200 xphoon (20000613-13) unstable; urgency=low * QA upload. * Switch to debhelper 5. * Update build dependencies for X11R7. - Replace xutils with xutils-dev. - Remove x-dev. * debian/menu: Update section to Games/Toys. * debian/rules: Let dh_strip take care of stripping. Closes: #438318. * debian/rules: Add support for DEB_BUILD_OPTIONS=noopt. * debian/rules: Don't ignore errors when cleaning. -- Matej Vela Sun, 26 Aug 2007 19:32:23 +0200 xphoon (20000613-12) unstable; urgency=low * orphan -- Junichi Uekawa Sat, 04 Aug 2007 09:34:44 +0900 xphoon (20000613-11) unstable; urgency=low * dh_compat: 4 * Standards-Version: 3.7.2 * xphoon.man is section 6, reflect it to content. -- Junichi Uekawa Sat, 12 Aug 2006 23:51:23 +0900 xphoon (20000613-10) unstable; urgency=low * Bug fix: "xphoon: FTBFS: build-depends on removed xlibs-dev" change to libxext-dev and libx11-dev (Closes: #346835). -- Junichi Uekawa Mon, 9 Jan 2006 13:10:58 +0900 xphoon (20000613-9) unstable; urgency=low * Apply fix for the patch from Jeff King -- Junichi Uekawa Fri, 22 Aug 2003 19:03:02 +0900 xphoon (20000613-8) unstable; urgency=low * No idea what the current status of this package is, but noone seems to have touched it, and I'm still listed as the maintainer, I'm taking my liberty to upload a new package. * Bug#206319: xphoon: -i (background) requires a tty Apply patch from Jeff King , (closes: #206319) -- Junichi Uekawa Wed, 20 Aug 2003 23:30:32 +0900 xphoon (20000613-7) unstable; urgency=low * new maintainer. (closes: #106110) -- Matthew Vernon Fri, 26 Oct 2001 11:22:18 +0100 xphoon (20000613-6) unstable; urgency=low * new maintainer. (closes: 100273) * bumped standards-version to 3.5.5 -- Junichi Uekawa Sat, 21 Jul 2001 23:51:44 +0900 xphoon (20000613-5) unstable; urgency=low * Changed priority from extra to optional to fix override disparity. -- Dr. Guenter Bechly Sat, 24 Feb 2001 23:36:11 +0100 xphoon (20000613-4) unstable; urgency=low * Adopting package; closes: #86869 -- Dr. Guenter Bechly Fri, 23 Feb 2001 21:21:34 +0100 xphoon (20000613-3) unstable; urgency=low * Orphaning package -- Sean 'Shaleh' Perry Tue, 20 Feb 2001 15:52:39 -0800 xphoon (20000613-2) unstable; urgency=low * Brought package to 3.2.x policy, Closes: #84673 -- Sean 'Shaleh' Perry Wed, 7 Feb 2001 15:37:54 -0800 xphoon (20000613-1) unstable; urgency=low * New maintainer upload * closes: #42217 -- Sean 'Shaleh' Perry Tue, 13 Jun 2000 14:36:54 -0700 xphoon (19990413-0) unstable; urgency=low * Lalo Martin's southern hemishpere patch * re-released upstream * changed to numerical version number -- Sean E. Perry Wed, 14 Apr 1999 00:32:07 -0400 xphoon (18sep91-6) unstable; urgency=low * modified to use debhelper * New maintainer -- Sean E. Perry Tue, 11 Aug 1998 22:21:12 -0400 xphoon (18sep91-5) unstable; urgency=low * fixed Bug #22851: xphoon: better placement in menu hierarchy -- David Frey Wed, 8 Jul 1998 22:13:34 +0200 xphoon (18sep91-4) unstable; urgency=low * fixed lintian error: move manpage from /usr/X11R6/man6/xphoon.6x.hz to /usr/man/man6/xphoon.6x.gz -- David Frey Tue, 10 Mar 1998 21:42:50 +0100 xphoon (18sep91-3) unstable; urgency=low * fixed lintian-reported bugs: md5sums-paths starting with dot. * changed maintainer address to official Debian address. -- David Frey Tue, 10 Feb 1998 23:18:36 +0100 xphoon (18sep91-2) unstable; urgency=low * Changed e-mail address back to * do not include DEBIAN directory in md5sums * confirms to policy 2.3.0.1 -- David Frey Sun, 21 Dec 1997 18:41:34 +0100 xphoon (18sep91-1) unstable; urgency=low * Initial Release. -- David Frey Tue, 4 Nov 1997 00:01:00 +0100 debian/dirs0000644000000000000000000000005612216623557010064 0ustar /usr/games /usr/share/doc /usr/share/man/man6