diff options
author | magick <magick@pkgsrc.org> | 2001-06-05 18:11:38 +0000 |
---|---|---|
committer | magick <magick@pkgsrc.org> | 2001-06-05 18:11:38 +0000 |
commit | 79ef7cca9e9996bccd26b4a0a8951294f220c299 (patch) | |
tree | bf803d6c6ed8807dc4af166710ccc000dc45d01f /time | |
parent | 7c781ca97094e3301587ae4a55baa795cbf9e99c (diff) | |
download | pkgsrc-79ef7cca9e9996bccd26b4a0a8951294f220c299.tar.gz |
Initial import of "xalarm" package.
X11 interactive alarm clock
This package was contributed by Stoned Elipot in PR pkg/13081.
Diffstat (limited to 'time')
-rw-r--r-- | time/xalarm/Makefile | 63 | ||||
-rw-r--r-- | time/xalarm/distinfo | 10 | ||||
-rw-r--r-- | time/xalarm/files/fns.h.in | 9 | ||||
-rw-r--r-- | time/xalarm/files/xprg | 2 | ||||
-rw-r--r-- | time/xalarm/patches/patch-aa | 50 | ||||
-rw-r--r-- | time/xalarm/patches/patch-ab | 13 | ||||
-rw-r--r-- | time/xalarm/pkg/DESCR | 6 | ||||
-rw-r--r-- | time/xalarm/pkg/PLIST | 11 |
8 files changed, 164 insertions, 0 deletions
diff --git a/time/xalarm/Makefile b/time/xalarm/Makefile new file mode 100644 index 00000000000..e14e0752c6d --- /dev/null +++ b/time/xalarm/Makefile @@ -0,0 +1,63 @@ +# $NetBSD: Makefile,v 1.1.1.1 2001/06/05 18:11:38 magick Exp $ + +DISTNAME= xalarm-3.03 +PKGNAME= xalarm-3.05 +CATEGORIES= time +MASTER_SITES= ${MASTER_SITE_XCONTRIB:=R5contrib-fixes/xalarm/} +EXTRACT_SUFX= .tar.Z + +PATCH_SITES= ${MASTER_SITE_XCONTRIB:=R5contrib-fixes/xalarm/} +PATCHFILES= xalarm-3.03-04.patch.Z xalarm-3.04-05.patch.Z +PATCH_DIST_STRIP=-p1 + +MAINTAINER= seb@pbox.org +COMMENT= X11 interactive alarm clock + +DEPENDS+= skill>=4.0:../../sysutils/skill + +WRKSRC= ${WRKDIR}/xalarm + +USE_IMAKE= yes + +FORTUNE= "Sorry, xfortune is unavailable - no fortune!" +YOW= "Sorry, xyow is unavailable - no yow!" +KILL= /bin/kill # should this be in bsd.pkg.mk ? + +.include "../../mk/bsd.prefs.mk" + +.if defined(XALARM_USE_YOW) +DEPENDS+= emacs>=20.7:../../editors/emacs +.endif + +.if ${OPSYS} == "NetBSD" +.if exists(/usr/games/fortune) +FORTUNE= `/usr/games/fortune` +.endif +MAKE_FLAGS+= EXTRA_DEFINES=-DFORKRETURNSPID_T +.endif + +DEPENDS+= skill>=4.0:../../sysutils/skill + +pre-configure: +.if defined(XALARM_USE_YOW) + # if multiple version emacs of emacs are there, take the higher one... + YOW=`${FIND} ${LOCALBASE}/libexec/emacs -name yow -print 2>/dev/null | sort -rn | ${HEAD} -1` ; \ + if ${TEST} x$${YOW} = x ; then \ + YOW=${YOW} ; \ + fi ; ${SETENV} YOW=$${YOW} \ + ${SED} -e "s|@PRG@|\`$${YOW}\`|" \ + -e 's|@XPRG@|xyow|' \ + ${FILESDIR}/xprg > ${WRKSRC}/xyow +.else + ${SED} -e 's|@PRG@|${YOW}|' \ + -e 's|@XPRG@|xyow|' \ + ${FILESDIR}/xprg > ${WRKSRC}/xyow +.endif + ${SED} -e 's|@PRG@|${FORTUNE}|' \ + -e 's|@XPRG@|xfortune|' \ + ${FILESDIR}/xprg > ${WRKSRC}/xfortune + ${SED} -e 's|@SKILL@|${LOCALBASE}/bin/skill|' \ + -e 's|@GREP@|${GREP}|' \ + -e 's|@KILL@|${KILL}|' ${FILESDIR}/fns.h.in > ${WRKSRC}/fns.h + +.include "../../mk/bsd.pkg.mk" diff --git a/time/xalarm/distinfo b/time/xalarm/distinfo new file mode 100644 index 00000000000..02c0fcecd2b --- /dev/null +++ b/time/xalarm/distinfo @@ -0,0 +1,10 @@ +$NetBSD: distinfo,v 1.1.1.1 2001/06/05 18:11:38 magick Exp $ + +SHA1 (xalarm-3.03.tar.Z) = 29e684cdfc05a09c9be313f29dc2482a13ef9f95 +Size (xalarm-3.03.tar.Z) = 77771 bytes +SHA1 (xalarm-3.03-04.patch.Z) = 78f2d3f6bab8bde2a7081c5d86ab4be0d56b2cc4 +Size (xalarm-3.03-04.patch.Z) = 22482 bytes +SHA1 (xalarm-3.04-05.patch.Z) = adff386bf34e46b1b757c1e0cc91e3589b63dbd8 +Size (xalarm-3.04-05.patch.Z) = 13014 bytes +SHA1 (patch-aa) = 7b73681e4f528541857ec2b4e08fc7be5396ea40 +SHA1 (patch-ab) = 750b887285c62124d792973696a459e3ac9dd007 diff --git a/time/xalarm/files/fns.h.in b/time/xalarm/files/fns.h.in new file mode 100644 index 00000000000..ee7ec4dfe22 --- /dev/null +++ b/time/xalarm/files/fns.h.in @@ -0,0 +1,9 @@ +#define GETXALARMPIDS \ + "@SKILL@ -n xalarm | @GREP@ -w -v %d" + +/* + * Full path of kill(1), typically "/bin/kill". + */ + +#define KILLPATH "@KILL@" + diff --git a/time/xalarm/files/xprg b/time/xalarm/files/xprg new file mode 100644 index 00000000000..94f24cbc9cf --- /dev/null +++ b/time/xalarm/files/xprg @@ -0,0 +1,2 @@ +#!/bin/sh +exec xmemo -name @XPRG@ ${1+"$@"} "@PRG@" diff --git a/time/xalarm/patches/patch-aa b/time/xalarm/patches/patch-aa new file mode 100644 index 00000000000..1b54eb00d77 --- /dev/null +++ b/time/xalarm/patches/patch-aa @@ -0,0 +1,50 @@ +$NetBSD: patch-aa,v 1.1.1.1 2001/06/05 18:11:38 magick Exp $ + +--- Imakefile.orig Fri Jun 1 16:44:51 2001 ++++ Imakefile +@@ -29,29 +29,14 @@ + OBJS = alarm.o when.o warnings.o times.o dates.o file.o fns.o xalarm.o + SRCS = alarm.c when.c warnings.c times.c dates.c file.c fns.c xalarm.c + +-# How we find commands. Use WHICH, LOCATE or FIND. +-WHICH= WHICH +-MADE = test -f +- + LOCAL_LIBRARIES = XawClientLibs + +-AllTarget (.config) + ComplexProgramTarget (xalarm) + + InstallAppDefaults (XAlarm) + InstallAppDefaults (XAlarm-color) + InstallMultipleFlags (xmemo xfortune xyow,$(BINDIR),$(INSTBINFLAGS)) +-InstallManPage (xmemo,$(MANDIR)) +-InstallManPage (xfortune,$(MANDIR)) +-InstallManPage (xyow,$(MANDIR)) +- +-includes:: fns.h +- +-fns.h: +- @./config.1st -quick $(WHICH) fortune yow +- +-xmemo.man xyow.man xfortune.man: +- echo ".so man"`echo ManSuffix`"/xalarm."`echo ManSuffix` > $@ ++InstallManPageAliases(xalarm,$(MANDIR),xmemo xfortune xyow) + + xfortune:: + +@@ -59,14 +44,6 @@ + + clean:: + $(RM) xfortune xyow xmemo.man xyow.man xfortune.man fns.h .config +- +-config:: +- @./config.1st -quick $(WHICH) fortune yow +- @xrdb -merge XAlarm.ad +- @xrdb -merge XAlarm.ad+ +- +-.config:: +- @-$(MADE) .config || make config + + alarm.o: xalarm.h patchlevel.h + when.o: xalarm.h patchlevel.h dates.h diff --git a/time/xalarm/patches/patch-ab b/time/xalarm/patches/patch-ab new file mode 100644 index 00000000000..15417be2ded --- /dev/null +++ b/time/xalarm/patches/patch-ab @@ -0,0 +1,13 @@ +$NetBSD: patch-ab,v 1.1.1.1 2001/06/05 18:11:38 magick Exp $ + +--- when.c.orig Fri Jun 1 14:01:32 2001 ++++ when.c +@@ -306,7 +306,7 @@ + { + static Boolean edited = True; + +- if (not (Boolean) clientdata) ++ if (clientdata == NULL) + XtSetSensitive (xalarm.savebutton, edited = False); + else if (not edited) + XtSetSensitive (xalarm.savebutton, edited = True); diff --git a/time/xalarm/pkg/DESCR b/time/xalarm/pkg/DESCR new file mode 100644 index 00000000000..d85be911ff8 --- /dev/null +++ b/time/xalarm/pkg/DESCR @@ -0,0 +1,6 @@ +xalarm is an interactive alarm clock analogous to a combination of leave(1) +and calendar(1), only much more powerful. + +Also supplied is xmemo, a front end to xalarm. Two front end to xmemo, +xfortune and xyow, are also provided if respectively fortune and yow are +available. diff --git a/time/xalarm/pkg/PLIST b/time/xalarm/pkg/PLIST new file mode 100644 index 00000000000..74bf8e93916 --- /dev/null +++ b/time/xalarm/pkg/PLIST @@ -0,0 +1,11 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2001/06/05 18:11:38 magick Exp $ +bin/xalarm +bin/xfortune +bin/xmemo +bin/xyow +lib/X11/app-defaults/XAlarm +lib/X11/app-defaults/XAlarm-color +man/cat1/xalarm.0 +man/cat1/xfortune.0 +man/cat1/xmemo.0 +man/cat1/xyow.0 |