From danfe@regency.nsu.ru  Wed May 15 21:14:51 2002
Return-Path: <danfe@regency.nsu.ru>
Received: from mail.nsu.ru (mx.nsu.ru [193.124.215.71])
	by hub.freebsd.org (Postfix) with ESMTP id CC8E237B405
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 15 May 2002 21:14:48 -0700 (PDT)
Received: from drweb by mail.nsu.ru with drweb-scanned (Exim 3.20 #1)
	id 178Cf6-0007id-00
	for FreeBSD-gnats-submit@freebsd.org; Thu, 16 May 2002 11:14:44 +0700
Received: from regency.nsu.ru ([193.124.210.26])
	by mail.nsu.ru with esmtp (Exim 3.20 #1)
	id 178Cf6-0007iN-00
	for FreeBSD-gnats-submit@freebsd.org; Thu, 16 May 2002 11:14:44 +0700
Received: (from danfe@localhost)
	by regency.nsu.ru (8.11.6/8.11.6) id g4G4ErN01656;
	Thu, 16 May 2002 11:14:53 +0700 (NOVST)
	(envelope-from danfe)
Message-Id: <200205160414.g4G4ErN01656@regency.nsu.ru>
Date: Thu, 16 May 2002 11:14:53 +0700 (NOVST)
From: Alexey Dokuchaev <danfe@regency.nsu.ru>
Reply-To: Alexey Dokuchaev <danfe@regency.nsu.ru>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: NEW PORT: sysutils/wmfortune for WMaker/AStep
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         38134
>Category:       ports
>Synopsis:       NEW PORT: sysutils/wmfortune for WMaker/AStep
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 15 21:20:03 PDT 2002
>Closed-Date:    Thu May 30 15:56:55 PDT 2002
>Last-Modified:  Thu May 30 15:56:55 PDT 2002
>Originator:     Alexey Dokuchaev
>Release:        FreeBSD 4.5-STABLE i386
>Organization:
CNIT NSU
>Environment:
System: FreeBSD regency.nsu.ru 4.5-STABLE FreeBSD 4.5-STABLE #1: Fri Mar 29 20:20:23 NOVT 2002 root@regency.nsu.ru:/usr/src/sys/compile/REGENCY i386
>Description:
This is another cool WMaker/AStep dockable app that displays fortunes in
a run-line.  Looks pretty nice, and still not in ports, so I've ported it.

I've altered the default speed, since it was WAY out of resonable value.
It's changable with `-s' option anyway...
>How-To-Repeat:
N/A
>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:
#
#	.
#	./pkg-descr
#	./Makefile
#	./distinfo
#	./files
#	./files/patch-aa
#	./files/patch-ab
#	./pkg-comment
#	./pkg-plist
#
echo c - .
mkdir -p . > /dev/null 2>&1
echo x - ./pkg-descr
sed 's/^X//' >./pkg-descr << 'END-of-./pkg-descr'
XWMFortune outputs the fortune messages, just as its name says.
X
XWWW: http://www.01.246.ne.jp/~m-sugano/apps.html
END-of-./pkg-descr
echo x - ./Makefile
sed 's/^X//' >./Makefile << 'END-of-./Makefile'
X# New ports collection makefile for:	wmfortune
X# Date created:			16 May 2002
X# Whom:				Alexey Dokuchaev <danfe@regency.nsu.ru>
X#
X# $FreeBSD: ports/sysutils/wmfortune/Makefile,v 1.9 2000/08/03 09:23:58 asami Exp $
X#
X
XPORTNAME=	wmfortune
XPORTVERSION=	0.241
XCATEGORIES=	games windowmaker afterstep
XMASTER_SITES=	http://www.01.246.ne.jp/~m-sugano/
X
XMAINTAINER=	ports@FreeBSD.org
X
XUSE_GMAKE=	yes
XUSE_X_PREFIX=	yes
XUSE_XPM=	yes
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/wmfortune ${PREFIX}/bin
X
X.include <bsd.port.mk>
END-of-./Makefile
echo x - ./distinfo
sed 's/^X//' >./distinfo << 'END-of-./distinfo'
XMD5 (wmfortune-0.241.tar.gz) = fa8db5d9a46d9afe7757f498c781e8c9
END-of-./distinfo
echo c - ./files
mkdir -p ./files > /dev/null 2>&1
echo x - ./files/patch-aa
sed 's/^X//' >./files/patch-aa << 'END-of-./files/patch-aa'
X--- Makefile.orig	Thu May 16 10:51:45 2002
X+++ Makefile	Thu May 16 10:53:56 2002
X@@ -1,35 +1,18 @@
X-### Edit here as you like :)
X-BINDIR = /usr/local/bin
X-############################
X+CC ?= gcc
X+CFLAGS += -c -Wall
X+INCDIR = -I${X11BASE}/include -I/usr/local/include
X+LIBDIR = -L${X11BASE}/lib
X+LIBS   = -lXpm -lXext -lX11
X+OBJS =  wmfortune.o dockapp.o
X 
X-DEST = wmfortune
X+.c.o:
X+	${CC} ${CFLAGS} ${INCDIR} $< -o $*.o
X 
X-# Programs used to move the binary to the proper place.
X-INSTALL = /usr/bin/install
X-INSTALL_PROGRAM = ${INSTALL} -m 755
X-UNINSTALL_PROGRAM = rm -f
X+wmfortune: $(OBJS)
X+	${CC} -o wmfortune $^ ${LIBDIR} ${LIBS}
X 
X-CC = gcc
X-OPTIMIZE = -O2
X-XLIBDIR = /usr/X11R6/lib
X-#XLIB = -ldockapp -lXpm -lXext -lX11
X-XLIB = -lXpm -lXext -lX11
X-OBJ = wmfortune.o dockapp.o
X-
X-$(DEST) : $(OBJ)
X-	$(CC) $(OBJ) -L$(XLIBDIR) $(XLIB) -o $(DEST)
X-
X-dockapp.o: dockapp.c
X-	$(CC) $(OPTIMIZE) $< -c
X-
X-wmfortune.o: wmfortune.c
X-	$(CC) $(OPTIMIZE) $< -c
X-
X-install:
X-	$(INSTALL_PROGRAM) ./$(DEST) $(BINDIR)/$(DEST)
X-
X-uninstall:
X-	$(UNINSTALL_PROGRAM) $(BINDIR)/$(DEST)
X+all: wmfortune
X 
X clean:
X-	rm -rf $(DEST) $(OBJ) *~
X+	rm -f *.o
X+	rm -f wmfortune core
END-of-./files/patch-aa
echo x - ./files/patch-ab
sed 's/^X//' >./files/patch-ab << 'END-of-./files/patch-ab'
X--- wmfortune.c.orig	Thu May 16 11:01:43 2002
X+++ wmfortune.c	Thu May 16 11:02:18 2002
X@@ -21,7 +21,7 @@
X  *
X  */
X #define BUFF_SIZE 1024
X-#define SCROLL_DEFAULT_SPEED 1000
X+#define SCROLL_DEFAULT_SPEED 10000
X 
X #include <unistd.h>
X #include <stdio.h>
X@@ -110,7 +110,7 @@
X 
X static DAProgramOption options[] = {
X   {"-d", "--displayname", "display to use.", DOString, False, {&displayName}},
X-  {"-s", "--speed", "scrolling speed. (default 1000 dot/ms)", DOInteger, False, {&speed}},
X+  {"-s", "--speed", "scrolling speed. (default 10000 dot/ms)", DOInteger, False, {&speed}},
X };
X 
X static void
END-of-./files/patch-ab
echo x - ./pkg-comment
sed 's/^X//' >./pkg-comment << 'END-of-./pkg-comment'
XWindowMaker dockapp that outputs the fortune messages
END-of-./pkg-comment
echo x - ./pkg-plist
sed 's/^X//' >./pkg-plist << 'END-of-./pkg-plist'
Xbin/wmfortune
END-of-./pkg-plist
exit


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: petef 
State-Changed-When: Thu May 30 15:56:40 PDT 2002 
State-Changed-Why:  
New port added, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=38134 
>Unformatted:
