add gubby-0.3.2

Gubby is a small program that continually shows where Procmail has
placed new email. It runs both in commandline and in an ncurses
environment with colors, and will update the overview in real time,
while using very low  resources. Users can launch a specified
mailreader by selecting a folder and pressing enter.

PR:		47907
Submitted by:	Michael L. Hostbaek <mich@freebsdcluster.org>
This commit is contained in:
Yen-Ming Lee
2003-02-25 18:53:40 +00:00
parent e50ee1f256
commit 6d4e2df345
7 changed files with 78 additions and 0 deletions
+1
View File
@@ -77,6 +77,7 @@
SUBDIR += gotmail
SUBDIR += grepmail
SUBDIR += gtkgrepmail
SUBDIR += gubby
SUBDIR += hbiff
SUBDIR += hotwayd
SUBDIR += icqmail
+31
View File
@@ -0,0 +1,31 @@
# ex:ts=8
# New ports collection makefile for: gubby
# Date created: Feb 4, 2003
# Whom: mich@freebsdcluster.org
#
# $FreeBSD$
#
PORTNAME= gubby
PORTVERSION= 0.3.2
CATEGORIES= mail
MASTER_SITES= http://sublevel3.org/~csl/gubby/dist/
MAINTAINER= mich@freebsdcluster.org
COMMENT= A program showing where new mail has been placed
LDFLAGS+= -lncurses -ltermcap
CFLAGS+= -felide-constructors -fno-default-inline
do-build:
cd ${WRKSRC} && \
${CXX} ${CFLAGS} -o ${PORTNAME} -Iinclude/ ${LDFLAGS} src/gubby.cpp
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/gubby ${PREFIX}/bin
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.TXT ${DOCSDIR}/README
.endif
.include <bsd.port.mk>
+1
View File
@@ -0,0 +1 @@
MD5 (gubby-0.3.2.tar.gz) = 14e5261531f8bb9142e037ce10cd2d0a
+18
View File
@@ -0,0 +1,18 @@
--- src/gubby.cpp.orig Tue Feb 4 16:16:09 2003
+++ src/gubby.cpp Tue Feb 4 16:15:32 2003
@@ -49,13 +49,13 @@
char buf[1024];
if ( f != 0 )
- while ( !feof(f) ) {
+ while ( !feof(f.fptr()) ) {
buf[0] = 0;
char* s = &buf[0];
const char* p = find;
- fgets(s, sizeof buf / sizeof(char), f);
+ fgets(s, sizeof buf / sizeof(char), f.fptr());
// search for matched string
while ( *p++ == *s++ );
+13
View File
@@ -0,0 +1,13 @@
--- include/file_ptr.h.orig Mon Feb 3 09:38:16 2003
+++ include/file_ptr.h Tue Feb 4 16:15:37 2003
@@ -61,6 +61,10 @@
return ptr;
}
+ FILE* fptr() const {
+ return ptr;
+ }
+
void operator=(FILE* f) {
close();
ptr = f;
+11
View File
@@ -0,0 +1,11 @@
Gubby is a small program that continually shows where Procmail has placed
new email. It runs both in commandline and in an ncurses environment with
colors, and will update the overview in real time, while using very low
resources. Users can launch a specified mailreader by selecting a folder
and pressing enter.
AUTHOR: C.S. Larsen <csl@sublevel3.org>
WWW: http://sublevel3.org/~csl/gubby/
- Michael L. Hostbaek
mich@freebsdcluster.org
+3
View File
@@ -0,0 +1,3 @@
bin/gubby
%%PORTDOCS%%share/doc/gubby/README
%%PORTDOCS%%@dirrm share/doc/gubby