From 135792b1038a0647667593903b434dbe15fcbb85 Mon Sep 17 00:00:00 2001 From: wxs Date: Fri, 3 Jun 2011 11:25:11 +0000 Subject: - Update to 1.8.0rc2. - Rename RC script. PR: ports/157485 Submitted by: Ryan Steinmetz (rpsfa@rit.edu) Approved by: chifeng (maintainer) --- mail/sqlgrey/Makefile | 7 +++---- mail/sqlgrey/distinfo | 5 ++--- mail/sqlgrey/files/sqlgrey.in | 40 ++++++++++++++++++++++++++++++++++++++++ mail/sqlgrey/files/sqlgrey.sh.in | 40 ---------------------------------------- 4 files changed, 45 insertions(+), 47 deletions(-) create mode 100644 mail/sqlgrey/files/sqlgrey.in delete mode 100644 mail/sqlgrey/files/sqlgrey.sh.in (limited to 'mail') diff --git a/mail/sqlgrey/Makefile b/mail/sqlgrey/Makefile index 144eec18dd8a..7857c85336ee 100644 --- a/mail/sqlgrey/Makefile +++ b/mail/sqlgrey/Makefile @@ -6,9 +6,9 @@ # PORTNAME= sqlgrey -PORTVERSION= 1.7.6 +DISTVERSION= 1.8.0-rc2 CATEGORIES= mail -MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-1.7%20%28devel%29/${PORTVERSION} +MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-1.8%20%28stable%29 MAINTAINER= chifeng@gmail.com COMMENT= Greylisting policy server for Postfix using an SQL backend @@ -18,8 +18,7 @@ RUN_DEPENDS= ${SITE_PERL}/Net/Server.pm:${PORTSDIR}/net/p5-Net-Server \ ${SITE_PERL}/Pod/Usage.pm:${PORTSDIR}/textproc/p5-Pod-Parser USE_PERL5_RUN= yes -USE_RC_SUBR= sqlgrey.sh -USE_BZIP2= yes +USE_RC_SUBR= sqlgrey NO_BUILD= yes ETCFILES= clients_fqdn_whitelist clients_ip_whitelist dyn_fqdn.regexp smtp_server.regexp sqlgrey.conf diff --git a/mail/sqlgrey/distinfo b/mail/sqlgrey/distinfo index e723cda260ce..7e264b92feee 100644 --- a/mail/sqlgrey/distinfo +++ b/mail/sqlgrey/distinfo @@ -1,3 +1,2 @@ -MD5 (sqlgrey-1.7.6.tar.bz2) = 1e7e5e3ed5f02b29f71ef4e26edc1c36 -SHA256 (sqlgrey-1.7.6.tar.bz2) = 48f6c855e18d3ac3d19a0c2ecd250394a355d0116acd631187b880cb813646d1 -SIZE (sqlgrey-1.7.6.tar.bz2) = 63738 +SHA256 (sqlgrey-1.8.0-rc2.tar.gz) = c109aab28c9dcf798beb708d1efa37facfb3dfacd0f15fa87b5f6c1f023d2068 +SIZE (sqlgrey-1.8.0-rc2.tar.gz) = 68821 diff --git a/mail/sqlgrey/files/sqlgrey.in b/mail/sqlgrey/files/sqlgrey.in new file mode 100644 index 000000000000..9a0569078d35 --- /dev/null +++ b/mail/sqlgrey/files/sqlgrey.in @@ -0,0 +1,40 @@ +#!/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=`set_rcvar` + +command=%%PREFIX%%/sbin/sqlgrey +extra_commands=reload +command_interpreter=%%PERL%% + +stop_postcmd=${name}_poststop + +sqlgrey_poststop() +{ + rm -f $pidfile +} + +load_rc_config $name + +sqlgrey_enable=${sqlgrey_enable-"NO"} +sqlgrey_config=${sqlgrey_config-"/usr/local/%%ETCDIR%%/sqlgrey.conf"} +sqlgrey_flags=${sqlgrey_flags-"--daemonize --configfile=${sqlgrey_config}"} + +run_rc_command "$1" diff --git a/mail/sqlgrey/files/sqlgrey.sh.in b/mail/sqlgrey/files/sqlgrey.sh.in deleted file mode 100644 index 9a0569078d35..000000000000 --- a/mail/sqlgrey/files/sqlgrey.sh.in +++ /dev/null @@ -1,40 +0,0 @@ -#!/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=`set_rcvar` - -command=%%PREFIX%%/sbin/sqlgrey -extra_commands=reload -command_interpreter=%%PERL%% - -stop_postcmd=${name}_poststop - -sqlgrey_poststop() -{ - rm -f $pidfile -} - -load_rc_config $name - -sqlgrey_enable=${sqlgrey_enable-"NO"} -sqlgrey_config=${sqlgrey_config-"/usr/local/%%ETCDIR%%/sqlgrey.conf"} -sqlgrey_flags=${sqlgrey_flags-"--daemonize --configfile=${sqlgrey_config}"} - -run_rc_command "$1" -- cgit