Add rcNG script to start postfix

Update pkg-message to reflect rcNG script
Bump PORTREVISION

Approved by:	Vivek Khera <vivek@khera.org> (maintainer)
This commit is contained in:
Marcus Alves Grando 2006-01-12 16:23:59 +00:00
parent dde4999407
commit 62d4349118
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=153357
32 changed files with 424 additions and 216 deletions

View File

@ -16,6 +16,7 @@
PORTNAME= postfix
PORTVERSION= 2.2.8
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= mail ipv6
MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/official/ \
@ -36,6 +37,7 @@ CONFLICTS= courier-0.* postfix-1.* postfix-2.0.* postfix-2.1.* postfix-2.3.* \
sendmail-8.* sendmail-*-8.* smail-3.* zmailer-2.*
USE_SUBMAKE= yes
USE_REINPLACE= yes
USE_RC_SUBR= postfix.sh
MAN1= postalias.1 postcat.1 postconf.1 postdrop.1 postfix.1 postkick.1 \
postlock.1 postlog.1 postmap.1 postqueue.1 postsuper.1 sendmail.1
@ -70,6 +72,9 @@ SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" \
MKDIR="${MKDIR}" \
POSTFIX_OPTIONS="${POSTFIX_OPTIONS}"
# Default requirement for postfix rcNG
_REQUIRE= DAEMON
pre-fetch:
@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.postfix
@ -80,7 +85,7 @@ pre-fetch:
.if defined(WITHOUT_PCRE)
POSTFIX_CCARGS+= -DNO_PCRE
.else
LIB_DEPENDS+= pcre.0:${PORTSDIR}/devel/pcre
LIB_DEPENDS+= pcre.0:${PORTSDIR}/devel/pcre
POSTFIX_CCARGS+= -DHAS_PCRE -I${LOCALBASE}/include
POSTFIX_AUXLIBS+= -L${LOCALBASE}/lib -lpcre
.endif
@ -91,6 +96,8 @@ READMEDIR=no
READMEDIR=${PREFIX}/share/doc/postfix
.endif
SUB_LIST+= REQUIRE="${_REQUIRE}"
pre-patch:
@${ECHO} "<HTML><BODY>See <A HREF="header_checks.5.html">header_checks.5.html</A></BODY></HTML>" \
> ${WRKSRC}/html/body_checks.5.html

View File

@ -0,0 +1,35 @@
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: postfix
# REQUIRE: %%REQUIRE%%
# KEYWORD: shutdown
#
# Define these postfix_* variables in one of these files:
# /etc/rc.conf
# /etc/rc.conf.local
# /etc/rc.conf.d/postfix
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
postfix_enable="${postfix_enable-NO}"
. %%RC_SUBR%%
name="postfix"
rcvar=`set_rcvar`
start_cmd=${name}_start
stop_cmd=${name}_stop
postfix_start() {
%%PREFIX%%/sbin/postfix start
}
postfix_stop() {
%%PREFIX%%/sbin/postfix stop
}
load_rc_config ${name}
run_rc_command "$1"

View File

@ -1,35 +1,15 @@
If you have postfix configured in your /etc/mail/mailer.conf (answered yes to
the previous question) and would like to enable postfix to start at boot time,
please set these variables in your /etc/rc.conf file:
To enable postfix rcNG startup script please add postfix_enable="YES" in
your rc.conf
sendmail_enable="YES"
sendmail_flags="-bd"
sendmail_pidfile="/var/spool/postfix/pid/master.pid"
sendmail_procname="/usr/local/libexec/postfix/master"
sendmail_outbound_enable="NO"
sendmail_submit_enable="NO"
sendmail_msp_queue_enable="NO"
This will disable Sendmail completely, and allow you to use /etc/rc.d/sendmail
to start and stop postfix (FreeBSD 5.x and up). For FreeBSD 4.x, it will just
cause the system boot scripts to start sendmail for you.
Alternatively to the above settings, you can enable postfix to start with
the other local services, for example, after your database server starts if
you need it to be running for postfix. To do this, set in your rc.conf file:
If you not need sendmail anymore, please add in your rc.conf:
sendmail_enable="NO"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"
Then make the following symbolic link:
cd /usr/local/etc/rc.d
ln -s /usr/local/sbin/postfix postfix.sh
With either startup configuration, you will want to disable some
Sendmail-specific daily maintenance routines in your /etc/periodic.conf file:
And you can disable some sendmail specific daily maintenance routines in your
/etc/periodic.conf file:
daily_clean_hoststat_enable="NO"
daily_status_mail_rejects_enable="NO"

View File

@ -1,5 +1,5 @@
#!/bin/sh
# $FreeBSD: /tmp/pcvs/ports/mail/postfix/scripts/Attic/configure.postfix,v 1.69 2005-11-30 22:25:35 mnag Exp $
# $FreeBSD: /tmp/pcvs/ports/mail/postfix/scripts/Attic/configure.postfix,v 1.70 2006-01-12 16:23:59 mnag Exp $
if [ -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc ]; then
exit
@ -196,6 +196,7 @@ while [ "$1" ]; do
fi
fi
echo "MYSQL_SUFFIX= +mysql"
echo "_REQUIRE+= mysql"
MYSQL_SELECTED="YES"
;;
PgSQL)
@ -203,12 +204,14 @@ while [ "$1" ]; do
echo "POSTFIX_CCARGS+= -DHAS_PGSQL -I\${LOCALBASE}/include -I\${LOCALBASE}/pgsql/include"
echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -L\${LOCALBASE}/pgsql/lib -lpq -lcrypt"
echo "PGSQL_SUFFIX= +pgsql"
echo "_REQUIRE+= postgresql"
;;
OpenLDAP)
echo "USE_OPENLDAP=YES"
echo "POSTFIX_CCARGS+= -DHAS_LDAP -I\${LOCALBASE}/include"
echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -lldap -llber"
echo "OPENLDAP_SUFFIX= +openldap"
echo "_REQUIRE+= slapd"
echo ".if defined(WITH_OPENLDAP_VER)"
echo "WANT_OPENLDAP_VER=\${WITH_OPENLDAP_VER}"
echo ".endif"
@ -222,6 +225,7 @@ while [ "$1" ]; do
NIS)
echo "POSTFIX_CCARGS+= -DHAS_NIS"
echo "NIS_SUFFIX= +nis"
echo "_REQUIRE+= ypserv"
;;
VDA)
echo "PATCH_SITES+= http://web.onda.com.br/nadal/postfix/VDA/"

