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:
@@ -77,6 +77,7 @@
|
||||
SUBDIR += gotmail
|
||||
SUBDIR += grepmail
|
||||
SUBDIR += gtkgrepmail
|
||||
SUBDIR += gubby
|
||||
SUBDIR += hbiff
|
||||
SUBDIR += hotwayd
|
||||
SUBDIR += icqmail
|
||||
|
||||
@@ -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>
|
||||
@@ -0,0 +1 @@
|
||||
MD5 (gubby-0.3.2.tar.gz) = 14e5261531f8bb9142e037ce10cd2d0a
|
||||
@@ -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++ );
|
||||
@@ -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;
|
||||
@@ -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
|
||||
@@ -0,0 +1,3 @@
|
||||
bin/gubby
|
||||
%%PORTDOCS%%share/doc/gubby/README
|
||||
%%PORTDOCS%%@dirrm share/doc/gubby
|
||||
Reference in New Issue
Block a user