aboutsummaryrefslogtreecommitdiff
path: root/mail/sqlgrey/Makefile
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2016-03-30 00:52:40 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2016-03-30 00:52:40 +0000
commit08a706693c1251ced48734d5273cd9ab3fef1caa (patch)
tree5d37088cafd00e09e0f47c25183c8ba45e184c62 /mail/sqlgrey/Makefile
parentad3b778a05836af09732ebcf6f433f4d0ba5d246 (diff)
downloadports-08a706693c1251ced48734d5273cd9ab3fef1caa.tar.gz
ports-08a706693c1251ced48734d5273cd9ab3fef1caa.zip
Notes
Diffstat (limited to 'mail/sqlgrey/Makefile')
-rw-r--r--mail/sqlgrey/Makefile57
1 files changed, 21 insertions, 36 deletions
diff --git a/mail/sqlgrey/Makefile b/mail/sqlgrey/Makefile
index eedff8acbe46..cc1fae9bafba 100644
--- a/mail/sqlgrey/Makefile
+++ b/mail/sqlgrey/Makefile
@@ -10,7 +10,8 @@ MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-1.8%20%28stable%29
MAINTAINER= ports@FreeBSD.org
COMMENT= Greylisting policy server for Postfix using an SQL backend
-LICENSE= GPLv2
+LICENSE= GPLv2+
+LICENSE_FILE= ${WRKSRC}/COPYING
RUN_DEPENDS= p5-Net-Server>=0:${PORTSDIR}/net/p5-Net-Server \
p5-IO-Multiplex>=0:${PORTSDIR}/devel/p5-IO-Multiplex \
@@ -23,57 +24,41 @@ SHEBANG_FILES= ${WRKSRC}/sqlgrey-logstats.pl ${WRKSRC}/update_sqlgrey_config ${W
USE_PERL5= run
USE_RC_SUBR= sqlgrey
NO_BUILD= yes
+NO_ARCH= yes
ETCFILES= clients_fqdn_whitelist clients_ip_whitelist dyn_fqdn.regexp smtp_server.regexp sqlgrey.conf
USERS= sqlgrey
GROUPS= ${USERS}
-ETCDIR?= etc/sqlgrey
-SUB_LIST+= PERL=${PERL} USERS=${USERS} GROUPS=${GROUPS}
+SUB_LIST= PERL=${PERL} USERS=${USERS} GROUPS=${GROUPS}
PLIST_SUB= TOUCH=${TOUCH}
+PORTDOCS= Changelog FAQ HOWTO README TODO
+
OPTIONS_DEFINE= PGSQL MYSQL SQLITE STATS DOCS
OPTIONS_DEFAULT=PGSQL
STATS_DESC= Depend on Date::Calc for logstats.pl script
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MDOCS}
-PORTDOCS= Changelog FAQ HOWTO README TODO
-.endif
-
-.if ${PORT_OPTIONS:MPGSQL}
-RUN_DEPENDS+= p5-DBD-Pg>=0:${PORTSDIR}/databases/p5-DBD-Pg
-.endif
-
-.if ${PORT_OPTIONS:MMYSQL}
-RUN_DEPENDS+= p5-DBD-mysql>=0:${PORTSDIR}/databases/p5-DBD-mysql
-.endif
-
-.if ${PORT_OPTIONS:MSQLITE}
-RUN_DEPENDS+= p5-DBD-SQLite>=0:${PORTSDIR}/databases/p5-DBD-SQLite
-.endif
-
-.if ${PORT_OPTIONS:MSTATS}
-RUN_DEPENDS+= p5-Date-Calc>=0:${PORTSDIR}/devel/p5-Date-Calc
-.endif
+PGSQL_RUN_DEPENDS= p5-DBD-Pg>=0:${PORTSDIR}/databases/p5-DBD-Pg
+MYSQL_RUN_DEPENDS= p5-DBD-mysql>=0:${PORTSDIR}/databases/p5-DBD-mysql
+SQLITE_RUN_DEPENDS= p5-DBD-SQLite>=0:${PORTSDIR}/databases/p5-DBD-SQLite
+STATS_RUN_DEPENDS= p5-Date-Calc>=0:${PORTSDIR}/devel/p5-Date-Calc
post-patch:
- @${REINPLACE_CMD} -e 's!/etc/sqlgrey!${PREFIX}/${ETCDIR}!g' ${WRKSRC}/sqlgrey
+ @${REINPLACE_CMD} -e 's!/etc/sqlgrey!${ETCDIR}!g' ${WRKSRC}/sqlgrey
do-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/sqlgrey-logstats.pl ${STAGEDIR}/${PREFIX}/bin
- ${INSTALL_SCRIPT} ${WRKSRC}/sqlgrey ${STAGEDIR}/${PREFIX}/sbin
- ${INSTALL_SCRIPT} ${WRKSRC}/update_sqlgrey_config ${STAGEDIR}/${PREFIX}/sbin
- @cd ${WRKSRC} && perldoc -u sqlgrey | pod2man sqlgrey > ${STAGEDIR}/${MANPREFIX}/man/man1/sqlgrey.1
- @${MKDIR} ${STAGEDIR}/${PREFIX}/${ETCDIR}
+ ${INSTALL_SCRIPT} ${WRKSRC}/sqlgrey-logstats.pl ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${WRKSRC}/sqlgrey ${STAGEDIR}${PREFIX}/sbin
+ ${INSTALL_SCRIPT} ${WRKSRC}/update_sqlgrey_config ${STAGEDIR}${PREFIX}/sbin
+ cd ${WRKSRC} && perldoc -u sqlgrey | pod2man sqlgrey > ${STAGEDIR}${MANPREFIX}/man/man1/sqlgrey.1
+ @${MKDIR} ${STAGEDIR}${ETCDIR}
.for i in ${ETCFILES}
- ${INSTALL_DATA} ${WRKSRC}/etc/${i} ${STAGEDIR}/${PREFIX}/${ETCDIR}/${i}.sample
+ ${INSTALL_DATA} ${WRKSRC}/etc/${i} ${STAGEDIR}${ETCDIR}/${i}.sample
.endfor
-.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${STAGEDIR}/${DOCSDIR}
- ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}/${DOCSDIR}
- @${ECHO_MSG} "===> Documentation installed in ${STAGEDIR}/${DOCSDIR}."
-.endif
+
+do-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>