# Created by: Blaz Zupan # $FreeBSD: head/mail/gld/Makefile 412348 2016-04-01 14:17:44Z mat $ PORTNAME= gld PORTVERSION= 1.8 PORTREVISION= 2 CATEGORIES= mail MASTER_SITES= http://www.gasmi.net/down/ EXTRACT_SUFX= .tgz MAINTAINER= ports@FreeBSD.org COMMENT= Greylisting daemon for Postfix BROKEN= unfetchable USE_RC_SUBR= gld HAS_CONFIGURE= yes SUB_FILES= pkg-message OPTIONS_SINGLE= DB OPTIONS_SINGLE_DB= MYSQL PGSQL OPTIONS_DEFINE= LOCAL_DB_SERVER DOCS OPTIONS_DEFAULT= MYSQL LOCAL_DB_SERVER_DESC= RUN_DEPEND also on selected DB server .include .if ${PORT_OPTIONS:MMYSQL} CONFIGURE_ARGS+= --with-mysql=${LOCALBASE} USE_MYSQL= yes . if ${PORT_OPTIONS:MLOCAL_DB_SERVER} RUN_DEPENDS+= mysql-server>=0:databases/mysql${MYSQL_VER}-server SUB_LIST+= MYSQL=mysql SUB_LIST+= PGSQL= . else SUB_LIST+= MYSQL= . endif .endif .if ${PORT_OPTIONS:MPGSQL} CONFIGURE_ARGS+= --with-pgsql=${LOCALBASE} USES+= pgsql . if ${PORT_OPTIONS:MLOCAL_DB_SERVER} RUN_DEPENDS+= postgresql-server>=0:databases/postgresql${PGSQL_VER}-server SUB_LIST+= PGSQL=postgresql SUB_LIST+= MYSQL= . else SUB_LIST+= PGSQL= . endif .endif post-extract: @${RM} -f ${WRKSRC}/config.cache post-patch: ${REINPLACE_CMD} -e 's|\(@CC@\ \)-O2|\1${CFLAGS}|' \ ${WRKSRC}/Makefile.in pre-build: ${REINPLACE_CMD} -e 's,"/etc/gld.conf","${PREFIX}/etc/gld.conf",' ${WRKSRC}/gld.h do-install: ${INSTALL_PROGRAM} ${WRKSRC}/gld ${STAGEDIR}${PREFIX}/sbin ${INSTALL_DATA} ${WRKSRC}/gld.conf ${STAGEDIR}${PREFIX}/etc/gld.conf.sample .if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${STAGEDIR}${DOCSDIR} .for FILE in HISTORY LICENCE README table-whitelist.sql tables.mysql tables.pgsql ${INSTALL_DATA} ${WRKSRC}/${FILE} ${STAGEDIR}${DOCSDIR} .endfor .endif .include