stagify mail/up-imapproxy

freebsd at nagilum.org freebsd at nagilum.org
Sun May 25 10:19:07 UTC 2014


>Submitter-Id:	freebsd at nagilum.org
>Originator:	freebsd at nagilum.org
>Organization:	
>Confidential:	no
>Synopsis:	stagify mail/up-imapproxy
>Severity:	non-critical
>Priority:	low
>Category:	ports
>Class:		sw-bug
>Release:	FreeBSD 9.2-STABLE i386
>Environment:
System: FreeBSD cakebox.tis 9.2-STABLE FreeBSD 9.2-STABLE #0 r264294M: Fri Apr 11 10:19:25 CEST 2014 root at cakebox.tis:/usr/obj/export/src/sys/net5501 i386


>Description:
	Stagify mail/up-imapproxy, fix dependency check.

>Fix:
	Apply patch below.

--- up-imapproxy.patch begins here ---
diff -Naur up-imapproxy.orig/Makefile up-imapproxy/Makefile
--- up-imapproxy.orig/Makefile	2013-09-20 21:59:12.000000000 +0200
+++ up-imapproxy/Makefile	2014-05-25 12:10:21.000000000 +0200
@@ -17,8 +17,7 @@
 OPTIONS_DEFINE=	DOVECOT DOCS
 DOVECOT_DESC=	Use with dovecot2
 
-USE_BZIP2=	yes
-USES=	pathfix
+USES=	tar:bzip2 pathfix
 USE_OPENSSL=	yes
 USE_AUTOTOOLS=	autoheader
 CONFIGURE_ARGS=	--with-openssl=${OPENSSLBASE}
@@ -30,26 +29,25 @@
 DOCS=		ChangeLog README README.debian README.known_issues README.ssl
 SBIN=		in.imapproxyd pimpstat
 
-NO_STAGE=	yes
 .include <bsd.port.options.mk>
 
 .if ${PORT_OPTIONS:MDOVECOT}
 SUB_LIST+=	DOVECOT="dovecot"
-RUN_DEPENDS+=	dovecot>=1.0:${PORTSDIR}/mail/dovecot2
+RUN_DEPENDS+=	dovecot:${PORTSDIR}/mail/dovecot2
 .else
 SUB_LIST+=	DOVECOT=""
 .endif
 
 do-install:
 .for i in ${SBIN}
-	(cd ${WRKSRC}/bin && ${INSTALL_PROGRAM} ${i} ${PREFIX}/sbin)
+	(cd ${WRKSRC}/bin && ${INSTALL_PROGRAM} ${i} ${STAGEDIR}${PREFIX}/sbin)
 .endfor
 	(cd ${WRKSRC}/scripts && ${INSTALL_DATA} imapproxy.conf \
-		${PREFIX}/etc/imapproxyd.conf.sample)
+		${STAGEDIR}${PREFIX}/etc/imapproxyd.conf.sample)
 .if ${PORT_OPTIONS:MDOCS}
-	@${MKDIR} ${DOCSDIR}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for i in ${DOCS}
-	(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${DOCSDIR})
+	(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${STAGEDIR}${DOCSDIR})
 .endfor
 .endif
 	@${CAT} ${PKGMESSAGE}
--- up-imapproxy.patch ends here ---


More information about the freebsd-ports mailing list