Remove support for OSVERSION < 5
This commit is contained in:
parent
c0b3ecac44
commit
bdd556264e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=200760
18 changed files with 125 additions and 296 deletions
|
@ -257,12 +257,6 @@ CONFIGURE_ARGS+=--with-ipv6
|
|||
CONFIGURE_ARGS+=--without-ipv6
|
||||
.endif
|
||||
|
||||
.if ${OSVERSION} < 500000
|
||||
EXTRA_PATCHES+= ${FILESDIR}/extrapatch-maildir__maildirfilter.c \
|
||||
${FILESDIR}/extrapatch-webmail__folder.c \
|
||||
${FILESDIR}/extrapatch-webmail__newmsg.c
|
||||
.endif
|
||||
|
||||
pre-everything::
|
||||
@${ECHO_MSG} "===> --------------------------------------------------------"
|
||||
@${ECHO_MSG} "===> Run 'make config' to (re)configure ${PKGNAME}"
|
||||
|
|
|
@ -66,7 +66,7 @@ CONFIGURE_ARGS+= --without-ssl
|
|||
|
||||
## IPv6 support
|
||||
#
|
||||
.if defined(WITHOUT_IPV6) || ${OSVERSION} <= 400014
|
||||
.if defined(WITHOUT_IPV6)
|
||||
CONFIGURE_ARGS+= --disable-ipv6
|
||||
.endif
|
||||
|
||||
|
|
|
@ -66,7 +66,7 @@ CONFIGURE_ARGS+= --without-ssl
|
|||
|
||||
## IPv6 support
|
||||
#
|
||||
.if defined(WITHOUT_IPV6) || ${OSVERSION} <= 400014
|
||||
.if defined(WITHOUT_IPV6)
|
||||
CONFIGURE_ARGS+= --disable-ipv6
|
||||
.endif
|
||||
|
||||
|
|
|
@ -551,10 +551,6 @@ PLIST_SUB+= DAEMON="@comment "
|
|||
.error EXIMON_ONLY is not user settable
|
||||
.endif
|
||||
|
||||
.if ${OSVERSION} < 400014
|
||||
WITHOUT_IPV6= yes
|
||||
.endif
|
||||
|
||||
.if !defined(WITHOUT_IPV6)
|
||||
SEDLIST+= -e 's,^\# (HAVE_IPV6=),\1,'
|
||||
.endif
|
||||
|
|
|
@ -11,24 +11,15 @@ CATEGORIES= mail
|
|||
MASTER_SITES= http://www.listmanager.org/v${PORTVERSION}/ \
|
||||
http://www.listmanager.org/
|
||||
DISTNAME= ${PORTNAME}
|
||||
DIST_SUBDIR= ${PORTNAME}
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} >= 500000
|
||||
LIB_DEPENDS+= c.4:${PORTSDIR}/misc/compat4x
|
||||
.endif
|
||||
|
||||
.if ${OSVERSION} >= 440000
|
||||
EXTRACT_SUFX= .freebsd44
|
||||
.else
|
||||
EXTRACT_SUFX= .freebsd35
|
||||
.endif
|
||||
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} INSTALL help.tar.gz listmanager.8 ack
|
||||
DIST_SUBDIR= ${PORTNAME}
|
||||
|
||||
MAINTAINER= gshapiro@FreeBSD.org
|
||||
COMMENT= Fully-featured mailing list manager
|
||||
|
||||
LIB_DEPENDS= c.4:${PORTSDIR}/misc/compat4x
|
||||
|
||||
EXTRACT_CMD= ${CP}
|
||||
EXTRACT_BEFORE_ARGS=
|
||||
EXTRACT_AFTER_ARGS= ${WRKDIR}
|
||||
|
@ -44,10 +35,10 @@ pre-patch:
|
|||
(cd ${WRKSRC} && ${TAR} xfz help.tar.gz)
|
||||
|
||||
post-patch:
|
||||
@ for file in listmanager.cf pkg-message setup; do \
|
||||
@ for f in listmanager.cf pkg-message setup; do \
|
||||
${SED} -e "s|@@VARPREFIX@@|${LISTMANAGER_HOME}|g" \
|
||||
-e "s|@@INSPREFIX@@|${PREFIX}|g" \
|
||||
< ${FILESDIR}/$$file.in > ${WRKSRC}/$$file; \
|
||||
< ${FILESDIR}/$$f.in > ${WRKSRC}/$$f; \
|
||||
done
|
||||
|
||||
do-install:
|
||||
|
@ -65,4 +56,4 @@ do-install:
|
|||
post-install:
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -295,7 +295,7 @@ USE_ICONV= yes
|
|||
XML_USED= no
|
||||
.endif
|
||||
.if defined(MUTT_USES_NCURSES)
|
||||
.if ${OSVERSION} < 400000 || defined(WITH_MUTT_NCURSES_PORT)
|
||||
.if defined(WITH_MUTT_NCURSES_PORT)
|
||||
MUTT_USES_NCURSES_PORT= yes
|
||||
.endif
|
||||
.endif
|
||||
|
|
|
@ -152,29 +152,15 @@ replace() {
|
|||
}
|
||||
|
||||
if [ x"$2" = xPOST-INSTALL -a -z "${PACKAGE_BUILDING}" ]; then
|
||||
if [ -x /sbin/sysctl ]; then
|
||||
OSVERSION=`/sbin/sysctl -n kern.osreldate`
|
||||
else
|
||||
OSVERSION=`/usr/sbin/sysctl -n kern.osreldate`
|
||||
fi
|
||||
if [ ${OSVERSION} -ge 400014 ]; then
|
||||
if yesno "Would you like to activate Postfix in /etc/mail/mailer.conf" ${DEFAULT_REPLACE_MAILERCONF}; then
|
||||
/bin/mv -f /etc/mail/mailer.conf /etc/mail/mailer.conf.old
|
||||
echo "#" > /etc/mail/mailer.conf
|
||||
echo -n "# Execute the Postfix sendmail program" >> /etc/mail/mailer.conf
|
||||
echo ", named ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "#" >> /etc/mail/mailer.conf
|
||||
echo "sendmail ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "send-mail ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "mailq ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "newaliases ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
fi
|
||||
else
|
||||
if yesno "Would you like to replace {sendmail,mailq,newaliases} with Postfix versions" n; then
|
||||
replace /usr/sbin/sendmail ${PKG_PREFIX}/sbin/sendmail
|
||||
replace /usr/bin/mailq ${PKG_PREFIX}/sbin/sendmail
|
||||
replace /usr/bin/newaliases ${PKG_PREFIX}/sbin/sendmail
|
||||
echo "Done."
|
||||
fi
|
||||
if yesno "Would you like to activate Postfix in /etc/mail/mailer.conf" ${DEFAULT_REPLACE_MAILERCONF}; then
|
||||
/bin/mv -f /etc/mail/mailer.conf /etc/mail/mailer.conf.old
|
||||
echo "#" > /etc/mail/mailer.conf
|
||||
echo -n "# Execute the Postfix sendmail program" >> /etc/mail/mailer.conf
|
||||
echo ", named ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "#" >> /etc/mail/mailer.conf
|
||||
echo "sendmail ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "send-mail ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "mailq ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "newaliases ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
fi
|
||||
fi
|
||||
|
|
|
@ -152,29 +152,16 @@ replace() {
|
|||
}
|
||||
|
||||
if [ x"$2" = xPOST-INSTALL -a -z "${PACKAGE_BUILDING}" ]; then
|
||||
if [ -x /sbin/sysctl ]; then
|
||||
OSVERSION=`/sbin/sysctl -n kern.osreldate`
|
||||
else
|
||||
OSVERSION=`/usr/sbin/sysctl -n kern.osreldate`
|
||||
fi
|
||||
if [ ${OSVERSION} -ge 400014 ]; then
|
||||
if yesno "Would you like to activate Postfix in /etc/mail/mailer.conf" ${DEFAULT_REPLACE_MAILERCONF}; then
|
||||
/bin/mv -f /etc/mail/mailer.conf /etc/mail/mailer.conf.old
|
||||
echo "#" > /etc/mail/mailer.conf
|
||||
echo -n "# Execute the Postfix sendmail program" >> /etc/mail/mailer.conf
|
||||
echo ", named ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "#" >> /etc/mail/mailer.conf
|
||||
echo "sendmail ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "send-mail ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "mailq ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "newaliases ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
fi
|
||||
else
|
||||
if yesno "Would you like to replace {sendmail,mailq,newaliases} with Postfix versions" n; then
|
||||
replace /usr/sbin/sendmail ${PKG_PREFIX}/sbin/sendmail
|
||||
replace /usr/bin/mailq ${PKG_PREFIX}/sbin/sendmail
|
||||
replace /usr/bin/newaliases ${PKG_PREFIX}/sbin/sendmail
|
||||
echo "Done."
|
||||
fi
|
||||
if yesno "Would you like to activate Postfix in /etc/mail/mailer.conf" ${DEFAULT_REPLACE_MAILERCONF}; then
|
||||
/bin/mv -f /etc/mail/mailer.conf /etc/mail/mailer.conf.old
|
||||
echo "#" > /etc/mail/mailer.conf
|
||||
echo -n "# Execute the Postfix sendmail program" >> /etc/mail/mailer.conf
|
||||
echo ", named ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "#" >> /etc/mail/mailer.conf
|
||||
echo "sendmail ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "send-mail ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "mailq ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "newaliases ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
|
|
@ -141,29 +141,15 @@ replace() {
|
|||
}
|
||||
|
||||
if [ x"$2" = xPOST-INSTALL -a -z "${PACKAGE_BUILDING}" ]; then
|
||||
if [ -x /sbin/sysctl ]; then
|
||||
OSVERSION=`/sbin/sysctl -n kern.osreldate`
|
||||
else
|
||||
OSVERSION=`/usr/sbin/sysctl -n kern.osreldate`
|
||||
fi
|
||||
if [ ${OSVERSION} -ge 400014 ]; then
|
||||
if yesno "Would you like to activate Postfix in /etc/mail/mailer.conf" n; then
|
||||
mv -f /etc/mail/mailer.conf /etc/mail/mailer.conf.old
|
||||
echo "#" > /etc/mail/mailer.conf
|
||||
echo -n "# Execute the Postfix sendmail program" >> /etc/mail/mailer.conf
|
||||
echo ", named ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "#" >> /etc/mail/mailer.conf
|
||||
echo "sendmail ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "send-mail ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "mailq ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "newaliases ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
fi
|
||||
else
|
||||
if yesno "Would you like to replace {sendmail,mailq,newaliases} with Postfix versions" n; then
|
||||
replace /usr/sbin/sendmail ${PKG_PREFIX}/sbin/sendmail
|
||||
replace /usr/bin/mailq ${PKG_PREFIX}/sbin/sendmail
|
||||
replace /usr/bin/newaliases ${PKG_PREFIX}/sbin/sendmail
|
||||
echo "Done."
|
||||
fi
|
||||
if yesno "Would you like to activate Postfix in /etc/mail/mailer.conf" n; then
|
||||
mv -f /etc/mail/mailer.conf /etc/mail/mailer.conf.old
|
||||
echo "#" > /etc/mail/mailer.conf
|
||||
echo -n "# Execute the Postfix sendmail program" >> /etc/mail/mailer.conf
|
||||
echo ", named ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "#" >> /etc/mail/mailer.conf
|
||||
echo "sendmail ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "send-mail ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "mailq ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "newaliases ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
fi
|
||||
fi
|
||||
|
|
|
@ -155,29 +155,15 @@ replace() {
|
|||
}
|
||||
|
||||
if [ x"$2" = xPOST-INSTALL -a -z "${PACKAGE_BUILDING}" ]; then
|
||||
if [ -x /sbin/sysctl ]; then
|
||||
OSVERSION=`/sbin/sysctl -n kern.osreldate`
|
||||
else
|
||||
OSVERSION=`/usr/sbin/sysctl -n kern.osreldate`
|
||||
fi
|
||||
if [ ${OSVERSION} -ge 400014 ]; then
|
||||
if yesno "Would you like to activate Postfix in /etc/mail/mailer.conf" ${DEFAULT_REPLACE_MAILERCONF}; then
|
||||
mv -f /etc/mail/mailer.conf /etc/mail/mailer.conf.old
|
||||
echo "#" > /etc/mail/mailer.conf
|
||||
echo -n "# Execute the Postfix sendmail program" >> /etc/mail/mailer.conf
|
||||
echo ", named ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "#" >> /etc/mail/mailer.conf
|
||||
echo "sendmail ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "send-mail ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "mailq ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "newaliases ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
fi
|
||||
else
|
||||
if yesno "Would you like to replace {sendmail,mailq,newaliases} with Postfix versions" n; then
|
||||
replace /usr/sbin/sendmail ${PKG_PREFIX}/sbin/sendmail
|
||||
replace /usr/bin/mailq ${PKG_PREFIX}/sbin/sendmail
|
||||
replace /usr/bin/newaliases ${PKG_PREFIX}/sbin/sendmail
|
||||
echo "Done."
|
||||
fi
|
||||
if yesno "Would you like to activate Postfix in /etc/mail/mailer.conf" ${DEFAULT_REPLACE_MAILERCONF}; then
|
||||
mv -f /etc/mail/mailer.conf /etc/mail/mailer.conf.old
|
||||
echo "#" > /etc/mail/mailer.conf
|
||||
echo -n "# Execute the Postfix sendmail program" >> /etc/mail/mailer.conf
|
||||
echo ", named ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "#" >> /etc/mail/mailer.conf
|
||||
echo "sendmail ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "send-mail ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "mailq ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "newaliases ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
fi
|
||||
fi
|
||||
|
|
|
@ -153,29 +153,15 @@ replace() {
|
|||
}
|
||||
|
||||
if [ x"$2" = xPOST-INSTALL -a -z "${PACKAGE_BUILDING}" ]; then
|
||||
if [ -x /sbin/sysctl ]; then
|
||||
OSVERSION=`/sbin/sysctl -n kern.osreldate`
|
||||
else
|
||||
OSVERSION=`/usr/sbin/sysctl -n kern.osreldate`
|
||||
fi
|
||||
if [ ${OSVERSION} -ge 400014 ]; then
|
||||
if yesno "Would you like to activate Postfix in /etc/mail/mailer.conf" ${DEFAULT_REPLACE_MAILERCONF}; then
|
||||
mv -f /etc/mail/mailer.conf /etc/mail/mailer.conf.old
|
||||
echo "#" > /etc/mail/mailer.conf
|
||||
echo -n "# Execute the Postfix sendmail program" >> /etc/mail/mailer.conf
|
||||
echo ", named ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "#" >> /etc/mail/mailer.conf
|
||||
echo "sendmail ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "send-mail ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "mailq ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "newaliases ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
fi
|
||||
else
|
||||
if yesno "Would you like to replace {sendmail,mailq,newaliases} with Postfix versions" n; then
|
||||
replace /usr/sbin/sendmail ${PKG_PREFIX}/sbin/sendmail
|
||||
replace /usr/bin/mailq ${PKG_PREFIX}/sbin/sendmail
|
||||
replace /usr/bin/newaliases ${PKG_PREFIX}/sbin/sendmail
|
||||
echo "Done."
|
||||
fi
|
||||
if yesno "Would you like to activate Postfix in /etc/mail/mailer.conf" ${DEFAULT_REPLACE_MAILERCONF}; then
|
||||
mv -f /etc/mail/mailer.conf /etc/mail/mailer.conf.old
|
||||
echo "#" > /etc/mail/mailer.conf
|
||||
echo -n "# Execute the Postfix sendmail program" >> /etc/mail/mailer.conf
|
||||
echo ", named ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "#" >> /etc/mail/mailer.conf
|
||||
echo "sendmail ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "send-mail ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "mailq ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "newaliases ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
fi
|
||||
fi
|
||||
|
|
|
@ -152,29 +152,15 @@ replace() {
|
|||
}
|
||||
|
||||
if [ x"$2" = xPOST-INSTALL -a -z "${PACKAGE_BUILDING}" ]; then
|
||||
if [ -x /sbin/sysctl ]; then
|
||||
OSVERSION=`/sbin/sysctl -n kern.osreldate`
|
||||
else
|
||||
OSVERSION=`/usr/sbin/sysctl -n kern.osreldate`
|
||||
fi
|
||||
if [ ${OSVERSION} -ge 400014 ]; then
|
||||
if yesno "Would you like to activate Postfix in /etc/mail/mailer.conf" ${DEFAULT_REPLACE_MAILERCONF}; then
|
||||
/bin/mv -f /etc/mail/mailer.conf /etc/mail/mailer.conf.old
|
||||
echo "#" > /etc/mail/mailer.conf
|
||||
echo -n "# Execute the Postfix sendmail program" >> /etc/mail/mailer.conf
|
||||
echo ", named ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "#" >> /etc/mail/mailer.conf
|
||||
echo "sendmail ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "send-mail ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "mailq ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "newaliases ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
fi
|
||||
else
|
||||
if yesno "Would you like to replace {sendmail,mailq,newaliases} with Postfix versions" n; then
|
||||
replace /usr/sbin/sendmail ${PKG_PREFIX}/sbin/sendmail
|
||||
replace /usr/bin/mailq ${PKG_PREFIX}/sbin/sendmail
|
||||
replace /usr/bin/newaliases ${PKG_PREFIX}/sbin/sendmail
|
||||
echo "Done."
|
||||
fi
|
||||
if yesno "Would you like to activate Postfix in /etc/mail/mailer.conf" ${DEFAULT_REPLACE_MAILERCONF}; then
|
||||
/bin/mv -f /etc/mail/mailer.conf /etc/mail/mailer.conf.old
|
||||
echo "#" > /etc/mail/mailer.conf
|
||||
echo -n "# Execute the Postfix sendmail program" >> /etc/mail/mailer.conf
|
||||
echo ", named ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "#" >> /etc/mail/mailer.conf
|
||||
echo "sendmail ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "send-mail ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "mailq ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "newaliases ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
fi
|
||||
fi
|
||||
|
|
|
@ -152,29 +152,16 @@ replace() {
|
|||
}
|
||||
|
||||
if [ x"$2" = xPOST-INSTALL -a -z "${PACKAGE_BUILDING}" ]; then
|
||||
if [ -x /sbin/sysctl ]; then
|
||||
OSVERSION=`/sbin/sysctl -n kern.osreldate`
|
||||
else
|
||||
OSVERSION=`/usr/sbin/sysctl -n kern.osreldate`
|
||||
fi
|
||||
if [ ${OSVERSION} -ge 400014 ]; then
|
||||
if yesno "Would you like to activate Postfix in /etc/mail/mailer.conf" ${DEFAULT_REPLACE_MAILERCONF}; then
|
||||
/bin/mv -f /etc/mail/mailer.conf /etc/mail/mailer.conf.old
|
||||
echo "#" > /etc/mail/mailer.conf
|
||||
echo -n "# Execute the Postfix sendmail program" >> /etc/mail/mailer.conf
|
||||
echo ", named ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "#" >> /etc/mail/mailer.conf
|
||||
echo "sendmail ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "send-mail ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "mailq ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "newaliases ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
fi
|
||||
else
|
||||
if yesno "Would you like to replace {sendmail,mailq,newaliases} with Postfix versions" n; then
|
||||
replace /usr/sbin/sendmail ${PKG_PREFIX}/sbin/sendmail
|
||||
replace /usr/bin/mailq ${PKG_PREFIX}/sbin/sendmail
|
||||
replace /usr/bin/newaliases ${PKG_PREFIX}/sbin/sendmail
|
||||
echo "Done."
|
||||
fi
|
||||
if yesno "Would you like to activate Postfix in /etc/mail/mailer.conf" ${DEFAULT_REPLACE_MAILERCONF}; then
|
||||
/bin/mv -f /etc/mail/mailer.conf /etc/mail/mailer.conf.old
|
||||
echo "#" > /etc/mail/mailer.conf
|
||||
echo -n "# Execute the Postfix sendmail program" >> /etc/mail/mailer.conf
|
||||
echo ", named ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "#" >> /etc/mail/mailer.conf
|
||||
echo "sendmail ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "send-mail ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "mailq ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "newaliases ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
|
|
@ -152,29 +152,16 @@ replace() {
|
|||
}
|
||||
|
||||
if [ x"$2" = xPOST-INSTALL -a -z "${PACKAGE_BUILDING}" ]; then
|
||||
if [ -x /sbin/sysctl ]; then
|
||||
OSVERSION=`/sbin/sysctl -n kern.osreldate`
|
||||
else
|
||||
OSVERSION=`/usr/sbin/sysctl -n kern.osreldate`
|
||||
fi
|
||||
if [ ${OSVERSION} -ge 400014 ]; then
|
||||
if yesno "Would you like to activate Postfix in /etc/mail/mailer.conf" ${DEFAULT_REPLACE_MAILERCONF}; then
|
||||
/bin/mv -f /etc/mail/mailer.conf /etc/mail/mailer.conf.old
|
||||
echo "#" > /etc/mail/mailer.conf
|
||||
echo -n "# Execute the Postfix sendmail program" >> /etc/mail/mailer.conf
|
||||
echo ", named ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "#" >> /etc/mail/mailer.conf
|
||||
echo "sendmail ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "send-mail ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "mailq ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "newaliases ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
fi
|
||||
else
|
||||
if yesno "Would you like to replace {sendmail,mailq,newaliases} with Postfix versions" n; then
|
||||
replace /usr/sbin/sendmail ${PKG_PREFIX}/sbin/sendmail
|
||||
replace /usr/bin/mailq ${PKG_PREFIX}/sbin/sendmail
|
||||
replace /usr/bin/newaliases ${PKG_PREFIX}/sbin/sendmail
|
||||
echo "Done."
|
||||
fi
|
||||
if yesno "Would you like to activate Postfix in /etc/mail/mailer.conf" ${DEFAULT_REPLACE_MAILERCONF}; then
|
||||
/bin/mv -f /etc/mail/mailer.conf /etc/mail/mailer.conf.old
|
||||
echo "#" > /etc/mail/mailer.conf
|
||||
echo -n "# Execute the Postfix sendmail program" >> /etc/mail/mailer.conf
|
||||
echo ", named ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "#" >> /etc/mail/mailer.conf
|
||||
echo "sendmail ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "send-mail ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "mailq ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "newaliases ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
|
|
@ -152,29 +152,16 @@ replace() {
|
|||
}
|
||||
|
||||
if [ x"$2" = xPOST-INSTALL -a -z "${PACKAGE_BUILDING}" ]; then
|
||||
if [ -x /sbin/sysctl ]; then
|
||||
OSVERSION=`/sbin/sysctl -n kern.osreldate`
|
||||
else
|
||||
OSVERSION=`/usr/sbin/sysctl -n kern.osreldate`
|
||||
fi
|
||||
if [ ${OSVERSION} -ge 400014 ]; then
|
||||
if yesno "Would you like to activate Postfix in /etc/mail/mailer.conf" ${DEFAULT_REPLACE_MAILERCONF}; then
|
||||
/bin/mv -f /etc/mail/mailer.conf /etc/mail/mailer.conf.old
|
||||
echo "#" > /etc/mail/mailer.conf
|
||||
echo -n "# Execute the Postfix sendmail program" >> /etc/mail/mailer.conf
|
||||
echo ", named ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "#" >> /etc/mail/mailer.conf
|
||||
echo "sendmail ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "send-mail ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "mailq ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "newaliases ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
fi
|
||||
else
|
||||
if yesno "Would you like to replace {sendmail,mailq,newaliases} with Postfix versions" n; then
|
||||
replace /usr/sbin/sendmail ${PKG_PREFIX}/sbin/sendmail
|
||||
replace /usr/bin/mailq ${PKG_PREFIX}/sbin/sendmail
|
||||
replace /usr/bin/newaliases ${PKG_PREFIX}/sbin/sendmail
|
||||
echo "Done."
|
||||
fi
|
||||
if yesno "Would you like to activate Postfix in /etc/mail/mailer.conf" ${DEFAULT_REPLACE_MAILERCONF}; then
|
||||
/bin/mv -f /etc/mail/mailer.conf /etc/mail/mailer.conf.old
|
||||
echo "#" > /etc/mail/mailer.conf
|
||||
echo -n "# Execute the Postfix sendmail program" >> /etc/mail/mailer.conf
|
||||
echo ", named ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "#" >> /etc/mail/mailer.conf
|
||||
echo "sendmail ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "send-mail ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "mailq ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "newaliases ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
|
|
@ -152,29 +152,16 @@ replace() {
|
|||
}
|
||||
|
||||
if [ x"$2" = xPOST-INSTALL -a -z "${PACKAGE_BUILDING}" ]; then
|
||||
if [ -x /sbin/sysctl ]; then
|
||||
OSVERSION=`/sbin/sysctl -n kern.osreldate`
|
||||
else
|
||||
OSVERSION=`/usr/sbin/sysctl -n kern.osreldate`
|
||||
fi
|
||||
if [ ${OSVERSION} -ge 400014 ]; then
|
||||
if yesno "Would you like to activate Postfix in /etc/mail/mailer.conf" ${DEFAULT_REPLACE_MAILERCONF}; then
|
||||
/bin/mv -f /etc/mail/mailer.conf /etc/mail/mailer.conf.old
|
||||
echo "#" > /etc/mail/mailer.conf
|
||||
echo -n "# Execute the Postfix sendmail program" >> /etc/mail/mailer.conf
|
||||
echo ", named ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "#" >> /etc/mail/mailer.conf
|
||||
echo "sendmail ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "send-mail ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "mailq ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "newaliases ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
fi
|
||||
else
|
||||
if yesno "Would you like to replace {sendmail,mailq,newaliases} with Postfix versions" n; then
|
||||
replace /usr/sbin/sendmail ${PKG_PREFIX}/sbin/sendmail
|
||||
replace /usr/bin/mailq ${PKG_PREFIX}/sbin/sendmail
|
||||
replace /usr/bin/newaliases ${PKG_PREFIX}/sbin/sendmail
|
||||
echo "Done."
|
||||
fi
|
||||
if yesno "Would you like to activate Postfix in /etc/mail/mailer.conf" ${DEFAULT_REPLACE_MAILERCONF}; then
|
||||
/bin/mv -f /etc/mail/mailer.conf /etc/mail/mailer.conf.old
|
||||
echo "#" > /etc/mail/mailer.conf
|
||||
echo -n "# Execute the Postfix sendmail program" >> /etc/mail/mailer.conf
|
||||
echo ", named ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "#" >> /etc/mail/mailer.conf
|
||||
echo "sendmail ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "send-mail ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "mailq ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "newaliases ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
|
|
@ -152,29 +152,16 @@ replace() {
|
|||
}
|
||||
|
||||
if [ x"$2" = xPOST-INSTALL -a -z "${PACKAGE_BUILDING}" ]; then
|
||||
if [ -x /sbin/sysctl ]; then
|
||||
OSVERSION=`/sbin/sysctl -n kern.osreldate`
|
||||
else
|
||||
OSVERSION=`/usr/sbin/sysctl -n kern.osreldate`
|
||||
fi
|
||||
if [ ${OSVERSION} -ge 400014 ]; then
|
||||
if yesno "Would you like to activate Postfix in /etc/mail/mailer.conf" ${DEFAULT_REPLACE_MAILERCONF}; then
|
||||
/bin/mv -f /etc/mail/mailer.conf /etc/mail/mailer.conf.old
|
||||
echo "#" > /etc/mail/mailer.conf
|
||||
echo -n "# Execute the Postfix sendmail program" >> /etc/mail/mailer.conf
|
||||
echo ", named ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "#" >> /etc/mail/mailer.conf
|
||||
echo "sendmail ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "send-mail ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "mailq ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "newaliases ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
fi
|
||||
else
|
||||
if yesno "Would you like to replace {sendmail,mailq,newaliases} with Postfix versions" n; then
|
||||
replace /usr/sbin/sendmail ${PKG_PREFIX}/sbin/sendmail
|
||||
replace /usr/bin/mailq ${PKG_PREFIX}/sbin/sendmail
|
||||
replace /usr/bin/newaliases ${PKG_PREFIX}/sbin/sendmail
|
||||
echo "Done."
|
||||
fi
|
||||
if yesno "Would you like to activate Postfix in /etc/mail/mailer.conf" ${DEFAULT_REPLACE_MAILERCONF}; then
|
||||
/bin/mv -f /etc/mail/mailer.conf /etc/mail/mailer.conf.old
|
||||
echo "#" > /etc/mail/mailer.conf
|
||||
echo -n "# Execute the Postfix sendmail program" >> /etc/mail/mailer.conf
|
||||
echo ", named ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "#" >> /etc/mail/mailer.conf
|
||||
echo "sendmail ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "send-mail ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "mailq ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
echo "newaliases ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
|
|
@ -60,10 +60,6 @@ OPTIONS= APOP_ONLY "build with APOP authentication only" off \
|
|||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} < 400014
|
||||
WITHOUT_IPV6= yes
|
||||
.endif
|
||||
|
||||
.if !defined(WITHOUT_IPV6)
|
||||
PATCH_SITES= http://www.imasy.or.jp/~ume/ipv6/
|
||||
PATCHFILES= qpopper4.0.9-ipv6-20060626.diff.gz
|
||||
|
|
Loading…
Reference in a new issue