View File

@ -16,6 +16,7 @@
PORTNAME= postfix
PORTVERSION= 2.2.8
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= mail ipv6
MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/official/ \
@ -36,6 +37,7 @@ CONFLICTS= courier-0.* postfix-1.* postfix-2.0.* postfix-2.1.* postfix-2.3.* \
sendmail-8.* sendmail-*-8.* smail-3.* zmailer-2.*
USE_SUBMAKE= yes
USE_REINPLACE= yes
USE_RC_SUBR= postfix.sh
MAN1= postalias.1 postcat.1 postconf.1 postdrop.1 postfix.1 postkick.1 \
postlock.1 postlog.1 postmap.1 postqueue.1 postsuper.1 sendmail.1
@ -70,6 +72,9 @@ SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" \
MKDIR="${MKDIR}" \
POSTFIX_OPTIONS="${POSTFIX_OPTIONS}"
# Default requirement for postfix rcNG
_REQUIRE= DAEMON
pre-fetch:
@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.postfix
@ -80,7 +85,7 @@ pre-fetch:
.if defined(WITHOUT_PCRE)
POSTFIX_CCARGS+= -DNO_PCRE
.else
LIB_DEPENDS+= pcre.0:${PORTSDIR}/devel/pcre
LIB_DEPENDS+= pcre.0:${PORTSDIR}/devel/pcre
POSTFIX_CCARGS+= -DHAS_PCRE -I${LOCALBASE}/include
POSTFIX_AUXLIBS+= -L${LOCALBASE}/lib -lpcre
.endif
@ -91,6 +96,8 @@ READMEDIR=no
READMEDIR=${PREFIX}/share/doc/postfix
.endif
SUB_LIST+= REQUIRE="${_REQUIRE}"
pre-patch:
@${ECHO} "<HTML><BODY>See <A HREF="header_checks.5.html">header_checks.5.html</A></BODY></HTML>" \
> ${WRKSRC}/html/body_checks.5.html

View File

@ -0,0 +1,35 @@
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: postfix
# REQUIRE: %%REQUIRE%%
# KEYWORD: shutdown
#
# Define these postfix_* variables in one of these files:
# /etc/rc.conf
# /etc/rc.conf.local
# /etc/rc.conf.d/postfix
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
postfix_enable="${postfix_enable-NO}"
. %%RC_SUBR%%
name="postfix"
rcvar=`set_rcvar`
start_cmd=${name}_start
stop_cmd=${name}_stop
postfix_start() {
%%PREFIX%%/sbin/postfix start
}
postfix_stop() {
%%PREFIX%%/sbin/postfix stop
}
load_rc_config ${name}
run_rc_command "$1"

View File

@ -1,35 +1,15 @@
If you have postfix configured in your /etc/mail/mailer.conf (answered yes to
the previous question) and would like to enable postfix to start at boot time,
please set these variables in your /etc/rc.conf file:
To enable postfix rcNG startup script please add postfix_enable="YES" in
your rc.conf
sendmail_enable="YES"
sendmail_flags="-bd"
sendmail_pidfile="/var/spool/postfix/pid/master.pid"
sendmail_procname="/usr/local/libexec/postfix/master"
sendmail_outbound_enable="NO"
sendmail_submit_enable="NO"
sendmail_msp_queue_enable="NO"
This will disable Sendmail completely, and allow you to use /etc/rc.d/sendmail
to start and stop postfix (FreeBSD 5.x and up). For FreeBSD 4.x, it will just
cause the system boot scripts to start sendmail for you.
Alternatively to the above settings, you can enable postfix to start with
the other local services, for example, after your database server starts if
you need it to be running for postfix. To do this, set in your rc.conf file:
If you not need sendmail anymore, please add in your rc.conf:
sendmail_enable="NO"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"
Then make the following symbolic link:
cd /usr/local/etc/rc.d
ln -s /usr/local/sbin/postfix postfix.sh
With either startup configuration, you will want to disable some
Sendmail-specific daily maintenance routines in your /etc/periodic.conf file:
And you can disable some sendmail specific daily maintenance routines in your
/etc/periodic.conf file:
daily_clean_hoststat_enable="NO"
daily_status_mail_rejects_enable="NO"

View File

@ -1,5 +1,5 @@
#!/bin/sh
# $FreeBSD: /tmp/pcvs/ports/mail/postfix22/scripts/Attic/configure.postfix,v 1.69 2005-11-30 22:25:35 mnag Exp $
# $FreeBSD: /tmp/pcvs/ports/mail/postfix22/scripts/Attic/configure.postfix,v 1.70 2006-01-12 16:23:59 mnag Exp $
if [ -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc ]; then
exit
@ -196,6 +196,7 @@ while [ "$1" ]; do
fi
fi
echo "MYSQL_SUFFIX= +mysql"
echo "_REQUIRE+= mysql"
MYSQL_SELECTED="YES"
;;
PgSQL)
@ -203,12 +204,14 @@ while [ "$1" ]; do
echo "POSTFIX_CCARGS+= -DHAS_PGSQL -I\${LOCALBASE}/include -I\${LOCALBASE}/pgsql/include"
echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -L\${LOCALBASE}/pgsql/lib -lpq -lcrypt"
echo "PGSQL_SUFFIX= +pgsql"
echo "_REQUIRE+= postgresql"
;;
OpenLDAP)
echo "USE_OPENLDAP=YES"
echo "POSTFIX_CCARGS+= -DHAS_LDAP -I\${LOCALBASE}/include"
echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -lldap -llber"
echo "OPENLDAP_SUFFIX= +openldap"
echo "_REQUIRE+= slapd"
echo ".if defined(WITH_OPENLDAP_VER)"
echo "WANT_OPENLDAP_VER=\${WITH_OPENLDAP_VER}"
echo ".endif"
@ -222,6 +225,7 @@ while [ "$1" ]; do
NIS)
echo "POSTFIX_CCARGS+= -DHAS_NIS"
echo "NIS_SUFFIX= +nis"
echo "_REQUIRE+= ypserv"
;;
VDA)
echo "PATCH_SITES+= http://web.onda.com.br/nadal/postfix/VDA/"

