summaryrefslogtreecommitdiff
path: root/x11/xphoon
diff options
context:
space:
mode:
authornra <nra@pkgsrc.org>2001-07-18 14:27:31 +0000
committernra <nra@pkgsrc.org>2001-07-18 14:27:31 +0000
commita2ae10c443aa03185997040b92ee20f065ee0578 (patch)
treedbe600ff3198ec9f9d6ad58abd11179a69af1e9c /x11/xphoon
parent981e6be9677b8da4009bbbade602c38d9b8e1254 (diff)
downloadpkgsrc-a2ae10c443aa03185997040b92ee20f065ee0578.tar.gz
Add xphoon-19910918. PR #13500 by Stoned Elipot.
Xphoon sets X the root window to a picture of the moon in its current phase.
Diffstat (limited to 'x11/xphoon')
-rw-r--r--x11/xphoon/Makefile26
-rw-r--r--x11/xphoon/distinfo7
-rw-r--r--x11/xphoon/patches/patch-aa13
-rw-r--r--x11/xphoon/patches/patch-ab23
-rw-r--r--x11/xphoon/patches/patch-ac48
-rw-r--r--x11/xphoon/pkg/DESCR1
-rw-r--r--x11/xphoon/pkg/PLIST4
7 files changed, 122 insertions, 0 deletions
diff --git a/x11/xphoon/Makefile b/x11/xphoon/Makefile
new file mode 100644
index 00000000000..20d51b95bac
--- /dev/null
+++ b/x11/xphoon/Makefile
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1.1.1 2001/07/18 14:27:31 nra Exp $
+#
+
+DISTNAME= xphoon.tar
+PKGNAME= xphoon-19910918
+CATEGORIES= x11
+MASTER_SITES= ftp://ftp.x.org/R5contrib/ \
+ ftp://ftp.freesoftware.com/pub/X11/R5contrib/
+EXTRACT_SUFX= .Z
+
+MAINTAINER= seb@pbox.org
+COMMENT= Set the root window to the moon in its current phase
+
+WRKSRC= ${WRKDIR}/xphoon
+
+USE_IMAKE= yes
+
+MAKE_FLAGS+= EXTRA_LOCAL_LIBS=${EXTRA_LOCAL_LIBS}
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "NetBSD"
+EXTRA_LOCAL_LIBS= -lcompat
+.endif
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/x11/xphoon/distinfo b/x11/xphoon/distinfo
new file mode 100644
index 00000000000..e4a1adb4f3f
--- /dev/null
+++ b/x11/xphoon/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2001/07/18 14:27:31 nra Exp $
+
+SHA1 (xphoon.tar.Z) = 1f267a69be8b00c07d2bce97623b8eba100eac42
+Size (xphoon.tar.Z) = 95407 bytes
+SHA1 (patch-aa) = c033d65d9190b963912ed6726922acbfe5b44dc9
+SHA1 (patch-ab) = 1aa0b58125cf41bb94c708bd53402357ec031423
+SHA1 (patch-ac) = 37b241180fad657de9d40b0acc02f91fe87afd62
diff --git a/x11/xphoon/patches/patch-aa b/x11/xphoon/patches/patch-aa
new file mode 100644
index 00000000000..e4ed2a29209
--- /dev/null
+++ b/x11/xphoon/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2001/07/18 14:27:31 nra Exp $
+
+--- Imakefile.orig Wed Sep 18 21:57:31 1991
++++ Imakefile
+@@ -11,7 +11,7 @@
+
+
+ INCLUDES = -I. -I$(TOP) -I$(TOP)/X11 -I$(TOP)/X11/bitmaps
+-LOCAL_LIBRARIES = $(XLIB)
++LOCAL_LIBRARIES = $(XLIB) $(EXTRA_LOCAL_LIBS)
+ DEPLIBS = $(DEPXLIB)
+ LDLIBS = -lm
+
diff --git a/x11/xphoon/patches/patch-ab b/x11/xphoon/patches/patch-ab
new file mode 100644
index 00000000000..af93beff5ab
--- /dev/null
+++ b/x11/xphoon/patches/patch-ab
@@ -0,0 +1,23 @@
+$NetBSD: patch-ab,v 1.1.1.1 2001/07/18 14:27:31 nra Exp $
+
+--- dtime.c.orig Sat Sep 14 07:15:25 1991
++++ dtime.c
+@@ -26,13 +26,17 @@
+ #include <sys/timeb.h>
+ #endif /*SYS5*/
+
++#include <sys/param.h>
++
++#if !(defined(BSD) && (BSD >= 199306))
+ extern long time();
+ struct tm* localtime();
++#endif
+
+ struct tws*
+ dtwstime()
+ {
+- long clock;
++ time_t clock;
+
+ (void) time( &clock );
+ return dlocaltime( &clock );
diff --git a/x11/xphoon/patches/patch-ac b/x11/xphoon/patches/patch-ac
new file mode 100644
index 00000000000..3bec9499f7f
--- /dev/null
+++ b/x11/xphoon/patches/patch-ac
@@ -0,0 +1,48 @@
+$NetBSD: patch-ac,v 1.1.1.1 2001/07/18 14:27:31 nra Exp $
+
+--- xphoon.c.orig Wed Sep 18 21:57:37 1991
++++ xphoon.c
+@@ -31,9 +31,16 @@
+
+ /* Externals. */
+
++#include <sys/param.h>
++
++#if (defined(BSD) && (BSD >= 199306))
++#include <stdlib.h>
++#include <time.h>
++#else
+ extern char* malloc();
+ extern long time();
+ extern long random();
++#endif
+
+ extern void getbits();
+ extern double jtime();
+@@ -65,7 +72,7 @@
+ int blackflag, demoflag;
+ int printpid;
+ char* display_name;
+- long clock;
++ time_t clock;
+ int pid, tty;
+ int size;
+ char* mooncopy;
+@@ -190,6 +197,7 @@
+ (void) fflush( stdout );
+
+ /* Go stealth (ditch our controlling tty). */
++#ifdef TIOCNOTTY
+ tty = open( "/dev/tty", 0 );
+ if ( tty < 0 )
+ {
+@@ -207,6 +215,9 @@
+ }
+ (void) close( tty );
+ }
++#else
++ setsid();
++#endif
+ }
+
+ size = BitmapSize( moon_w, moon_h );
diff --git a/x11/xphoon/pkg/DESCR b/x11/xphoon/pkg/DESCR
new file mode 100644
index 00000000000..9515dd0f77f
--- /dev/null
+++ b/x11/xphoon/pkg/DESCR
@@ -0,0 +1 @@
+Xphoon sets X the root window to a picture of the moon in its current phase.
diff --git a/x11/xphoon/pkg/PLIST b/x11/xphoon/pkg/PLIST
new file mode 100644
index 00000000000..0d28e7efa7d
--- /dev/null
+++ b/x11/xphoon/pkg/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2001/07/18 14:27:31 nra Exp $
+bin/xphoon
+lib/X11/doc/html/xphoon.1.html
+man/cat1/xphoon.0