Date: Fri, 30 Jul 1999 04:24:49 -0400 (EDT) From: Will Andrews <andrews@technologist.com> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/12883: new port: misc/wmstock Message-ID: <199907300824.EAA82453@shadow.blackdawn.com>
next in thread | raw e-mail | index | archive | help
>Number: 12883 >Category: ports >Synopsis: new port: misc/wmstock >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Jul 30 01:30:00 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Will Andrews >Release: FreeBSD 3.2-STABLE i386 >Organization: none >Environment: FreeBSD shadow.blackdawn.com 3.2-STABLE FreeBSD 3.2-STABLE #0: Sun Jul 25 01:17:53 EDT 1999 root@shadow.blackdawn.com:/usr/src/sys/compile/SHADOW i386 >Description: This is the port for wmstock 0.06. Thanks go to the author, Matt Fischer <mfischer@umr.edu> for working with me on getting this program to work on FreeBSD. We shared quite a bit of email, to say the least. If you're an avid investor and use Window Maker for your windowmanager, you may find this program very useful. >How-To-Repeat: Use the shar below to create the port. >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # wmstock # wmstock/pkg # wmstock/pkg/PLIST # wmstock/pkg/DESCR # wmstock/pkg/COMMENT # wmstock/files # wmstock/files/md5 # wmstock/patches # wmstock/patches/patch-aa # wmstock/patches/patch-ab # wmstock/Makefile # echo c - wmstock mkdir -p wmstock > /dev/null 2>&1 echo c - wmstock/pkg mkdir -p wmstock/pkg > /dev/null 2>&1 echo x - wmstock/pkg/PLIST sed 's/^X//' >wmstock/pkg/PLIST << 'END-of-wmstock/pkg/PLIST' Xbin/wmstock Xbin/testqt.pl END-of-wmstock/pkg/PLIST echo x - wmstock/pkg/DESCR sed 's/^X//' >wmstock/pkg/DESCR << 'END-of-wmstock/pkg/DESCR' Xwmstock is a cool WindowMaker dockapp that shows stock Xticker(s) that are retrieved from Yahoo through wget. X XHowever, since wget appears to be broken in this manner/form Xat this time, this port has a patch to use lynx instead, and Xrequires lynx to be installed. X XAuthor: Matt Fischer <mfischer@umr.edu> XWWW: http://mattfischer.com/wmstock X X- Will <andrews@technologist.com> END-of-wmstock/pkg/DESCR echo x - wmstock/pkg/COMMENT sed 's/^X//' >wmstock/pkg/COMMENT << 'END-of-wmstock/pkg/COMMENT' XCool WindowMaker Dockapp that shows stock ticker(s). END-of-wmstock/pkg/COMMENT echo c - wmstock/files mkdir -p wmstock/files > /dev/null 2>&1 echo x - wmstock/files/md5 sed 's/^X//' >wmstock/files/md5 << 'END-of-wmstock/files/md5' XMD5 (wmstock-0.06.tar.gz) = 56687a81ad7fe74b67856d0369bcea8b END-of-wmstock/files/md5 echo c - wmstock/patches mkdir -p wmstock/patches > /dev/null 2>&1 echo x - wmstock/patches/patch-aa sed 's/^X//' >wmstock/patches/patch-aa << 'END-of-wmstock/patches/patch-aa' X--- testqt.pl Tue Jul 6 16:16:09 1999 X+++ testqt.pl.new Fri Jul 30 03:56:46 1999 X@@ -1,11 +1,11 @@ X #!/usr/bin/perl X- X- $wget_loc = `which wget`; X+ X+ $wget_loc = `which lynx`; X chop $wget_loc; X X- if (!$wget_loc) X+ if (!$wget_loc) X { X- die "testqt.pl:: Could not find wget. If it is not in your path please add it to your path. If it is not installed please install it.\n"; X+ die "testqt.pl:: Could not find lynx. If it is not in your path please add it to your path. If it is not installed please install it.\n"; X } X X $home = (getpwuid($<))[7]; X@@ -76,9 +76,10 @@ X # for some people? Dont know why... (Perhaps they have a ~/.wgetrc file X # that overrides command line options?). X # X+ # lynx update, for FreeBSD. *This* works. X X $tempfile = "stock.tmp.$$"; X- $wget_args = " --cache=off --tries 0 -q -O $home/.wmstock/$tempfile \"$URL\""; X+ $wget_args = " -dump \"$URL\" > $home/.wmstock/$tempfile"; X $command = $wget_loc.$wget_args; X system "$wget_loc$wget_args"; X sleep(3); X@@ -115,7 +116,7 @@ X $version = $_[0]; X $vtempfile = ".newest"; X $vers_url="http://www.mattfischer.com/wmstock/src/$vtempfile"; X- $wget_args = " --cache=off --tries 0 -q -O $home/.wmstock/$vtempfile \"$vers_url\""; X+ $wget_args = " -dump \"$vers_url\" > $home/.wmstock/$vtempfile"; X $command = $wget_loc.$wget_args; X X print "Please wait while I check for a new version.\n"; END-of-wmstock/patches/patch-aa echo x - wmstock/patches/patch-ab sed 's/^X//' >wmstock/patches/patch-ab << 'END-of-wmstock/patches/patch-ab' X--- Makefile.orig Wed Jul 7 15:22:08 1999 X+++ Makefile Fri Jul 30 04:12:01 1999 X@@ -6,9 +6,9 @@ X CFLAGS = -O2 -g -Wall X DEBUG = -DMLF_DEBUG X GCOV = -fprofile-arcs -ftest-coverage X-INCDIR = -I/usr/X11R6/include/X11 -I/usr/X11R6/include X-DESTDIR= /usr/X11R6 X-LIBDIR = -L/usr/X11R6/lib X+INCDIR = -I${PREFIX}/include/X11 -I${PREFIX}/include X+DESTDIR= ${PREFIX} X+LIBDIR = -L${PREFIX}/lib X # for linux X LIBS = -lXpm -lX11 -lXext X # for Solaris X@@ -22,10 +22,6 @@ X .c.o: X $(CC) $(CFLAGS) -c $< -o $*.o $(INCDIR) X X-# $(CC) $(CFLAGS) -D$(shell echo `uname -s`) -c $< -o $*.o $(INCDIR) X-# no longer need the -D<uname>... X- X- X all: wmstock.o wmstock X X wmstock.o: wmstock_master.xpm wmstock_mask.xbm X@@ -43,8 +39,3 @@ X rm -f $$i; \ X done X rm -f wmstock X- X-install:: wmstock X- install -c -s -m 0755 wmstock $(DESTDIR)/bin X- install -c -m 0755 testqt.pl $(DESTDIR)/bin X- install -c -m 0644 wmstock.1x $(DESTDIR)/man/man1 END-of-wmstock/patches/patch-ab echo x - wmstock/Makefile sed 's/^X//' >wmstock/Makefile << 'END-of-wmstock/Makefile' X# New ports collection makefile for: wmstock X# Version required: 0.06 X# Date created: 19 Jun 1999 X# Whom: Will Andrews <andrews@technologist.com> X# X# $Id$ X# X XDISTNAME= wmstock-0.06 XCATEGORIES= misc XMASTER_SITES= http://mattfischer.com/wmstock/src/ \ X http://www.psn.net/~andrews/wmstock/ X XMAINTAINER= andrews@technologist.com X XLIB_DEPENDS= Xpm.4:${PORTSDIR}/graphics/xpm XBUILD_DEPENDS= ${LOCALBASE}/bin/lynx:${PORTSDIR}/www/lynx X XUSE_X_PREFIX= yes X XWRKSRC= ${WRKDIR}/wmstock/src XUSE_GMAKE= yes XMAN1= wmstock.1 X Xdo-install: X @${INSTALL_PROGRAM} ${WRKSRC}/wmstock ${PREFIX}/bin/wmstock X @${INSTALL_SCRIPT} ${WRKSRC}/testqt.pl ${PREFIX}/bin/testqt.pl X @${INSTALL_MAN} ${WRKSRC}/wmstock.1x ${PREFIX}/man/man1/wmstock.1 X X.include <bsd.port.mk> END-of-wmstock/Makefile exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199907300824.EAA82453>