aboutsummaryrefslogtreecommitdiff
path: root/mail/mailsync
diff options
context:
space:
mode:
authorOliver Braun <obraun@FreeBSD.org>2003-02-27 19:54:58 +0000
committerOliver Braun <obraun@FreeBSD.org>2003-02-27 19:54:58 +0000
commitc19d348710a5e393f809e62da1b0bad862c1c257 (patch)
tree35506338ae35f25e801ff6e05db0d717c5df79fd /mail/mailsync
parent5a8c153c7edc3e5cba10f746e09242b32e5459a1 (diff)
downloadports-c19d348710a5e393f809e62da1b0bad862c1c257.tar.gz
ports-c19d348710a5e393f809e62da1b0bad862c1c257.zip
Notes
Diffstat (limited to 'mail/mailsync')
-rw-r--r--mail/mailsync/Makefile45
-rw-r--r--mail/mailsync/distinfo1
-rw-r--r--mail/mailsync/files/patch-Makefile40
-rw-r--r--mail/mailsync/files/patch-mailsync.c13
-rw-r--r--mail/mailsync/pkg-descr4
-rw-r--r--mail/mailsync/pkg-plist5
6 files changed, 108 insertions, 0 deletions
diff --git a/mail/mailsync/Makefile b/mail/mailsync/Makefile
new file mode 100644
index 000000000000..f3d94e7d2056
--- /dev/null
+++ b/mail/mailsync/Makefile
@@ -0,0 +1,45 @@
+# New ports collection makefile for: mailsync
+# Date created: 03 Feb 2003
+# Whom: Maxim Tulyuk <mt@primats.org.ua>
+#
+# $FreeBSD$
+#
+
+PORTNAME= mailsync
+PORTVERSION= 4.4.4
+CATEGORIES= mail
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+DISTNAME= ${PORTNAME}_${PORTVERSION}-1
+
+MAINTAINER= mt@primats.org.ua
+COMMENT= Mailsync is a way of keeping a collection of mailboxes synchronized
+
+LIB_DEPENDS= c-client4.8:${PORTSDIR}/mail/cclient
+
+WRKSRC= ${WRKDIR}/${PORTNAME}
+
+USE_GMAKE= yes
+USE_REINPLACE= yes
+USE_GCC= 2.95
+
+ALL_TARGET= default
+
+MAN1= mailsync.1
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|/usr|${PREFIX}|g' \
+ ${WRKSRC}/examples/mailsync \
+ ${WRKSRC}/mailsync.1
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/mailsync ${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/mailsync.1 ${PREFIX}/man/man1
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
+.endif
+ ${MKDIR} ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/examples/mailsync ${EXAMPLESDIR}
+
+.include <bsd.port.mk>
diff --git a/mail/mailsync/distinfo b/mail/mailsync/distinfo
new file mode 100644
index 000000000000..d9095273040d
--- /dev/null
+++ b/mail/mailsync/distinfo
@@ -0,0 +1 @@
+MD5 (mailsync_4.4.4-1.tar.gz) = d1a947725d03a002ee5c01185189e230
diff --git a/mail/mailsync/files/patch-Makefile b/mail/mailsync/files/patch-Makefile
new file mode 100644
index 000000000000..1a463d11bb57
--- /dev/null
+++ b/mail/mailsync/files/patch-Makefile
@@ -0,0 +1,40 @@
+--- Makefile.orig Thu Oct 24 16:03:07 2002
++++ Makefile Wed Feb 26 23:39:48 2003
+@@ -1,32 +1,32 @@
+ # compiling with g++-3 worked for me with the commented ## lines - tpo
+
+ # path to c-client headers
+-C = /usr/include/c-client
++C = ${PREFIX}/include/c-client
+ #C = ../../libs/imap-2002.RC5/c-client/
+ ##C = /usr/include/c-client -I/usr/include/g++-v3/
+
+ # path to c-client library
+ # linking dynamically
+-CCLIENTLIB = /usr/lib/libc-client.so
++CCLIENTLIB = ${PREFIX}/lib/libc-client4.so
+ # linkging statically
+ #CCLIENTLIB = ../imap-2001a/c-client/c-client.a
+
+ # compiler
+-CC = g++
++CC = ${CXX}
+ ##CC = g++-3.0
+
+ # flags for your compiler
+ CFLAGS = -g -O2 -Wall -I$(C)
+
+ # required libraries
+-LDFLAGS = -lm -lssl -lgssapi_krb5
++LDFLAGS = -lm -lssl
+ # if your system requires pam to access crypt() you have to link pam in
+ #LDFLAGS = -lm -lssl -lpam
+
+ default: mailsync
+
+ mailsync: mailsync.o $(CCLIENTLIB)
+- $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
++ ${CC} $(CFLAGS) -o $@ $^ $(LDFLAGS)
+
+ clean:
+ rm -f mailsync mailsync.o core
diff --git a/mail/mailsync/files/patch-mailsync.c b/mail/mailsync/files/patch-mailsync.c
new file mode 100644
index 000000000000..125e236ccef4
--- /dev/null
+++ b/mail/mailsync/files/patch-mailsync.c
@@ -0,0 +1,13 @@
+--- mailsync.c.orig Thu Nov 7 12:05:46 2002
++++ mailsync.c Mon Feb 3 22:59:09 2003
+@@ -30,8 +30,8 @@
+ using std::vector;
+ using std::make_pair;
+
+-#include "c-client.h"
+-#include "flstring.h"
++#include <c-client.h>
++#include <flstring.h>
+ #include "msgstring.c"
+
+ //------------------------------- Defines -------------------------------
diff --git a/mail/mailsync/pkg-descr b/mail/mailsync/pkg-descr
new file mode 100644
index 000000000000..79b274cfd3f6
--- /dev/null
+++ b/mail/mailsync/pkg-descr
@@ -0,0 +1,4 @@
+Mailsync is a way of keeping a collection of mailboxes synchronized. The
+mailboxes may be on the local filesystem or on an IMAP server.
+
+WWW: http://mailsync.sourceforge.net/
diff --git a/mail/mailsync/pkg-plist b/mail/mailsync/pkg-plist
new file mode 100644
index 000000000000..bd0a041c1690
--- /dev/null
+++ b/mail/mailsync/pkg-plist
@@ -0,0 +1,5 @@
+bin/mailsync
+%%PORTDOCS%%share/doc/mailsync/README
+share/examples/mailsync/mailsync
+@dirrm share/examples/mailsync
+%%PORTDOCS%%@dirrm share/doc/mailsync