1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

- Update to 5.2.1

PR:		ports/78241
Submitted by:	maintainer
This commit is contained in:
Sergey Matveychuk 2005-04-16 22:31:18 +00:00
parent 2303a5899f
commit e524283768
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=133493
5 changed files with 45 additions and 81 deletions

View File

@ -6,40 +6,56 @@
#
PORTNAME= mailsync
PORTVERSION= 4.4.4
PORTREVISION= 1
PORTVERSION= 5.2.1
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= ${PORTNAME}_${PORTVERSION}-1
DISTNAME= ${PORTNAME}_${PORTVERSION}.orig
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}
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
USE_GMAKE= yes
USE_OPENSSL= yes
USE_GCC= 2.95+
#CONFIGURE_ARGS= CC=gcc --exec-prefix=${PREFIX}
#CONFIGURE_ARGS+= --exec-prefix=${PREFIX} \
# --includedir="${PREFIX}/include ${PREFIX}/include/c-client"
#CONFIGURE_ENV+= CPPFLAGS="-I${PREFIX}/include/c-client"
USE_AUTOMAKE_VER= 19
USE_AUTOCONF_VER= 259
USE_AUTOHEADER_VER= 259
USE_REINPLACE= yes
ALL_TARGET= default
pre-patch:
@${REINPLACE_CMD} -e 's|^aclocal|${ACLOCAL}|; \
s|^autoconf|${AUTOCONF}|; s|automake|${AUTOMAKE}|; \
s|^autoheader|${AUTOHEADER}|; s|678|9|' ${WRKSRC}/autogen.sh
run-autotools:
do-configure:
cd ${WRKSRC} && ${SH} autogen.sh --exec-prefix=${PREFIX}
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
${INSTALL_SCRIPT} ${WRKSRC}/src/mailsync ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/doc/mailsync.1 ${PREFIX}/man/man1
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} AUTHORS COPYING NEWS README \
THANKS TODO ${DOCSDIR}
cd ${WRKSRC}/doc && ${INSTALL_DATA} ABSTRACT HACKING \
mail_open_close_flowchart.dia \
mail_open_close_flowchart.svg \
mail_open_close_flowchart2.svg ${DOCSDIR}
.endif
${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/mailsync ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/doc/examples/mailsync ${EXAMPLESDIR}
.include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
MD5 (mailsync_4.4.4-1.tar.gz) = d1a947725d03a002ee5c01185189e230
SIZE (mailsync_4.4.4-1.tar.gz) = 27408
MD5 (mailsync_5.2.1.orig.tar.gz) = 67c9f68575756b76581cf9be74608aa5
SIZE (mailsync_5.2.1.orig.tar.gz) = 139967

View File

@ -1,41 +0,0 @@
--- Makefile.orig Thu Oct 24 17:03:07 2002
+++ Makefile Wed Jul 14 04:02:48 2004
@@ -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)
+CFLAGS += -Wall -fno-operator-names -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

View File

@ -1,21 +0,0 @@
--- mailsync.c.orig Thu Nov 7 12:05:46 2002
+++ mailsync.c Wed Jul 14 03:52:22 2004
@@ -20,6 +20,7 @@
extern int errno; // Just in case
#include <sys/stat.h> // Stat()
+#include <cassert>
#include <string>
#include <set>
#include <map>
@@ -30,8 +31,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 -------------------------------

View File

@ -1,5 +1,15 @@
bin/mailsync
%%PORTDOCS%%%%DOCSDIR%%/ABSTRACT
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
%%PORTDOCS%%%%DOCSDIR%%/COPYING
%%PORTDOCS%%%%DOCSDIR%%/HACKING
%%PORTDOCS%%%%DOCSDIR%%/NEWS
%%PORTDOCS%%%%DOCSDIR%%/README
%%EXAMPLESDIR%%/mailsync
@dirrm %%EXAMPLESDIR%%
%%PORTDOCS%%%%DOCSDIR%%/THANKS
%%PORTDOCS%%%%DOCSDIR%%/TODO
%%PORTDOCS%%%%DOCSDIR%%/mail_open_close_flowchart.dia
%%PORTDOCS%%%%DOCSDIR%%/mail_open_close_flowchart.svg
%%PORTDOCS%%%%DOCSDIR%%/mail_open_close_flowchart2.svg
%%PORTDOCS%%%%EXAMPLESDIR%%/mailsync
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
%%PORTDOCS%%@dirrm %%DOCSDIR%%