Bug 48601 - [new port] mail/mailsync: Mailsync is a way of keeping a collection of mailboxes synchronized
Summary: [new port] mail/mailsync: Mailsync is a way of keeping a collection of mailbo...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-23 19:50 UTC by Maxim Tulyuk
Modified: 2003-02-27 20:23 UTC (History)
0 users

See Also:


Attachments
file.shar (5.11 KB, text/plain)
2003-02-23 19:50 UTC, Maxim Tulyuk
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maxim Tulyuk 2003-02-23 19:50:14 UTC
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/
Comment 1 Oliver Braun freebsd_committer freebsd_triage 2003-02-26 22:07:34 UTC
Hi,

I am willing to commit your port with the following changes. The new
shar is available at
http://people.freebsd.org/~obraun/pending_ports/mailsync.shar

Approved?

Regards,
         Olli

--- gg	Wed Feb 26 22:09:35 2003
+++ mailsync.shar	Wed Feb 26 23:00:21 2003
@@ -5,16 +5,17 @@
 #
 # This archive contains:
 #
+#	mailsync
 #	mailsync/files
 #	mailsync/files/patch-Makefile
 #	mailsync/files/patch-mailsync.c
-#	mailsync/files/patch-examples::mailsync
-#	mailsync/files/patch-mailsync.1
 #	mailsync/Makefile
 #	mailsync/distinfo
 #	mailsync/pkg-descr
 #	mailsync/pkg-plist
 #
+echo c - mailsync
+mkdir -p mailsync > /dev/null 2>&1
 echo c - mailsync/files
 mkdir -p mailsync/files > /dev/null 2>&1
 echo x - mailsync/files/patch-Makefile
@@ -26,14 +27,14 @@
 X 
 X # path to c-client headers
 X-C = /usr/include/c-client
-X+C = /usr/local/include/c-client
+X+C = ${PREFIX}/include/c-client
 X #C = ../../libs/imap-2002.RC5/c-client/
 X ##C = /usr/include/c-client -I/usr/include/g++-v3/
 X 
 X # path to c-client library
 X # linking dynamically
 X-CCLIENTLIB = /usr/lib/libc-client.so
-X+CCLIENTLIB = /usr/local/lib/libc-client4.so
+X+CCLIENTLIB = ${PREFIX}/lib/libc-client4.so
 X # linkging statically
 X #CCLIENTLIB = ../imap-2001a/c-client/c-client.a
 X 
@@ -63,39 +64,6 @@
 X 
 X //------------------------------- Defines  -------------------------------
 END-of-mailsync/files/patch-mailsync.c
-echo x - mailsync/files/patch-examples::mailsync
-sed 's/^X//' >mailsync/files/patch-examples::mailsync << 'END-of-mailsync/files/patch-examples::mailsync'
-X--- examples/mailsync.orig	Tue Jan 29 16:28:12 2002
-X+++ examples/mailsync	Mon Feb  3 22:53:30 2003
-X@@ -9,8 +9,8 @@
-X # Tomas Pospisek <tpo_deb@sourecpole.ch>
-X #
-X # see also:
-X-# [1] /usr/share/doc/mailsync/README
-X-# [2] /usr/share/doc/libc-client-ssl2001/naming.txt.gz
-X+# [1] /usr/local/share/doc/mailsync/README
-X+# [2] /usr/local/share/doc/libc-client-ssl2001/naming.txt.gz
-X # [3] rfc2060
-X #
-X 
-END-of-mailsync/files/patch-examples::mailsync
-echo x - mailsync/files/patch-mailsync.1
-sed 's/^X//' >mailsync/files/patch-mailsync.1 << 'END-of-mailsync/files/patch-mailsync.1'
-X--- mailsync.1.orig	Wed Nov  6 13:06:52 2002
-X+++ mailsync.1	Mon Feb  3 22:55:42 2003
-X@@ -76,9 +76,9 @@
-X Show debug info.
-X .SH SEE ALSO
-X There is more documentation in
-X-.IR /usr/share/doc/mailsync
-X+.IR /usr/local/share/doc/mailsync
-X , and in
-X-.IR /usr/share/doc/libc-clientxxxxxx/internal.txt
-X+.IR /usr/local/share/doc/libc-clientxxxxxx/internal.txt
-X .SH AUTHOR
-X Originally written by Jaldhar H. Vyas <jaldhar@debian.org> for the Debian
-X GNU/Linux system. Updates by T. Pospisek <tpo_deb@sourcepole.ch>.
-END-of-mailsync/files/patch-mailsync.1
 echo x - mailsync/Makefile
 sed 's/^X//' >mailsync/Makefile << 'END-of-mailsync/Makefile'
 X# New ports collection makefile for:	mailsync