View File

@ -16,6 +16,7 @@
PORTNAME= postfix
PORTVERSION= 2.2.8
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= mail ipv6
MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/official/ \
@ -36,6 +37,7 @@ CONFLICTS= courier-0.* postfix-1.* postfix-2.0.* postfix-2.1.* postfix-2.3.* \
sendmail-8.* sendmail-*-8.* smail-3.* zmailer-2.*
USE_SUBMAKE= yes
USE_REINPLACE= yes
USE_RC_SUBR= postfix.sh
MAN1= postalias.1 postcat.1 postconf.1 postdrop.1 postfix.1 postkick.1 \
postlock.1 postlog.1 postmap.1 postqueue.1 postsuper.1 sendmail.1
@ -70,6 +72,9 @@ SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" \
MKDIR="${MKDIR}" \
POSTFIX_OPTIONS="${POSTFIX_OPTIONS}"
# Default requirement for postfix rcNG
_REQUIRE= DAEMON
pre-fetch:
@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.postfix
@ -80,7 +85,7 @@ pre-fetch:
.if defined(WITHOUT_PCRE)
POSTFIX_CCARGS+= -DNO_PCRE
.else
LIB_DEPENDS+= pcre.0:${PORTSDIR}/devel/pcre
LIB_DEPENDS+= pcre.0:${PORTSDIR}/devel/pcre
POSTFIX_CCARGS+= -DHAS_PCRE -I${LOCALBASE}/include
POSTFIX_AUXLIBS+= -L${LOCALBASE}/lib -lpcre
.endif
@ -91,6 +96,8 @@ READMEDIR=no
READMEDIR=${PREFIX}/share/doc/postfix
.endif
SUB_LIST+= REQUIRE="${_REQUIRE}"
pre-patch:
@${ECHO} "<HTML><BODY>See <A HREF="header_checks.5.html">header_checks.5.html</A></BODY></HTML>" \
> ${WRKSRC}/html/body_checks.5.html

View File

@ -0,0 +1,35 @@
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: postfix
# REQUIRE: %%REQUIRE%%
# KEYWORD: shutdown
#
# Define these postfix_* variables in one of these files:
# /etc/rc.conf
# /etc/rc.conf.local
# /etc/rc.conf.d/postfix
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
postfix_enable="${postfix_enable-NO}"
. %%RC_SUBR%%
name="postfix"
rcvar=`set_rcvar`
start_cmd=${name}_start
stop_cmd=${name}_stop
postfix_start() {
%%PREFIX%%/sbin/postfix start
}
postfix_stop() {
%%PREFIX%%/sbin/postfix stop
}
load_rc_config ${name}
run_rc_command "$1"

View File

@ -1,35 +1,15 @@
If you have postfix configured in your /etc/mail/mailer.conf (answered yes to
the previous question) and would like to enable postfix to start at boot time,
please set these variables in your /etc/rc.conf file:
To enable postfix rcNG startup script please add postfix_enable="YES" in
your rc.conf
sendmail_enable="YES"
sendmail_flags="-bd"
sendmail_pidfile="/var/spool/postfix/pid/master.pid"
sendmail_procname="/usr/local/libexec/postfix/master"
sendmail_outbound_enable="NO"
sendmail_submit_enable="NO"
sendmail_msp_queue_enable="NO"
This will disable Sendmail completely, and allow you to use /etc/rc.d/sendmail
to start and stop postfix (FreeBSD 5.x and up). For FreeBSD 4.x, it will just
cause the system boot scripts to start sendmail for you.
Alternatively to the above settings, you can enable postfix to start with
the other local services, for example, after your database server starts if
you need it to be running for postfix. To do this, set in your rc.conf file:
If you not need sendmail anymore, please add in your rc.conf:
sendmail_enable="NO"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"
Then make the following symbolic link:
cd /usr/local/etc/rc.d
ln -s /usr/local/sbin/postfix postfix.sh
With either startup configuration, you will want to disable some
Sendmail-specific daily maintenance routines in your /etc/periodic.conf file:
And you can disable some sendmail specific daily maintenance routines in your
/etc/periodic.conf file:
daily_clean_hoststat_enable="NO"
daily_status_mail_rejects_enable="NO"

View File

@ -1,5 +1,5 @@
#!/bin/sh
# $FreeBSD: /tmp/pcvs/ports/mail/postfix23/scripts/Attic/configure.postfix,v 1.69 2005-11-30 22:25:35 mnag Exp $
# $FreeBSD: /tmp/pcvs/ports/mail/postfix23/scripts/Attic/configure.postfix,v 1.70 2006-01-12 16:23:59 mnag Exp $
if [ -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc ]; then
exit
@ -196,6 +196,7 @@ while [ "$1" ]; do
fi
fi
echo "MYSQL_SUFFIX= +mysql"
echo "_REQUIRE+= mysql"
MYSQL_SELECTED="YES"
;;
PgSQL)
@ -203,12 +204,14 @@ while [ "$1" ]; do
echo "POSTFIX_CCARGS+= -DHAS_PGSQL -I\${LOCALBASE}/include -I\${LOCALBASE}/pgsql/include"
echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -L\${LOCALBASE}/pgsql/lib -lpq -lcrypt"
echo "PGSQL_SUFFIX= +pgsql"
echo "_REQUIRE+= postgresql"
;;
OpenLDAP)
echo "USE_OPENLDAP=YES"
echo "POSTFIX_CCARGS+= -DHAS_LDAP -I\${LOCALBASE}/include"
echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -lldap -llber"
echo "OPENLDAP_SUFFIX= +openldap"
echo "_REQUIRE+= slapd"
echo ".if defined(WITH_OPENLDAP_VER)"
echo "WANT_OPENLDAP_VER=\${WITH_OPENLDAP_VER}"
echo ".endif"
@ -222,6 +225,7 @@ while [ "$1" ]; do
NIS)
echo "POSTFIX_CCARGS+= -DHAS_NIS"
echo "NIS_SUFFIX= +nis"
echo "_REQUIRE+= ypserv"
;;
VDA)
echo "PATCH_SITES+= http://web.onda.com.br/nadal/postfix/VDA/"

