Index: head/mail/sqlgrey/Makefile =================================================================== --- head/mail/sqlgrey/Makefile (revision 414997) +++ head/mail/sqlgrey/Makefile (revision 414998) @@ -1,64 +1,64 @@ # Created by: mat # $FreeBSD$ PORTNAME= sqlgrey PORTVERSION= 1.8.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= mail 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_FILE= ${WRKSRC}/COPYING RUN_DEPENDS= p5-Net-Server>=0:net/p5-Net-Server \ p5-IO-Multiplex>=0:devel/p5-IO-Multiplex \ p5-Pod-Parser>=0:textproc/p5-Pod-Parser \ ${LOCALBASE}/bin/bash:shells/bash \ ${LOCALBASE}/bin/gmd5sum:sysutils/coreutils USES= perl5 shebangfix SHEBANG_FILES= ${WRKSRC}/sqlgrey-logstats.pl ${WRKSRC}/update_sqlgrey_config ${WRKSRC}/sqlgrey 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} 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 PGSQL_RUN_DEPENDS= p5-DBD-Pg>=0:databases/p5-DBD-Pg MYSQL_RUN_DEPENDS= p5-DBD-mysql>=0:databases/p5-DBD-mysql SQLITE_RUN_DEPENDS= p5-DBD-SQLite>=0:databases/p5-DBD-SQLite STATS_RUN_DEPENDS= p5-Date-Calc>=0:devel/p5-Date-Calc post-patch: @${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}${ETCDIR} .for i in ${ETCFILES} ${INSTALL_DATA} ${WRKSRC}/etc/${i} ${STAGEDIR}${ETCDIR}/${i}.sample .endfor do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} .include Index: head/mail/sqlgrey/files/sqlgrey.in =================================================================== --- head/mail/sqlgrey/files/sqlgrey.in (revision 414997) +++ head/mail/sqlgrey/files/sqlgrey.in (revision 414998) @@ -1,43 +1,43 @@ #!/bin/sh # $FreeBSD$ # # PROVIDE: sqlgrey # REQUIRE: LOGIN # BEFORE: mail # KEYWORD: shutdown # # Add the following lines to /etc/rc.conf to enable sqlgrey: # # sqlgrey_enable="YES" # # See man sqlgrey for flags or the config file. . /etc/rc.subr name=sqlgrey rcvar=sqlgrey_enable load_rc_config ${name} command=%%PREFIX%%/sbin/sqlgrey extra_commands=reload command_interpreter=%%PERL%% start_precmd=${name}_prestart stop_postcmd="rm -f ${pidfile}" sqlgrey_enable=${sqlgrey_enable-"NO"} -required_files=${sqlgrey_config-"%%PREFIX%%/%%ETCDIR%%/sqlgrey.conf"} +required_files=${sqlgrey_config-"%%ETCDIR%%/sqlgrey.conf"} pidfile=${sqlgrey_pidfile-"/var/run/sqlgrey.pid"} command_args="--configfile=${required_files} --pidfile=${pidfile} --daemonize" sqlgrey_prestart() { if [ ! -d %%DATADIR%% ]; then install -d -o %%USERS%% -g %%GROUPS%% -m 2775 %%DATADIR%% fi } run_rc_command "$1"