aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authormbr <mbr@FreeBSD.org>2010-01-03 06:30:52 +0800
committermbr <mbr@FreeBSD.org>2010-01-03 06:30:52 +0800
commit61e9e02d73415d19cce25d3a7bd5ad6094af2da3 (patch)
treea980a824afb65c6445854d4337380b90ac9007ee /mail
parentcb4595e7746312f13ca9c30f4ffca216079d41cd (diff)
downloadfreebsd-ports-graphics-61e9e02d73415d19cce25d3a7bd5ad6094af2da3.tar.gz
freebsd-ports-graphics-61e9e02d73415d19cce25d3a7bd5ad6094af2da3.tar.zst
freebsd-ports-graphics-61e9e02d73415d19cce25d3a7bd5ad6094af2da3.zip
Fix hardcoded use of /etc/imapproxyd.conf with autoconf
Remove unneeded postpatch section Other PRs just set the default location of the default config file: ports/142247 ports/125655 ports/122422 PR: ports/133098 Submitted by: Daniel Bond <db@danielbond.org>
Diffstat (limited to 'mail')
-rw-r--r--mail/up-imapproxy/Makefile9
-rw-r--r--mail/up-imapproxy/files/patch-configure.in12
2 files changed, 15 insertions, 6 deletions
diff --git a/mail/up-imapproxy/Makefile b/mail/up-imapproxy/Makefile
index c4d6a44aba3..49ee6e0a2cf 100644
--- a/mail/up-imapproxy/Makefile
+++ b/mail/up-imapproxy/Makefile
@@ -7,7 +7,7 @@
PORTNAME= imapproxy
PORTVERSION= 1.2.6
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= mail
MASTER_SITES= http://www.imapproxy.org/downloads/
PKGNAMEPREFIX= up-
@@ -16,7 +16,8 @@ DISTNAME= ${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION}
MAINTAINER= mbr@FreeBSD.org
COMMENT= A caching IMAP proxy server
-GNU_CONFIGURE= YES
+USE_AUTOTOOLS= autoheader:262
+
USE_RC_SUBR= imapproxyd.sh
DOCS= COPYING ChangeLog README README.debian \
README.known_issues README.ssl
@@ -26,10 +27,6 @@ SUB_FILES= pkg-message
CONFIGURE_ARGS+= --with-openssl=${OPENSSLBASE}
-post-patch:
- ${REINPLACE_CMD} -e "s|-lc_r|${PTHREAD_LIBS}|g" \
- -e "s|-lpthread|${PTHREAD_LIBS}|g" ${WRKSRC}/configure
-
do-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
diff --git a/mail/up-imapproxy/files/patch-configure.in b/mail/up-imapproxy/files/patch-configure.in
new file mode 100644
index 00000000000..cc7878a4314
--- /dev/null
+++ b/mail/up-imapproxy/files/patch-configure.in
@@ -0,0 +1,12 @@
+--- configure.in.orig 2009-03-26 15:13:59.000000000 +0100
++++ configure.in 2009-03-26 15:14:54.000000000 +0100
+@@ -129,7 +129,8 @@
+ LIBS="$save_LIBS"
+ AC_SUBST(LIB_CURSES)
+
+-
++eval expanded_sysconfdir="\"$sysconfdir\""
++AC_DEFINE_UNQUOTED(DEFAULT_CONFIG_FILE, "$expanded_sysconfdir/imapproxyd.conf", [default location of config file])
+ AC_CONFIG_HEADER(config.h)
+
+