View File

@ -16,6 +16,7 @@
PORTNAME= postfix
PORTVERSION= 2.2.8
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= mail ipv6
MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/official/ \
@ -36,6 +37,7 @@ CONFLICTS= courier-0.* postfix-1.* postfix-2.0.* postfix-2.1.* postfix-2.3.* \
sendmail-8.* sendmail-*-8.* smail-3.* zmailer-2.*
USE_SUBMAKE= yes
USE_REINPLACE= yes
USE_RC_SUBR= postfix.sh
MAN1= postalias.1 postcat.1 postconf.1 postdrop.1 postfix.1 postkick.1 \
postlock.1 postlog.1 postmap.1 postqueue.1 postsuper.1 sendmail.1
@ -70,6 +72,9 @@ SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" \
MKDIR="${MKDIR}" \
POSTFIX_OPTIONS="${POSTFIX_OPTIONS}"
# Default requirement for postfix rcNG
_REQUIRE= DAEMON
pre-fetch:
@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.postfix
@ -80,7 +85,7 @@ pre-fetch:
.if defined(WITHOUT_PCRE)
POSTFIX_CCARGS+= -DNO_PCRE
.else
LIB_DEPENDS+= pcre.0:${PORTSDIR}/devel/pcre
LIB_DEPENDS+= pcre.0:${PORTSDIR}/devel/pcre
POSTFIX_CCARGS+= -DHAS_PCRE -I${LOCALBASE}/include
POSTFIX_AUXLIBS+= -L${LOCALBASE}/lib -lpcre
.endif
@ -91,6 +96,8 @@ READMEDIR=no
READMEDIR=${PREFIX}/share/doc/postfix
.endif
SUB_LIST+= REQUIRE="${_REQUIRE}"
pre-patch:
@${ECHO} "<HTML><BODY>See <A HREF="header_checks.5.html">header_checks.5.html</A></BODY></HTML>" \
> ${WRKSRC}/html/body_checks.5.html

View File

@ -0,0 +1,35 @@
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: postfix
# REQUIRE: %%REQUIRE%%
# KEYWORD: shutdown
#
# Define these postfix_* variables in one of these files:
# /etc/rc.conf
# /etc/rc.conf.local
# /etc/rc.conf.d/postfix
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
postfix_enable="${postfix_enable-NO}"
. %%RC_SUBR%%
name="postfix"
rcvar=`set_rcvar`
start_cmd=${name}_start
stop_cmd=${name}_stop
postfix_start() {
%%PREFIX%%/sbin/postfix start
}
postfix_stop() {
%%PREFIX%%/sbin/postfix stop
}
load_rc_config ${name}
run_rc_command "$1"

View File

@ -1,35 +1,15 @@
If you have postfix configured in your /etc/mail/mailer.conf (answered yes to
the previous question) and would like to enable postfix to start at boot time,
please set these variables in your /etc/rc.conf file:
To enable postfix rcNG startup script please add postfix_enable="YES" in
your rc.conf
sendmail_enable="YES"
sendmail_flags="-bd"
sendmail_pidfile="/var/spool/postfix/pid/master.pid"
sendmail_procname="/usr/local/libexec/postfix/master"
sendmail_outbound_enable="NO"
sendmail_submit_enable="NO"
sendmail_msp_queue_enable="NO"
This will disable Sendmail completely, and allow you to use /etc/rc.d/sendmail
to start and stop postfix (FreeBSD 5.x and up). For FreeBSD 4.x, it will just
cause the system boot scripts to start sendmail for you.
Alternatively to the above settings, you can enable postfix to start with
the other local services, for example, after your database server starts if
you need it to be running for postfix. To do this, set in your rc.conf file:
If you not need sendmail anymore, please add in your rc.conf:
sendmail_enable="NO"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"
Then make the following symbolic link:
cd /usr/local/etc/rc.d
ln -s /usr/local/sbin/postfix postfix.sh
With either startup configuration, you will want to disable some
Sendmail-specific daily maintenance routines in your /etc/periodic.conf file:
And you can disable some sendmail specific daily maintenance routines in your
/etc/periodic.conf file:
daily_clean_hoststat_enable="NO"
daily_status_mail_rejects_enable="NO"

View File

@ -1,5 +1,5 @@
#!/bin/sh
# $FreeBSD: /tmp/pcvs/ports/mail/postfix24/scripts/Attic/configure.postfix,v 1.69 2005-11-30 22:25:35 mnag Exp $
# $FreeBSD: /tmp/pcvs/ports/mail/postfix24/scripts/Attic/configure.postfix,v 1.70 2006-01-12 16:23:59 mnag Exp $
if [ -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc ]; then
exit
@ -196,6 +196,7 @@ while [ "$1" ]; do
fi
fi
echo "MYSQL_SUFFIX= +mysql"
echo "_REQUIRE+= mysql"
MYSQL_SELECTED="YES"
;;
PgSQL)
@ -203,12 +204,14 @@ while [ "$1" ]; do
echo "POSTFIX_CCARGS+= -DHAS_PGSQL -I\${LOCALBASE}/include -I\${LOCALBASE}/pgsql/include"
echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -L\${LOCALBASE}/pgsql/lib -lpq -lcrypt"
echo "PGSQL_SUFFIX= +pgsql"
echo "_REQUIRE+= postgresql"
;;
OpenLDAP)
echo "USE_OPENLDAP=YES"
echo "POSTFIX_CCARGS+= -DHAS_LDAP -I\${LOCALBASE}/include"
echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -lldap -llber"
echo "OPENLDAP_SUFFIX= +openldap"
echo "_REQUIRE+= slapd"
echo ".if defined(WITH_OPENLDAP_VER)"
echo "WANT_OPENLDAP_VER=\${WITH_OPENLDAP_VER}"
echo ".endif"
@ -222,6 +225,7 @@ while [ "$1" ]; do
NIS)
echo "POSTFIX_CCARGS+= -DHAS_NIS"
echo "NIS_SUFFIX= +nis"
echo "_REQUIRE+= ypserv"
;;
VDA)
echo "PATCH_SITES+= http://web.onda.com.br/nadal/postfix/VDA/"

