mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
- Fix build on CURRENT
- Borrow sources from dns/libbind instead of dns/bind95 - Add license PR: ports/151873 Submitted by: maintainer
This commit is contained in:
parent
ff1a6ae50d
commit
3339388a8f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=263914
@ -13,7 +13,7 @@ MASTER_SITES= SF/${PORTNAME}/ENMA/${PORTVERSION}
|
||||
MAINTAINER= umq@ueo.co.jp
|
||||
COMMENT= A sender authentication milter supporting SPF and Sender ID
|
||||
|
||||
BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/dns/bind95:checksum
|
||||
BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/dns/libbind:checksum
|
||||
|
||||
.if defined(WITH_POSTFIX_MILTER) || defined(WITH_POSTFIX) || defined(WITH_POSTFIX_CURRENT)
|
||||
CONF_SUB= ${REINPLACE_CMD} -e '/milter\.postfix/s/false/true/' ${WRKSRC}/enma/etc/enma.conf.sample
|
||||
@ -24,7 +24,7 @@ RUN_DEPENDS+= ${LOCALBASE}/libexec/postfix/smtpd:${PORTSDIR}/mail/postfix
|
||||
.endif
|
||||
.endif
|
||||
|
||||
BIND_PATH_CMD= cd ${PORTSDIR}/dns/bind95 && ${MAKE} -V WRKSRC
|
||||
BIND_PATH_CMD= cd ${PORTSDIR}/dns/libbind && ${MAKE} -V WRKSRC
|
||||
BIND_SRC_DIR= ${BASENAME} $$(${BIND_PATH_CMD})
|
||||
|
||||
HAS_CONFIGURE= yes
|
||||
@ -32,6 +32,8 @@ CONFIGURE_ARGS+= --prefix=${PREFIX} --mandir=${PREFIX}/man \
|
||||
--with-libbind=${WRKSRC}/build/tmp_build
|
||||
USE_RC_SUBR= milter-enma
|
||||
USE_GMAKE= yes
|
||||
LICENSE= BSD
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
MANLANG= "" ja_JP.UTF-8
|
||||
MAN1= enma.1
|
||||
MANCOMPRESSED= no
|
||||
@ -42,10 +44,6 @@ SUB_FILES= milter-enma
|
||||
.include <bsd.port.pre.mk>
|
||||
.include "${PORTSDIR}/mail/sendmail/bsd.milter.mk"
|
||||
|
||||
.if ${OSVERSION} >= 900007
|
||||
BROKEN= does not build
|
||||
.endif
|
||||
|
||||
USE_OPENSSL= yes
|
||||
.if ${OSVERSION} < 700000
|
||||
WITH_OPENSSL_PORT= yes
|
||||
@ -53,9 +51,9 @@ WITH_OPENSSL_PORT= yes
|
||||
.include "${PORTSDIR}/Mk/bsd.openssl.mk"
|
||||
|
||||
pre-configure:
|
||||
cd ${PORTSDIR}/dns/bind95 && ${MAKE} -DBATCH patch && \
|
||||
cd ${PORTSDIR}/dns/libbind && ${MAKE} -DBATCH patch && \
|
||||
${LN} -s $$(${BIND_PATH_CMD}) ${WRKSRC}/build && \
|
||||
cd ${WRKSRC}/build/$$(${BIND_SRC_DIR})/lib/bind && \
|
||||
cd ${WRKSRC}/build/$$(${BIND_SRC_DIR}) && \
|
||||
./configure --prefix=${WRKSRC}/build/tmp_build --enable-threads && ${MAKE} && ${MAKE} install
|
||||
$$(${CONF_SUB})
|
||||
|
||||
@ -67,7 +65,7 @@ post-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
|
||||
.endfor
|
||||
.endif
|
||||
@${ECHO_CMD} "@unexec rmdir %D/man/ja_JP.UTF-8/man1 2>/dev/null || true" >> ${TMPPLIST}
|
||||
@${ECHO_CMD} "@unexec rmdir %D/man/ja_JP.UTF-8 2>/dev/null || true" >> ${TMPPLIST}
|
||||
@${ECHO_CMD} "@unexec ${RMDIR} %D/man/ja_JP.UTF-8/man1 2>/dev/null || true" >> ${TMPPLIST}
|
||||
@${ECHO_CMD} "@unexec ${RMDIR} %D/man/ja_JP.UTF-8 2>/dev/null || true" >> ${TMPPLIST}
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
10
mail/enma/files/patch-enma_src_addr_util.c
Normal file
10
mail/enma/files/patch-enma_src_addr_util.c
Normal file
@ -0,0 +1,10 @@
|
||||
--- ./enma/src/addr_util.c.orig 2009-03-27 15:06:08.000000000 +0900
|
||||
+++ ./enma/src/addr_util.c 2010-10-21 09:28:43.000000000 +0900
|
||||
@@ -18,6 +18,7 @@
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
+#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
#include <arpa/inet.h>
|
Loading…
Reference in New Issue
Block a user