aboutsummaryrefslogtreecommitdiff
path: root/mail/up-imapproxy
diff options
context:
space:
mode:
authorMartin Blapp <mbr@FreeBSD.org>2005-02-27 13:51:30 +0000
committerMartin Blapp <mbr@FreeBSD.org>2005-02-27 13:51:30 +0000
commit0316d829e2a2ff8ec59c9a08ada55c7a0966cb36 (patch)
tree658434333116f179f11dd7231aebeb3cf876a4c9 /mail/up-imapproxy
parent2ac7ded17fff35cda8a44873cea48f39e478e51f (diff)
downloadports-0316d829e2a2ff8ec59c9a08ada55c7a0966cb36.tar.gz
ports-0316d829e2a2ff8ec59c9a08ada55c7a0966cb36.zip
Notes
Diffstat (limited to 'mail/up-imapproxy')
-rw-r--r--mail/up-imapproxy/Makefile14
-rw-r--r--mail/up-imapproxy/pkg-plist2
2 files changed, 10 insertions, 6 deletions
diff --git a/mail/up-imapproxy/Makefile b/mail/up-imapproxy/Makefile
index d9375e88fdc4..04fa5f4c4063 100644
--- a/mail/up-imapproxy/Makefile
+++ b/mail/up-imapproxy/Makefile
@@ -14,8 +14,8 @@ DISTNAME= ${PORTNAME}-${PORTVERSION}
MAINTAINER= mbr@FreeBSD.org
COMMENT= A caching IMAP proxy server
-GNU_CONFIGURE= YES
-USE_AUTOCONF_VER=213
+USE_REINPLACE= YES
+HAS_CONFIGURE= YES
USE_RC_SUBR= YES
SAMPLE_EXT= sample
@@ -25,16 +25,20 @@ SAMPLE_EXT= sample
RC_SCRIPTS_SUB= PREFIX=${PREFIX} \
RC_SUBR=${RC_SUBR}
+post-patch:
+ ${REINPLACE_CMD} -e "s|-lc_r|${PTHREAD_LIBS}|g; s|-lpthread|${PTHREAD_LIBS}|g" ${WRKSRC}/configure
+
post-install:
@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
< ${FILESDIR}/imapproxyd.conf > ${WRKSRC}/imapproxyd.conf ;
+ ${INSTALL} -m 644 -c ${WRKSRC}/imapproxyd.conf ${PREFIX}/etc/imapproxyd.conf.default ;
@if [ ! -f ${PREFIX}/etc/imapproxyd.conf ]; then \
- ${INSTALL} -c ${WRKSRC}/imapproxyd.conf ${PREFIX}/etc/imapproxyd.conf ; \
+ ${INSTALL} -m 644 -c ${WRKSRC}/imapproxyd.conf ${PREFIX}/etc/imapproxyd.conf ; \
fi
- ${INSTALL} -c ${WRKSRC}/scripts/imapproxy.conf ${PREFIX}/etc/imapproxyd.conf.${SAMPLE_EXT} ;
+ ${INSTALL} -m 644 -c ${WRKSRC}/scripts/imapproxy.conf ${PREFIX}/etc/imapproxyd.conf.${SAMPLE_EXT} ;
@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
< ${FILESDIR}/imapproxyd.sh > ${WRKSRC}/imapproxyd.sh
- ${INSTALL_SCRIPT} ${WRKSRC}/imapproxyd.sh ${PREFIX}/etc/rc.d/imapproxyd.sh
+ ${INSTALL_SCRIPT} -m 755 ${WRKSRC}/imapproxyd.sh ${PREFIX}/etc/rc.d/imapproxyd.sh
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
diff --git a/mail/up-imapproxy/pkg-plist b/mail/up-imapproxy/pkg-plist
index 1a451e516004..83ecf05c9d64 100644
--- a/mail/up-imapproxy/pkg-plist
+++ b/mail/up-imapproxy/pkg-plist
@@ -1,5 +1,5 @@
sbin/pimpstat
sbin/in.imapproxyd
etc/rc.d/imapproxyd.sh
-etc/imapproxyd.conf
+etc/imapproxyd.conf.default
etc/imapproxyd.conf.sample