Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Apr 2014 16:44:06 GMT
From:      Olli Hauer <ohauer@FreeBSD.org>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        yds@CoolRat.org
Subject:   ports/189079: [patch] mail/dovecot-sieve add stage support
Message-ID:  <201404281644.s3SGi6gP006046@freefall.freebsd.org>
Resent-Message-ID: <201404281650.s3SGo0nO006291@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         189079
>Category:       ports
>Synopsis:       [patch] mail/dovecot-sieve add stage support
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 28 16:50:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Olli Hauer
>Release:        
>Organization:
>Environment:

>Description:
- add stage support
- strip

build logs:
https://redports.org/buildarchive/20140428155500-18394/

commit together with mail/dovecot PR: ports/188868

>How-To-Repeat:

>Fix:

--- dovecot-sieve.diff begins here ---
Index: dovecot-sieve/Makefile
===================================================================
--- dovecot-sieve/Makefile	(revision 352511)
+++ dovecot-sieve/Makefile	(working copy)
@@ -4,13 +4,16 @@
 PORTNAME=	dovecot-sieve
 PORTVERSION=	${DOVECOTVERSION}+${DISTVERSION}
 DISTVERSION=	0.1.19
+PORTREVISION=	1
 CATEGORIES=	mail
 MASTER_SITES=	http://www.rename-it.nl/dovecot/${DOVECOTVERSION}/
 DISTNAME=	${PORTNAME:C/-/-${DOVECOTVERSION}-/}-${DISTVERSIONPREFIX}${DISTVERSION:C/:(.)/\1/g}${DISTVERSIONSUFFIX}
 
 MAINTAINER=	yds@CoolRat.org
-COMMENT=	A Sieve plugin for the Dovecot 'deliver' LDA
+COMMENT=	Sieve plugin for the Dovecot 'deliver' LDA
 
+LICENSE=	LGPL21
+
 BUILD_DEPENDS=	${NONEXISTENT}:${PORTSDIR}/mail/dovecot:build
 RUN_DEPENDS=	dovecot>=${DOVECOTVERSION}.*:${PORTSDIR}/mail/dovecot
 
@@ -26,15 +29,10 @@
 
 SUB_FILES=	pkg-message
 
-MAN1=		sieve-test.1 sievec.1 sieved.1
-
 DOCSDIR=	${PREFIX}/share/doc/${PORTNAME:S/-/\//}
 
-.if !defined(NOPORTDOCS)
 PORTDOCS=	AUTHORS COPYING COPYING.LGPL INSTALL NEWS README TODO spamtest-virustest.txt
-.endif
 
-NO_STAGE=	yes
 post-patch:
 	@${REINPLACE_CMD} -e '\
 		s!/doc/$${PACKAGE_TARNAME}!/doc/${PORTNAME:S/-/\//}!g;\
@@ -47,12 +45,8 @@
 	@${LN} -f ${WRKSRC}/doc/spamtest-virustest.txt ${WRKSRC}/
 
 post-install:
-.if !defined(NOPORTDOCS)
-	${INSTALL} ${_SHROWNGRP} -m ${BINMODE} -d ${DOCSDIR}
-.for f in ${PORTDOCS}
-	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
-.endfor
-.endif
-	@${CAT} ${PKGMESSAGE}
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/dovecot/lda/lib90_sieve_plugin.so
 
 .include <bsd.port.mk>
Index: dovecot-sieve/pkg-plist
===================================================================
--- dovecot-sieve/pkg-plist	(revision 352511)
+++ dovecot-sieve/pkg-plist	(working copy)
@@ -4,5 +4,6 @@
 lib/dovecot/lda/lib90_sieve_plugin.a
 lib/dovecot/lda/lib90_sieve_plugin.la
 lib/dovecot/lda/lib90_sieve_plugin.so
-@dirrmtry lib/dovecot/lda
-@dirrmtry lib/dovecot
+man/man1/sieve-test.1.gz
+man/man1/sievec.1.gz
+man/man1/sieved.1.gz
--- dovecot-sieve.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404281644.s3SGi6gP006046>