Date: Sun, 16 Jan 2005 15:48:21 +0200 From: Ion-Mihai Tetcu <itetcu@people.tecnik93.com> To: Sergey Matveychuk <sem@FreeBSD.org> Cc: tiamat@komi.mts.ru Subject: Re: ports/76304: new port: mail/imapsync: IMAP synchronization, copy or migration tool Message-ID: <20050116154821.03c42810@it.buh.tecnik93.com> In-Reply-To: <200501161336.j0GDaQIR087439@freefall.freebsd.org> References: <200501161336.j0GDaQIR087439@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 16 Jan 2005 13:36:26 GMT Sergey Matveychuk <sem@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@komi.mts.ru> +# Date created: 14 Jan 2005 +# Whom: Alex Deiter <tiamat@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@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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050116154821.03c42810>