aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mail/mailfront/Makefile32
-rw-r--r--mail/mailfront/pkg-plist36
2 files changed, 13 insertions, 55 deletions
diff --git a/mail/mailfront/Makefile b/mail/mailfront/Makefile
index 84201f51c850..3085589f96ad 100644
--- a/mail/mailfront/Makefile
+++ b/mail/mailfront/Makefile
@@ -11,12 +11,10 @@ MASTER_SITES= http://untroubled.org/${PORTNAME}/ \
MAINTAINER= ports@FreeBSD.org
COMMENT= Mail server network protocol front-ends
-LIB_DEPENDS= libcvm-v2client.so:security/cvm
-
-OPTIONS_DEFINE= LUA DOCS
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/COPYING
-OPTIONS_DEFAULT=LUA
-OPTIONS_SUB= yes
+LIB_DEPENDS= libcvm-v2client.so:security/cvm
USES= qmail:vars
@@ -32,19 +30,17 @@ MODULES_DIR= ${PREFIX}/libexec/${PORTNAME}
ALL_TARGET= all
LATE_INSTALL_ARGS= install_prefix=${STAGEDIR}
-DOCS= NEWS README TODO *.html
+PORTDOCS= NEWS README TODO *.html
-.include <bsd.port.options.mk>
+LDFLAGS+= -rdynamic
-.if ${PORT_OPTIONS:MLUA}
-ALL_TARGET+= lua
-USES+= lua:51
-CFLAGS+= -I${LUA_INCDIR}
-CFLAGS_SO+= -L${LUA_LIBDIR}
-LDFLAGS+= -L${LUA_LIBDIR}
-.endif
+OPTIONS_DEFINE= LUA DOCS
+OPTIONS_DEFAULT=LUA
+OPTIONS_SUB= yes
-LDFLAGS+= -rdynamic
+LUA_ALL_TARGET= lua
+LUA_USES= lua:51
+LUA_VARS= CFLAGS+=-I${LUA_INCDIR} LUA_CFLAGS_SO+=-L${LUA_LIBDIR} LUA_LDFLAGS+=-L${LUA_LIBDIR}
do-configure:
${ECHO_CMD} "${PREFIX}/bin" > ${WRKSRC}/conf-bin
@@ -60,10 +56,8 @@ do-configure:
post-patch:
@${REINPLACE_CMD} 's,-llua,-llua-${LUA_VER},' ${WRKSRC}/Makefile
-.if ${PORT_OPTIONS:MDOCS}
-post-install:
+post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
- cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}
-.endif
+ cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
diff --git a/mail/mailfront/pkg-plist b/mail/mailfront/pkg-plist
index 018be8f73385..02dc42e62767 100644
--- a/mail/mailfront/pkg-plist
+++ b/mail/mailfront/pkg-plist
@@ -28,39 +28,3 @@ libexec/mailfront/plugin-starttls-ucspi.so
libexec/mailfront/protocol-qmqp.so
libexec/mailfront/protocol-qmtp.so
libexec/mailfront/protocol-smtp.so
-%%PORTDOCS%%%%DOCSDIR%%/NEWS
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%%%DOCSDIR%%/TODO
-%%PORTDOCS%%%%DOCSDIR%%/backend-echo.html
-%%PORTDOCS%%%%DOCSDIR%%/backend-qmail.html
-%%PORTDOCS%%%%DOCSDIR%%/imapfront.html
-%%PORTDOCS%%%%DOCSDIR%%/mailfront.html
-%%PORTDOCS%%%%DOCSDIR%%/mailrules.html
-%%PORTDOCS%%%%DOCSDIR%%/mailrulesx.html
-%%PORTDOCS%%%%DOCSDIR%%/msa.html
-%%PORTDOCS%%%%DOCSDIR%%/plugin-accept-recipient.html
-%%PORTDOCS%%%%DOCSDIR%%/plugin-accept-sender.html
-%%PORTDOCS%%%%DOCSDIR%%/plugin-accept.html
-%%PORTDOCS%%%%DOCSDIR%%/plugin-add-received.html
-%%PORTDOCS%%%%DOCSDIR%%/plugin-api.html
-%%PORTDOCS%%%%DOCSDIR%%/plugin-check-fqdn.html
-%%PORTDOCS%%%%DOCSDIR%%/plugin-clamav.html
-%%PORTDOCS%%%%DOCSDIR%%/plugin-counters.html
-%%PORTDOCS%%%%DOCSDIR%%/plugin-cvm-authenticate.html
-%%PORTDOCS%%%%DOCSDIR%%/plugin-cvm-validate.html
-%%PORTDOCS%%%%DOCSDIR%%/plugin-force-file.html
-%%PORTDOCS%%%%DOCSDIR%%/plugin-lua.html
-%%PORTDOCS%%%%DOCSDIR%%/plugin-mailrules.html
-%%PORTDOCS%%%%DOCSDIR%%/plugin-patterns.html
-%%PORTDOCS%%%%DOCSDIR%%/plugin-qmail-validate.html
-%%PORTDOCS%%%%DOCSDIR%%/plugin-reject.html
-%%PORTDOCS%%%%DOCSDIR%%/plugin-relayclient.html
-%%PORTDOCS%%%%DOCSDIR%%/plugin-require-auth.html
-%%PORTDOCS%%%%DOCSDIR%%/plugin-spamassassin.html
-%%PORTDOCS%%%%DOCSDIR%%/plugin-starttls-ucspi.html
-%%PORTDOCS%%%%DOCSDIR%%/plugin-template.html
-%%PORTDOCS%%%%DOCSDIR%%/pop3front.html
-%%PORTDOCS%%%%DOCSDIR%%/protocol-qmqp.html
-%%PORTDOCS%%%%DOCSDIR%%/protocol-qmtp.html
-%%PORTDOCS%%%%DOCSDIR%%/protocol-smtp.html
-%%PORTDOCS%%%%DOCSDIR%%/std-handle.html