View File

@ -16,6 +16,7 @@
PORTNAME= postfix
PORTVERSION= 2.2.8
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= mail ipv6
MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/official/ \
@ -36,6 +37,7 @@ CONFLICTS= courier-0.* postfix-1.* postfix-2.0.* postfix-2.1.* postfix-2.3.* \
sendmail-8.* sendmail-*-8.* smail-3.* zmailer-2.*
USE_SUBMAKE= yes
USE_REINPLACE= yes
USE_RC_SUBR= postfix.sh
MAN1= postalias.1 postcat.1 postconf.1 postdrop.1 postfix.1 postkick.1 \
postlock.1 postlog.1 postmap.1 postqueue.1 postsuper.1 sendmail.1
@ -70,6 +72,9 @@ SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" \
MKDIR="${MKDIR}" \
POSTFIX_OPTIONS="${POSTFIX_OPTIONS}"
# Default requirement for postfix rcNG
_REQUIRE= DAEMON
pre-fetch:
@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.postfix
@ -80,7 +85,7 @@ pre-fetch:
.if defined(WITHOUT_PCRE)
POSTFIX_CCARGS+= -DNO_PCRE
.else
LIB_DEPENDS+= pcre.0:${PORTSDIR}/devel/pcre
LIB_DEPENDS+= pcre.0:${PORTSDIR}/devel/pcre
POSTFIX_CCARGS+= -DHAS_PCRE -I${LOCALBASE}/include
POSTFIX_AUXLIBS+= -L${LOCALBASE}/lib -lpcre
.endif
@ -91,6 +96,8 @@ READMEDIR=no
READMEDIR=${PREFIX}/share/doc/postfix
.endif
SUB_LIST+= REQUIRE="${_REQUIRE}"
pre-patch:
@${ECHO} "<HTML><BODY>See <A HREF="header_checks.5.html">header_checks.5.html</A></BODY></HTML>" \
> ${WRKSRC}/html/body_checks.5.html

View File

@ -0,0 +1,35 @@
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: postfix
# REQUIRE: %%REQUIRE%%
# KEYWORD: shutdown
#
# Define these postfix_* variables in one of these files:
# /etc/rc.conf
# /etc/rc.conf.local
# /etc/rc.conf.d/postfix
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
postfix_enable="${postfix_enable-NO}"
. %%RC_SUBR%%
name="postfix"
rcvar=`set_rcvar`
start_cmd=${name}_start
stop_cmd=${name}_stop
postfix_start() {
%%PREFIX%%/sbin/postfix start
}
postfix_stop() {
%%PREFIX%%/sbin/postfix stop
}
load_rc_config ${name}
run_rc_command "$1"

View File

@ -1,35 +1,15 @@
If you have postfix configured in your /etc/mail/mailer.conf (answered yes to
the previous question) and would like to enable postfix to start at boot time,
please set these variables in your /etc/rc.conf file:
To enable postfix rcNG startup script please add postfix_enable="YES" in
your rc.conf
sendmail_enable="YES"
sendmail_flags="-bd"
sendmail_pidfile="/var/spool/postfix/pid/master.pid"
sendmail_procname="/usr/local/libexec/postfix/master"
sendmail_outbound_enable="NO"
sendmail_submit_enable="NO"
sendmail_msp_queue_enable="NO"
This will disable Sendmail completely, and allow you to use /etc/rc.d/sendmail
to start and stop postfix (FreeBSD 5.x and up). For FreeBSD 4.x, it will just
cause the system boot scripts to start sendmail for you.
Alternatively to the above settings, you can enable postfix to start with
the other local services, for example, after your database server starts if
you need it to be running for postfix. To do this, set in your rc.conf file:
If you not need sendmail anymore, please add in your rc.conf:
sendmail_enable="NO"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"
Then make the following symbolic link:
cd /usr/local/etc/rc.d
ln -s /usr/local/sbin/postfix postfix.sh
With either startup configuration, you will want to disable some
Sendmail-specific daily maintenance routines in your /etc/periodic.conf file:
And you can disable some sendmail specific daily maintenance routines in your
/etc/periodic.conf file:
daily_clean_hoststat_enable="NO"
daily_status_mail_rejects_enable="NO"

View File

@ -1,5 +1,5 @@
#!/bin/sh
# $FreeBSD: /tmp/pcvs/ports/mail/postfix25/scripts/Attic/configure.postfix,v 1.69 2005-11-30 22:25:35 mnag Exp $
# $FreeBSD: /tmp/pcvs/ports/mail/postfix25/scripts/Attic/configure.postfix,v 1.70 2006-01-12 16:23:59 mnag Exp $
if [ -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc ]; then
exit
@ -196,6 +196,7 @@ while [ "$1" ]; do
fi
fi
echo "MYSQL_SUFFIX= +mysql"
echo "_REQUIRE+= mysql"
MYSQL_SELECTED="YES"
;;
PgSQL)
@ -203,12 +204,14 @@ while [ "$1" ]; do
echo "POSTFIX_CCARGS+= -DHAS_PGSQL -I\${LOCALBASE}/include -I\${LOCALBASE}/pgsql/include"
echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -L\${LOCALBASE}/pgsql/lib -lpq -lcrypt"
echo "PGSQL_SUFFIX= +pgsql"
echo "_REQUIRE+= postgresql"
;;
OpenLDAP)
echo "USE_OPENLDAP=YES"
echo "POSTFIX_CCARGS+= -DHAS_LDAP -I\${LOCALBASE}/include"
echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -lldap -llber"
echo "OPENLDAP_SUFFIX= +openldap"
echo "_REQUIRE+= slapd"
echo ".if defined(WITH_OPENLDAP_VER)"
echo "WANT_OPENLDAP_VER=\${WITH_OPENLDAP_VER}"
echo ".endif"
@ -222,6 +225,7 @@ while [ "$1" ]; do
NIS)
echo "POSTFIX_CCARGS+= -DHAS_NIS"
echo "NIS_SUFFIX= +nis"
echo "_REQUIRE+= ypserv"
;;
VDA)
echo "PATCH_SITES+= http://web.onda.com.br/nadal/postfix/VDA/"