@@ -106,35 +74,40 @@
 X#
 X
 XPORTNAME=	mailsync
-XPORTVERSION=	4.4.4-1
+XPORTVERSION=	4.4.4
 XCATEGORIES=	mail
 XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 XMASTER_SITE_SUBDIR=	${PORTNAME}
-XDISTNAME=	${PORTNAME}_${PORTVERSION}
-X
-XWRKSRC=		${WRKDIR}/${PORTNAME}
+XDISTNAME=	${PORTNAME}_${PORTVERSION}-1
 X
 XMAINTAINER=	mt@primats.org.ua
 XCOMMENT=	Mailsync is a way of keeping a collection of mailboxes synchronized
 X
 XLIB_DEPENDS=	c-client4.8:${PORTSDIR}/mail/cclient
 X
+XWRKSRC=		${WRKDIR}/${PORTNAME}
+X
 XUSE_GMAKE=	yes
+XUSE_REINPLACE=	yes
 X
 XALL_TARGET=	default
 X
 XMAN1=		mailsync.1
 X
+Xpost-patch:
+X	@${REINPLACE_CMD} -e 's|/usr|${PREFIX}|g' \
+X		${WRKSRC}/examples/mailsync \
+X		${WRKSRC}/mailsync.1
+X
 Xdo-install:
 X	${INSTALL_SCRIPT} ${WRKSRC}/mailsync ${PREFIX}/bin
 X	${INSTALL_MAN} ${WRKSRC}/mailsync.1  ${PREFIX}/man/man1
 X.if !defined(NOPORTDOCS)
-X	${MKDIR} ${PREFIX}/share/doc/${PORTNAME}
-X	${INSTALL_DATA} ${WRKSRC}/README   ${PREFIX}/share/doc/${PORTNAME}
+X	${MKDIR} ${DOCSDIR}
+X	${INSTALL_DATA} ${WRKSRC}/README   ${DOCSDIR}
 X.endif
-X	${MKDIR} ${PREFIX}/share/examples/${PORTNAME}
-X	${INSTALL_DATA} ${WRKSRC}/examples/mailsync \
-X		${PREFIX}/share/examples/${PORTNAME}
+X	${MKDIR} ${EXAMPLESDIR}
+X	${INSTALL_DATA} ${WRKSRC}/examples/mailsync ${EXAMPLESDIR}
 X
 X.include <bsd.port.mk>
 END-of-mailsync/Makefile
@@ -152,9 +125,10 @@
 echo x - mailsync/pkg-plist
 sed 's/^X//' >mailsync/pkg-plist << 'END-of-mailsync/pkg-plist'
 Xbin/mailsync
-Xshare/doc/mailsync/README
+X%%PORTDOCS%%share/doc/mailsync/README
 Xshare/examples/mailsync/mailsync
 X@dirrm share/examples/mailsync
-X@dirrm share/doc/mailsync
+X%%PORTDOCS%%@dirrm share/doc/mailsync
 END-of-mailsync/pkg-plist
 exit
+
Comment 2 Maxim Tulyuk 2003-02-27 09:24:29 UTC
On Wed, Feb 26, 2003 at 11:07:34PM +0100, Oliver Braun wrote:
> Hi,
> 
> I am willing to commit your port with the following changes. The new
> shar is available at
> http://people.freebsd.org/~obraun/pending_ports/mailsync.shar
> 
> Approved?

Approved; thanks for your changing!
-- 
Maxim Tulyuk
WWW: http://www.primats.org.ua/~mt/
ICQ: 21134222

The bike is absolute freedom of moving
Comment 3 Oliver Braun freebsd_committer freebsd_triage 2003-02-27 20:23:38 UTC
State Changed
From-To: open->closed

New port added, thanks!