FreeBSD Bugzilla – Attachment 134060 Details for
Bug 178644
Redesign mail/postgrey RC script, other small tweaks
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 3.64 KB, created by
ports.maintainer
on 2013-05-14 20:40:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
ports.maintainer
Created:
2013-05-14 20:40:00 UTC
Size:
3.64 KB
patch
obsolete
>--- Makefile.orig 2013-05-12 07:29:46.000000000 -0700 >+++ Makefile 2013-05-14 12:28:17.569002494 -0700 >@@ -3,7 +3,7 @@ > > PORTNAME= postgrey > PORTVERSION= 1.34 >-PORTREVISION= 4 >+PORTREVISION= 5 > CATEGORIES= mail > MASTER_SITES= http://postgrey.schweikert.ch/pub/ \ > http://postgrey.schweikert.ch/pub/old/ >@@ -23,14 +23,13 @@ > POD2MAN?= pod2man > PORTDOCS= README Changes README.exim > SUB_FILES= pkg-install >-SUB_LIST= USER=${PGY_USERNAME} UID=${PGY_USERID} GROUP=${PGY_GROUPNAME} \ >- GID=${PGY_GROUPID} ETCFILES="${ETCFILES}" \ >+SUB_LIST= USER=${PGY_USERNAME} \ >+ GROUP=${PGY_GROUPNAME} \ >+ ETCFILES="${ETCFILES}" \ > POSTGREYDIR=${PGY_DIR} > ETCFILES= whitelist_clients whitelist_recipients > PGY_USERNAME?= postgrey >-PGY_USERID?= 225 >-PGY_GROUPNAME?= ${PGY_USERNAME} >-PGY_GROUPID?= ${PGY_USERID} >+PGY_GROUPNAME?= postgrey > PGY_DIR?= /var/db/postgrey > > USERS= ${PGY_USERNAME} >@@ -40,12 +39,10 @@ > USES= shebangfix > SHEBANG_FILES= ${WRKSRC}/postgrey > >-OPTIONS_DEFINE= DOCS >-OPTIONS_DEFAULT=DOCS >- > .include <bsd.port.options.mk> > > post-patch: >+ @${REINPLACE_CMD} -e 's#nogroup#${PGY_GROUPNAME}#' ${WRKSRC}/postgrey > @${REINPLACE_CMD} -e 's#/etc/main.cf#/etc/postfix/main.cf#' ${WRKSRC}/postgrey > @${REINPLACE_CMD} -e 's#/etc/postfix#${PREFIX}&#' ${WRKSRC}/postgrey ${WRKSRC}/postgrey_whitelist_* > @${REINPLACE_CMD} -e 's#/var/spool/postfix/postgrey#${PGY_DIR}#' ${WRKSRC}/postgrey ${WRKSRC}/contrib/postgreyreport >--- files/pkg-install.in.orig 2013-05-14 12:10:48.687037566 -0700 >+++ files/pkg-install.in 2013-05-14 12:12:41.785144004 -0700 >@@ -7,15 +7,10 @@ > case $2 in > > PRE-INSTALL) >- echo "---> Starting install script:" >- >- if [ -z "%%POSTGREYDIR%%" -o \ >- -z "%%USER%%" -o -z "%%GROUP%%" -o \ >- -z "%%UID%%" -o -z "%%GID%%" ]; then >+ if [ -z "%%POSTGREYDIR%%" -o -z "%%USER%%" -o -z "%%GROUP%%" ]; then > echo "ERROR: A required pragma was empty" > exit 1 > fi >- > ;; > > POST-INSTALL) >--- files/postgrey.in.orig 2012-07-14 06:54:48.000000000 -0700 >+++ files/postgrey.in 2013-05-14 10:58:09.883124044 -0700 >@@ -7,23 +7,42 @@ > # BEFORE: mail > # KEYWORD: shutdown > >-# > # Add the following lines to /etc/rc.conf to enable postgrey: > # > # postgrey_enable="YES" > # >-# See perldoc postgrey for flags >+# You must specify listening on a TCP socket (--inet option) or >+# unix socket (--unix) in postgrey_flags: >+# >+# postgrey_flags="--inet=PORT" >+# >+# -OR- >+# >+# postgrey_flags="--unix=/path/to/socket" > # >+# By default, postgrey uses /var/db/postgrey for its databases. >+# You can change this location using the postgrey_dbdir option. >+# >+# You can set extra command-line flags in postgrey_flags as well. >+# See the postgrey(1) man page or perldoc postgrey for options. > > . /etc/rc.subr > > name=postgrey >-rcvar=postgrey_enable >+ >+load_rc_config $name >+ >+: ${postgrey_enable:="NO"} >+: ${postgrey_dbdir:="/var/db/postgrey"} >+: ${postgrey_flags:=""} > > command=%%PREFIX%%/sbin/postgrey >-required_dirs=/var/db/postgrey >+pidfile=/var/run/postgrey.pid >+required_dirs=${postgrey_dbdir} > extra_commands=reload > >+postgrey_flags="-d --pidfile=${pidfile} --dbdir=${postgrey_dbdir} ${postgrey_flags}" >+ > stop_postcmd=stop_postcmd > > stop_postcmd() >@@ -31,17 +50,4 @@ > rm -f $pidfile > } > >-# set defaults >- >-load_rc_config $name >- >-postgrey_enable=${postgrey_enable:-"NO"} >-postgrey_greylist_header=${postgrey_greylist_header:-"X-Greylist: delayed %t seconds by postgrey-%v at %h\; %d"} >-postgrey_pidfile=${postgrey_pidfile:-"/var/run/postgrey.pid"} >-postgrey_flags=${postgrey_flags:-"--pidfile=${postgrey_pidfile} \ >- --inet=10023 -d --user=%%USER%% --group=%%GROUP%% --dbdir=/var/db/postgrey \ >- --x-greylist-header=${postgrey_greylist_header}"} >- >-pidfile="${postgrey_pidfile}" >- > run_rc_command "$1"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 178644
: 134060 |
134061
|
134062
|
134063