ports/76304: new port: mail/imapsync: IMAP synchronization, copy or migration tool
Ion-Mihai Tetcu
itetcu at people.tecnik93.com
Sun Jan 16 13:48:44 UTC 2005
On Sun, 16 Jan 2005 13:36:26 GMT
Sergey Matveychuk <sem at FreeBSD.org> wrote:
> Synopsis: new port: mail/imapsync: IMAP synchronization, copy or migration tool
>
> State-Changed-From-To: open->closed
> State-Changed-By: sem
> State-Changed-When: Sun Jan 16 13:33:54 GMT 2005
> State-Changed-Why:
> Committed with modifications, thanks!
> 1) Change spaces with tabs
> 2) Add $FreeBSD$ tag
> 3) It's unnecessary to have pkg-plist for just one file
> 4) it's a good idea to have dirrect perl dependence
Nice, I was just fixing all that :)
I suggest adding also port docs and patching for the perl location, plus
p5- as pkg prefix
diff against the original Makefile:
# diff -u Makefile.orig Makefile
--- Makefile.orig Sun Jan 16 15:44:10 2005
+++ Makefile Sun Jan 16 15:44:59 2005
@@ -1,22 +1,39 @@
# New ports collection makefile for: imapsync
-# Date created: 14 Jan 2005
-# Whom: Alex Deiter <tiamat at komi.mts.ru>
+# Date created: 14 Jan 2005
+# Whom: Alex Deiter <tiamat at komi.mts.ru>
+#
+# $FreeBSD$
+#
PORTNAME= imapsync
-PORTVERSION= 1.116
-CATEGORIES= mail
-MASTER_SITES= http://www.linux-france.org/prj/imapsync/dist/
+PORTVERSION= 1.116
+CATEGORIES= mail perl5
+MASTER_SITES= http://www.linux-france.org/prj/imapsync/dist/
+PKGNAMEPREFIX= p5-
EXTRACT_SUFX= .tgz
MAINTAINER= tiamat at komi.mts.ru
COMMENT= IMAP synchronization copy or migration tool
-BUILD_DEPENDS= ${SITE_PERL}/Mail/IMAPClient.pm:${PORTSDIR}/mail/p5-Mail-IMAPClient
-RUN_DEPENDS= ${BUILD_DEPENDS}
+RUN_DEPENDS= ${SITE_PERL}/Mail/IMAPClient.pm:${PORTSDIR}/mail/p5-Mail-IMAPClient
+
+# we need perl5 to run but also to patch
+USE_PERL5= yes
+USE_REINPLACE= yes
+
+PLIST_FILES= bin/imapsync
+PORTDOCS= README TODO
NO_BUILD= yes
+post-patch:
+ @${REINPLACE_CMD} -e "s^#!/usr/bin/perl -w^#!${PERL} -w^" ${WRKSRC}/${PORTNAME}
+
do-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+ @${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+.ifndef(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ @${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/TODO ${DOCSDIR}
+.endif
--
IOnut
Unregistered ;) FreeBSD "user"
More information about the freebsd-ports-bugs
mailing list