View File

@ -16,6 +16,7 @@
PORTNAME= postfix
PORTVERSION= 2.2.8
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= mail ipv6
MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/official/ \
@ -36,6 +37,7 @@ CONFLICTS= courier-0.* postfix-1.* postfix-2.0.* postfix-2.1.* postfix-2.3.* \
sendmail-8.* sendmail-*-8.* smail-3.* zmailer-2.*
USE_SUBMAKE= yes
USE_REINPLACE= yes
USE_RC_SUBR= postfix.sh
MAN1= postalias.1 postcat.1 postconf.1 postdrop.1 postfix.1 postkick.1 \
postlock.1 postlog.1 postmap.1 postqueue.1 postsuper.1 sendmail.1
@ -70,6 +72,9 @@ SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" \
MKDIR="${MKDIR}" \
POSTFIX_OPTIONS="${POSTFIX_OPTIONS}"
# Default requirement for postfix rcNG
_REQUIRE= DAEMON
pre-fetch:
@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.postfix
@ -80,7 +85,7 @@ pre-fetch:
.if defined(WITHOUT_PCRE)
POSTFIX_CCARGS+= -DNO_PCRE
.else
LIB_DEPENDS+= pcre.0:${PORTSDIR}/devel/pcre
LIB_DEPENDS+= pcre.0:${PORTSDIR}/devel/pcre
POSTFIX_CCARGS+= -DHAS_PCRE -I${LOCALBASE}/include
POSTFIX_AUXLIBS+= -L${LOCALBASE}/lib -lpcre
.endif
@ -91,6 +96,8 @@ READMEDIR=no
READMEDIR=${PREFIX}/share/doc/postfix
.endif
SUB_LIST+= REQUIRE="${_REQUIRE}"
pre-patch:
@${ECHO} "<HTML><BODY>See <A HREF="header_checks.5.html">header_checks.5.html</A></BODY></HTML>" \
> ${WRKSRC}/html/body_checks.5.html

View File

@ -0,0 +1,35 @@
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: postfix
# REQUIRE: %%REQUIRE%%
# KEYWORD: shutdown
#
# Define these postfix_* variables in one of these files:
# /etc/rc.conf
# /etc/rc.conf.local
# /etc/rc.conf.d/postfix
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
postfix_enable="${postfix_enable-NO}"
. %%RC_SUBR%%
name="postfix"
rcvar=`set_rcvar`
start_cmd=${name}_start
stop_cmd=${name}_stop
postfix_start() {
%%PREFIX%%/sbin/postfix start
}
postfix_stop() {
%%PREFIX%%/sbin/postfix stop
}
load_rc_config ${name}
run_rc_command "$1"

View File

@ -1,35 +1,15 @@
If you have postfix configured in your /etc/mail/mailer.conf (answered yes to
the previous question) and would like to enable postfix to start at boot time,
please set these variables in your /etc/rc.conf file:
To enable postfix rcNG startup script please add postfix_enable="YES" in
your rc.conf
sendmail_enable="YES"
sendmail_flags="-bd"
sendmail_pidfile="/var/spool/postfix/pid/master.pid"
sendmail_procname="/usr/local/libexec/postfix/master"
sendmail_outbound_enable="NO"
sendmail_submit_enable="NO"
sendmail_msp_queue_enable="NO"
This will disable Sendmail completely, and allow you to use /etc/rc.d/sendmail
to start and stop postfix (FreeBSD 5.x and up). For FreeBSD 4.x, it will just
cause the system boot scripts to start sendmail for you.
Alternatively to the above settings, you can enable postfix to start with
the other local services, for example, after your database server starts if
you need it to be running for postfix. To do this, set in your rc.conf file:
If you not need sendmail anymore, please add in your rc.conf:
sendmail_enable="NO"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"
Then make the following symbolic link:
cd /usr/local/etc/rc.d
ln -s /usr/local/sbin/postfix postfix.sh
With either startup configuration, you will want to disable some
Sendmail-specific daily maintenance routines in your /etc/periodic.conf file:
And you can disable some sendmail specific daily maintenance routines in your
/etc/periodic.conf file:
daily_clean_hoststat_enable="NO"
daily_status_mail_rejects_enable="NO"

View File

@ -1,5 +1,5 @@
#!/bin/sh
# $FreeBSD: /tmp/pcvs/ports/mail/postfix26/scripts/Attic/configure.postfix,v 1.69 2005-11-30 22:25:35 mnag Exp $
# $FreeBSD: /tmp/pcvs/ports/mail/postfix26/scripts/Attic/configure.postfix,v 1.70 2006-01-12 16:23:59 mnag Exp $
if [ -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc ]; then
exit
@ -196,6 +196,7 @@ while [ "$1" ]; do
fi
fi
echo "MYSQL_SUFFIX= +mysql"
echo "_REQUIRE+= mysql"
MYSQL_SELECTED="YES"
;;
PgSQL)
@ -203,12 +204,14 @@ while [ "$1" ]; do
echo "POSTFIX_CCARGS+= -DHAS_PGSQL -I\${LOCALBASE}/include -I\${LOCALBASE}/pgsql/include"
echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -L\${LOCALBASE}/pgsql/lib -lpq -lcrypt"
echo "PGSQL_SUFFIX= +pgsql"
echo "_REQUIRE+= postgresql"
;;
OpenLDAP)
echo "USE_OPENLDAP=YES"
echo "POSTFIX_CCARGS+= -DHAS_LDAP -I\${LOCALBASE}/include"
echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -lldap -llber"
echo "OPENLDAP_SUFFIX= +openldap"
echo "_REQUIRE+= slapd"
echo ".if defined(WITH_OPENLDAP_VER)"
echo "WANT_OPENLDAP_VER=\${WITH_OPENLDAP_VER}"
echo ".endif"
@ -222,6 +225,7 @@ while [ "$1" ]; do
NIS)
echo "POSTFIX_CCARGS+= -DHAS_NIS"
echo "NIS_SUFFIX= +nis"
echo "_REQUIRE+= ypserv"
;;
VDA)
echo "PATCH_SITES+= http://web.onda.com.br/nadal/postfix/VDA/"

