1999-08-30 03:17:27 +00:00
|
|
|
# New ports collection makefile for: zmailer
|
|
|
|
# Date created: 4 January 1999
|
|
|
|
# Whom: Alex Perel <veers@disturbed.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-13 20:01:08 +00:00
|
|
|
PORTNAME= zmailer
|
|
|
|
PORTVERSION= 2.99.51
|
1999-08-30 03:17:27 +00:00
|
|
|
CATEGORIES= mail
|
|
|
|
MASTER_SITES= ftp://ftp.funet.fi/pub/unix/mail/zmailer/src/
|
|
|
|
|
|
|
|
MAINTAINER= veers@disturbed.net
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
2000-02-22 06:30:12 +00:00
|
|
|
|
2000-04-17 00:19:02 +00:00
|
|
|
.if defined(WITH_SSL)
|
2000-09-22 01:59:06 +00:00
|
|
|
USE_OPENSSL= YES
|
2000-02-22 06:30:12 +00:00
|
|
|
CONFIGURE_ARGS= --with-openssl
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS= --without-openssl
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --prefix=${PREFIX}/ \
|
1999-08-30 03:17:27 +00:00
|
|
|
--with-bundled-libresolv \
|
|
|
|
--with-mailbin=${PREFIX}/sbin \
|
|
|
|
--with-mailbox=/var/mail \
|
|
|
|
--with-logdir=/var/log/mail \
|
|
|
|
--with-zconfig=${PREFIX}/etc/zmailer/zmailer.conf \
|
|
|
|
--with-zmailer=${PREFIX}/etc/zmailer/zmailer.conf \
|
|
|
|
--with-system-malloc \
|
|
|
|
--with-sendmailpath=${PREFIX}/sbin/sendmail \
|
|
|
|
--with-rmailpath=${PREFIX}/sbin/rmail \
|
|
|
|
--with-mailshare=${PREFIX}/etc/zmailer \
|
|
|
|
--with-mailvar=${PREFIX}/etc/zmailer \
|
|
|
|
--with-postoffice=/var/spool/postoffice \
|
|
|
|
--with-vacationpath=${PREFIX}/bin/vacation \
|
|
|
|
--includedir=${PREFIX}/include \
|
|
|
|
--libdir=${PREFIX}/lib \
|
|
|
|
--with-ta-mmap
|
|
|
|
|
|
|
|
MAN1= rmail.1 vacation.1 zmailer.1 zmsh.1 mboxpath.1 ssl.1 mailq.1 \
|
|
|
|
mailrm.1 newaliases.1
|
|
|
|
MAN3= zmailer.3
|
|
|
|
MAN5= aliases.5
|
|
|
|
MAN8= hold.8 router.8 scheduler.8 sendmail.8 sm.8 smtp.8 \
|
|
|
|
smtpserver.8 mprobe.8 expirer.8 errormail.8 mailbox.8 \
|
|
|
|
manual-expirer.8
|
|
|
|
|
|
|
|
# local variable
|
|
|
|
# this pipe is run before bsd.port.mk is brought in - therefore it is
|
|
|
|
# not possible to use ${SED}
|
|
|
|
DOMAIN!= /bin/hostname | /usr/bin/sed -e "s:^"`/bin/hostname -s`\.*::g
|
|
|
|
.if (${DOMAIN} == "")
|
|
|
|
DOMAIN= "mydomain.com"
|
|
|
|
.endif
|
|
|
|
PKGMESSAGE= ${WRKDIR}/MESSAGE
|
|
|
|
|
|
|
|
post-configure:
|
|
|
|
${SED} -e s:@PREFIX@:${PREFIX}:g -e s:@PORTSDIR@:${PORTSDIR}:g \
|
2000-10-08 10:23:48 +00:00
|
|
|
${PKGDIR}/pkg-message > ${PKGMESSAGE}
|
1999-08-30 03:17:27 +00:00
|
|
|
|
|
|
|
post-install:
|
2000-07-05 12:37:06 +00:00
|
|
|
@${INSTALL_SCRIPT} ${FILESDIR}/zmailer.sh.sample \
|
|
|
|
${PREFIX}/etc/rc.d/zmailer.sh.sample
|
1999-08-30 03:17:27 +00:00
|
|
|
|
|
|
|
${CAT} ${PKGMESSAGE} | ${SED} -e s:@PREFIX@:${PREFIX}:g \
|
|
|
|
-e s:@PORTSDIR@:${PORTSDIR}:g
|
|
|
|
|
|
|
|
# set up the initial mail.conf with reasonable settings.
|
|
|
|
@${ECHO} "# Where am I?" > ${PREFIX}/etc/zmailer/mail.conf.sample
|
|
|
|
@${ECHO} "orgdomain="${DOMAIN} >> ${PREFIX}/etc/zmailer/mail.conf.sample
|
|
|
|
@${ECHO} "# Who am I?" >> ${PREFIX}/etc/zmailer/mail.conf.sample
|
|
|
|
@${ECHO} "hostname="`/bin/hostname -s`'.$$orgdomain' >> ${PREFIX}/etc/zmailer/mail.conf.sample
|
|
|
|
@${ECHO} "# Who do I claim to be?" >> ${PREFIX}/etc/zmailer/mail.conf.sample
|
|
|
|
@${ECHO} 'mydomain=$$orgdomain' >> ${PREFIX}/etc/zmailer/mail.conf.sample
|
|
|
|
|
2000-07-05 12:37:06 +00:00
|
|
|
# obtained directly from ports/mail/postfix
|
1999-08-30 03:17:27 +00:00
|
|
|
# with minor hacks by the originator of this port <veers@disturbed.net>
|
|
|
|
replace:
|
|
|
|
@${ECHO_MSG} "===> Replacing sendmail"
|
|
|
|
@if [ -e /usr/sbin/sendmail ]; then \
|
|
|
|
${MV} -f /usr/sbin/sendmail /usr/sbin/sendmail.OFF; \
|
|
|
|
${CHMOD} 0 /usr/sbin/sendmail.OFF; \
|
|
|
|
fi
|
|
|
|
@if [ -e ${PREFIX}/sbin/sendmail ]; then \
|
|
|
|
${LN} -s ${PREFIX}/sbin/sendmail /usr/sbin/sendmail; \
|
|
|
|
fi
|
|
|
|
@${ECHO_MSG} "===> Replacing mailq"
|
|
|
|
@if [ -e /usr/bin/mailq ]; then \
|
|
|
|
${MV} -f /usr/bin/mailq /usr/bin/mailq.OFF; \
|
|
|
|
${CHMOD} 0 /usr/bin/mailq.OFF; \
|
|
|
|
fi
|
|
|
|
@if [ -e ${PREFIX}/sbin/mailq ]; then \
|
|
|
|
${LN} -s ${PREFIX}/sbin/mailq /usr/bin/mailq; \
|
|
|
|
fi
|
|
|
|
@${ECHO_MSG} "===> Replacing newaliases"
|
|
|
|
@if [ -e /usr/bin/newaliases ]; then \
|
|
|
|
${MV} -f /usr/bin/newaliases /usr/bin/newaliases.OFF; \
|
|
|
|
${CHMOD} 0 /usr/bin/newaliases.OFF; \
|
|
|
|
fi
|
|
|
|
@if [ -e ${PREFIX}/sbin/newaliases ]; then \
|
|
|
|
${LN} -s ${PREFIX}/sbin/newaliases /usr/bin/newaliases; \
|
|
|
|
fi
|
|
|
|
@${ECHO_MSG} "===> Replacing rmail"
|
|
|
|
@if [ -e /bin/rmail ]; then \
|
|
|
|
${MV} -f /bin/rmail /bin/rmail.OFF; \
|
|
|
|
${CHMOD} 0 /bin/rmail.OFF; \
|
|
|
|
fi
|
|
|
|
@if [ -e ${PREFIX}/sbin/rmail ]; then \
|
|
|
|
${LN} -s ${PREFIX}/sbin/rmail /bin/rmail; \
|
|
|
|
fi
|
|
|
|
|
2000-02-22 06:30:12 +00:00
|
|
|
.include <bsd.port.post.mk>
|