ports/189079: [patch] mail/dovecot-sieve add stage support
Olli Hauer
ohauer at FreeBSD.org
Mon Apr 28 16:50:01 UTC 2014
>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 at 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
- at dirrmtry lib/dovecot/lda
- at 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:
More information about the freebsd-ports-bugs
mailing list