View File

@ -16,6 +16,7 @@
PORTNAME= postfix
PORTVERSION= 2.2.8
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= mail ipv6
MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/official/ \
@ -36,6 +37,7 @@ CONFLICTS= courier-0.* postfix-1.* postfix-2.0.* postfix-2.1.* postfix-2.3.* \
sendmail-8.* sendmail-*-8.* smail-3.* zmailer-2.*
USE_SUBMAKE= yes
USE_REINPLACE= yes
USE_RC_SUBR= postfix.sh
MAN1= postalias.1 postcat.1 postconf.1 postdrop.1 postfix.1 postkick.1 \
postlock.1 postlog.1 postmap.1 postqueue.1 postsuper.1 sendmail.1
@ -70,6 +72,9 @@ SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" \
MKDIR="${MKDIR}" \
POSTFIX_OPTIONS="${POSTFIX_OPTIONS}"
# Default requirement for postfix rcNG
_REQUIRE= DAEMON
pre-fetch:
@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.postfix
@ -80,7 +85,7 @@ pre-fetch:
.if defined(WITHOUT_PCRE)
POSTFIX_CCARGS+= -DNO_PCRE
.else
LIB_DEPENDS+= pcre.0:${PORTSDIR}/devel/pcre
LIB_DEPENDS+= pcre.0:${PORTSDIR}/devel/pcre
POSTFIX_CCARGS+= -DHAS_PCRE -I${LOCALBASE}/include
POSTFIX_AUXLIBS+= -L${LOCALBASE}/lib -lpcre
.endif
@ -91,6 +96,8 @@ READMEDIR=no
READMEDIR=${PREFIX}/share/doc/postfix
.endif
SUB_LIST+= REQUIRE="${_REQUIRE}"
pre-patch:
@${ECHO} "<HTML><BODY>See <A HREF="header_checks.5.html">header_checks.5.html</A></BODY></HTML>" \
> ${WRKSRC}/html/body_checks.5.html

View File

@ -0,0 +1,35 @@
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: postfix
# REQUIRE: %%REQUIRE%%
# KEYWORD: shutdown
#
# Define these postfix_* variables in one of these files:
# /etc/rc.conf
# /etc/rc.conf.local
# /etc/rc.conf.d/postfix
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
postfix_enable="${postfix_enable-NO}"
. %%RC_SUBR%%
name="postfix"
rcvar=`set_rcvar`
start_cmd=${name}_start
stop_cmd=${name}_stop
postfix_start() {
%%PREFIX%%/sbin/postfix start
}
postfix_stop() {
%%PREFIX%%/sbin/postfix stop
}
load_rc_config ${name}
run_rc_command "$1"

View File

@ -1,35 +1,15 @@
If you have postfix configured in your /etc/mail/mailer.conf (answered yes to
the previous question) and would like to enable postfix to start at boot time,
please set these variables in your /etc/rc.conf file:
To enable postfix rcNG startup script please add postfix_enable="YES" in
your rc.conf
sendmail_enable="YES"
sendmail_flags="-bd"
sendmail_pidfile="/var/spool/postfix/pid/master.pid"
sendmail_procname="/usr/local/libexec/postfix/master"
sendmail_outbound_enable="NO"
sendmail_submit_enable="NO"
sendmail_msp_queue_enable="NO"
This will disable Sendmail completely, and allow you to use /etc/rc.d/sendmail
to start and stop postfix (FreeBSD 5.x and up). For FreeBSD 4.x, it will just
cause the system boot scripts to start sendmail for you.
Alternatively to the above settings, you can enable postfix to start with
the other local services, for example, after your database server starts if
you need it to be running for postfix. To do this, set in your rc.conf file:
If you not need sendmail anymore, please add in your rc.conf:
sendmail_enable="NO"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"
Then make the following symbolic link:
cd /usr/local/etc/rc.d
ln -s /usr/local/sbin/postfix postfix.sh
With either startup configuration, you will want to disable some
Sendmail-specific daily maintenance routines in your /etc/periodic.conf file:
And you can disable some sendmail specific daily maintenance routines in your
/etc/periodic.conf file:
daily_clean_hoststat_enable="NO"
daily_status_mail_rejects_enable="NO"

View File

@ -1,5 +1,5 @@
#!/bin/sh
# $FreeBSD: /tmp/pcvs/ports/mail/postfix27/scripts/Attic/configure.postfix,v 1.69 2005-11-30 22:25:35 mnag Exp $
# $FreeBSD: /tmp/pcvs/ports/mail/postfix27/scripts/Attic/configure.postfix,v 1.70 2006-01-12 16:23:59 mnag Exp $
if [ -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc ]; then
exit
@ -196,6 +196,7 @@ while [ "$1" ]; do
fi
fi
echo "MYSQL_SUFFIX= +mysql"
echo "_REQUIRE+= mysql"
MYSQL_SELECTED="YES"
;;
PgSQL)
@ -203,12 +204,14 @@ while [ "$1" ]; do
echo "POSTFIX_CCARGS+= -DHAS_PGSQL -I\${LOCALBASE}/include -I\${LOCALBASE}/pgsql/include"
echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -L\${LOCALBASE}/pgsql/lib -lpq -lcrypt"
echo "PGSQL_SUFFIX= +pgsql"
echo "_REQUIRE+= postgresql"
;;
OpenLDAP)
echo "USE_OPENLDAP=YES"
echo "POSTFIX_CCARGS+= -DHAS_LDAP -I\${LOCALBASE}/include"
echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -lldap -llber"
echo "OPENLDAP_SUFFIX= +openldap"
echo "_REQUIRE+= slapd"
echo ".if defined(WITH_OPENLDAP_VER)"
echo "WANT_OPENLDAP_VER=\${WITH_OPENLDAP_VER}"
echo ".endif"
@ -222,6 +225,7 @@ while [ "$1" ]; do
NIS)
echo "POSTFIX_CCARGS+= -DHAS_NIS"
echo "NIS_SUFFIX= +nis"
echo "_REQUIRE+= ypserv"
;;
VDA)
echo "PATCH_SITES+= http://web.onda.com.br/nadal/postfix/VDA/"

View File

@ -16,6 +16,7 @@
PORTNAME= postfix
PORTVERSION= 2.2.8
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= mail ipv6
MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/official/ \
@ -36,6 +37,7 @@ CONFLICTS= courier-0.* postfix-1.* postfix-2.0.* postfix-2.1.* postfix-2.3.* \
sendmail-8.* sendmail-*-8.* smail-3.* zmailer-2.*
USE_SUBMAKE= yes
USE_REINPLACE= yes
USE_RC_SUBR= postfix.sh
MAN1= postalias.1 postcat.1 postconf.1 postdrop.1 postfix.1 postkick.1 \
postlock.1 postlog.1 postmap.1 postqueue.1 postsuper.1 sendmail.1
@ -70,6 +72,9 @@ SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" \
MKDIR="${MKDIR}" \
POSTFIX_OPTIONS="${POSTFIX_OPTIONS}"
# Default requirement for postfix rcNG
_REQUIRE= DAEMON
pre-fetch:
@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.postfix
@ -80,7 +85,7 @@ pre-fetch:
.if defined(WITHOUT_PCRE)
POSTFIX_CCARGS+= -DNO_PCRE
.else
LIB_DEPENDS+= pcre.0:${PORTSDIR}/devel/pcre
LIB_DEPENDS+= pcre.0:${PORTSDIR}/devel/pcre
POSTFIX_CCARGS+= -DHAS_PCRE -I${LOCALBASE}/include
POSTFIX_AUXLIBS+= -L${LOCALBASE}/lib -lpcre
.endif
@ -91,6 +96,8 @@ READMEDIR=no
READMEDIR=${PREFIX}/share/doc/postfix
.endif
SUB_LIST+= REQUIRE="${_REQUIRE}"
pre-patch:
@${ECHO} "<HTML><BODY>See <A HREF="header_checks.5.html">header_checks.5.html</A></BODY></HTML>" \
> ${WRKSRC}/html/body_checks.5.html

View File

@ -0,0 +1,35 @@
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: postfix
# REQUIRE: %%REQUIRE%%
# KEYWORD: shutdown
#
# Define these postfix_* variables in one of these files:
# /etc/rc.conf
# /etc/rc.conf.local
# /etc/rc.conf.d/postfix
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
postfix_enable="${postfix_enable-NO}"
. %%RC_SUBR%%
name="postfix"
rcvar=`set_rcvar`
start_cmd=${name}_start
stop_cmd=${name}_stop
postfix_start() {
%%PREFIX%%/sbin/postfix start
}
postfix_stop() {
%%PREFIX%%/sbin/postfix stop
}
load_rc_config ${name}
run_rc_command "$1"

View File

@ -1,35 +1,15 @@
If you have postfix configured in your /etc/mail/mailer.conf (answered yes to
the previous question) and would like to enable postfix to start at boot time,
please set these variables in your /etc/rc.conf file:
To enable postfix rcNG startup script please add postfix_enable="YES" in
your rc.conf
sendmail_enable="YES"
sendmail_flags="-bd"
sendmail_pidfile="/var/spool/postfix/pid/master.pid"
sendmail_procname="/usr/local/libexec/postfix/master"
sendmail_outbound_enable="NO"
sendmail_submit_enable="NO"
sendmail_msp_queue_enable="NO"
This will disable Sendmail completely, and allow you to use /etc/rc.d/sendmail
to start and stop postfix (FreeBSD 5.x and up). For FreeBSD 4.x, it will just
cause the system boot scripts to start sendmail for you.
Alternatively to the above settings, you can enable postfix to start with
the other local services, for example, after your database server starts if
you need it to be running for postfix. To do this, set in your rc.conf file:
If you not need sendmail anymore, please add in your rc.conf:
sendmail_enable="NO"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"
Then make the following symbolic link:
cd /usr/local/etc/rc.d
ln -s /usr/local/sbin/postfix postfix.sh
With either startup configuration, you will want to disable some
Sendmail-specific daily maintenance routines in your /etc/periodic.conf file:
And you can disable some sendmail specific daily maintenance routines in your
/etc/periodic.conf file:
daily_clean_hoststat_enable="NO"
daily_status_mail_rejects_enable="NO"

View File

@ -1,5 +1,5 @@
#!/bin/sh
# $FreeBSD: /tmp/pcvs/ports/mail/postfix28/scripts/Attic/configure.postfix,v 1.69 2005-11-30 22:25:35 mnag Exp $
# $FreeBSD: /tmp/pcvs/ports/mail/postfix28/scripts/Attic/configure.postfix,v 1.70 2006-01-12 16:23:59 mnag Exp $
if [ -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc ]; then
exit
@ -196,6 +196,7 @@ while [ "$1" ]; do
fi
fi
echo "MYSQL_SUFFIX= +mysql"
echo "_REQUIRE+= mysql"
MYSQL_SELECTED="YES"
;;
PgSQL)
@ -203,12 +204,14 @@ while [ "$1" ]; do
echo "POSTFIX_CCARGS+= -DHAS_PGSQL -I\${LOCALBASE}/include -I\${LOCALBASE}/pgsql/include"
echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -L\${LOCALBASE}/pgsql/lib -lpq -lcrypt"
echo "PGSQL_SUFFIX= +pgsql"
echo "_REQUIRE+= postgresql"
;;
OpenLDAP)
echo "USE_OPENLDAP=YES"
echo "POSTFIX_CCARGS+= -DHAS_LDAP -I\${LOCALBASE}/include"
echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -lldap -llber"
echo "OPENLDAP_SUFFIX= +openldap"
echo "_REQUIRE+= slapd"
echo ".if defined(WITH_OPENLDAP_VER)"
echo "WANT_OPENLDAP_VER=\${WITH_OPENLDAP_VER}"
echo ".endif"
@ -222,6 +225,7 @@ while [ "$1" ]; do
NIS)
echo "POSTFIX_CCARGS+= -DHAS_NIS"
echo "NIS_SUFFIX= +nis"
echo "_REQUIRE+= ypserv"
;;
VDA)
echo "PATCH_SITES+= http://web.onda.com.br/nadal/postfix/VDA/"