1999-03-29 20:15:09 +00:00
|
|
|
# New ports collection makefile for: postfix
|
1999-08-04 13:53:00 +00:00
|
|
|
# Version required: 19990601
|
1999-03-29 20:15:09 +00:00
|
|
|
# Date created: 18 Mar 1999
|
|
|
|
# Whom: torstenb
|
|
|
|
#
|
1999-08-25 06:51:17 +00:00
|
|
|
# $FreeBSD$
|
1999-03-29 20:15:09 +00:00
|
|
|
#
|
|
|
|
|
1999-12-30 20:54:22 +00:00
|
|
|
DISTNAME= postfix-19990906-pl09
|
|
|
|
PKGNAME= postfix-19990906.09
|
1999-03-29 20:15:09 +00:00
|
|
|
CATEGORIES= mail
|
1999-08-04 13:53:00 +00:00
|
|
|
MASTER_SITES= ftp://ftp.merit.edu/postfix/official/ \
|
|
|
|
ftp://ftp.snoopy.net/pub/mirrors/postfix/official/ \
|
|
|
|
ftp://ftp.reverse.net/pub/postfix/official/ \
|
|
|
|
ftp://postfix.eu.org/pub/postfix/official/ \
|
|
|
|
ftp://ftp.sunet.se/pub/unix/mail/postfix/official/ \
|
|
|
|
ftp://ftp.cs.tu-berlin.de/pub/net/mail/postfix/official/ \
|
|
|
|
ftp://ftp.postfix.oaktree.co.uk/pub/postfix/official/
|
1999-03-29 20:15:09 +00:00
|
|
|
|
1999-08-31 06:53:31 +00:00
|
|
|
MAINTAINER= torstenb@FreeBSD.org
|
1999-03-29 20:15:09 +00:00
|
|
|
|
1999-08-04 13:53:00 +00:00
|
|
|
ALL_TARGET= default
|
1999-03-29 20:15:09 +00:00
|
|
|
|
|
|
|
SCRIPTS_ENV+= MAN1="${MAN1}" MAN5="${MAN5}" MAN8="${MAN8}"
|
1999-08-04 13:53:00 +00:00
|
|
|
MAKE_ENV+= "OPT=${CFLAGS}"
|
1999-03-29 20:15:09 +00:00
|
|
|
|
|
|
|
MAN1= mailq.1 newaliases.1 postalias.1 postcat.1 postconf.1 postdrop.1 \
|
|
|
|
postfix.1 postkick.1 postlock.1 postlog.1 postmap.1 postsuper.1 \
|
|
|
|
sendmail.1
|
|
|
|
MAN5= access.5 aliases.5 canonical.5 relocated.5 transport.5 virtual.5
|
|
|
|
MAN8= bounce.8 cleanup.8 defer.8 local.8 master.8 pickup.8 pipe.8 qmgr.8 \
|
1999-08-04 13:53:00 +00:00
|
|
|
showq.8 smtp.8 smtpd.8 trivial-rewrite.8 error.8
|
1999-03-29 20:15:09 +00:00
|
|
|
|
1999-05-02 20:26:38 +00:00
|
|
|
SHAREMODE= 0644
|
|
|
|
|
1999-03-29 20:15:09 +00:00
|
|
|
do-install:
|
1999-05-02 20:26:38 +00:00
|
|
|
@${MKDIR} -m 755 ${PREFIX}/etc/postfix
|
1999-08-22 19:01:07 +00:00
|
|
|
@${CHOWN} root:wheel ${PREFIX}/etc/postfix
|
1999-05-02 20:26:38 +00:00
|
|
|
@${INSTALL} -C -o root -g wheel -m 0644 ${WRKSRC}/conf/LICENSE \
|
1999-03-29 20:15:09 +00:00
|
|
|
${PREFIX}/etc/postfix/LICENSE
|
|
|
|
@for f in access main.cf master.cf ; do \
|
1999-05-02 20:26:38 +00:00
|
|
|
${INSTALL} -C -o root -g wheel -m 0644 ${WRKSRC}/conf/$$f \
|
1999-03-29 20:15:09 +00:00
|
|
|
${PREFIX}/etc/postfix/sample-$$f ; \
|
|
|
|
done
|
|
|
|
@exit
|
|
|
|
@for f in sample-aliases.cf sample-canonical.cf sample-debug.cf \
|
|
|
|
sample-ldap.cf sample-local.cf sample-misc.cf sample-pcre.cf \
|
|
|
|
sample-rate.cf sample-relocated.cf sample-resource.cf \
|
|
|
|
sample-rewrite.cf sample-smtp.cf sample-smtpd.cf \
|
|
|
|
sample-transport.cf sample-virtual.cf ; do \
|
1999-05-02 20:26:38 +00:00
|
|
|
${INSTALL} -C -o root -g wheel -m 0644 ${WRKSRC}/conf/$$f \
|
1999-03-29 20:15:09 +00:00
|
|
|
${PREFIX}/etc/postfix/$$f ;\
|
|
|
|
done
|
1999-05-02 20:26:38 +00:00
|
|
|
@${INSTALL} -C -o root -g wheel -m 755 ${WRKSRC}/conf/postfix-script-sgid \
|
1999-03-29 20:15:09 +00:00
|
|
|
${PREFIX}/etc/postfix/postfix-script
|
1999-08-22 23:33:47 +00:00
|
|
|
@${MKDIR} -m 0755 ${PREFIX}/libexec/postfix
|
1999-09-10 20:41:45 +00:00
|
|
|
@for f in bounce cleanup error local master pickup pipe qmgr \
|
1999-08-04 13:53:00 +00:00
|
|
|
showq smtp smtpd trivial-rewrite ; do \
|
1999-09-10 21:48:58 +00:00
|
|
|
${INSTALL} -C -o root -g wheel -m 0755 -s \
|
|
|
|
${WRKSRC}/libexec/$$f ${PREFIX}/libexec/postfix/$$f ;\
|
1999-03-29 20:15:09 +00:00
|
|
|
done
|
1999-08-04 13:53:00 +00:00
|
|
|
@for f in postalias postcat postconf postdrop postfix postkick \
|
|
|
|
postlock postlog postmap postsuper sendmail smtp-sink \
|
|
|
|
smtp-source ; do \
|
1999-09-10 21:48:58 +00:00
|
|
|
${INSTALL} -C -o root -g wheel -m 0755 -s ${WRKSRC}/bin/$$f \
|
1999-03-29 20:15:09 +00:00
|
|
|
${PREFIX}/sbin/$$f ;\
|
|
|
|
done
|
|
|
|
@for f in ${MAN1} ; do \
|
1999-05-02 20:26:38 +00:00
|
|
|
${INSTALL} -C -o root -g wheel -m 0755 ${WRKSRC}/man/man1/$$f \
|
1999-03-29 20:15:09 +00:00
|
|
|
${PREFIX}/man/man1/$$f ;\
|
|
|
|
done
|
|
|
|
@for f in ${MAN5} ; do \
|
1999-05-02 20:26:38 +00:00
|
|
|
${INSTALL} -C -o root -g wheel -m 0755 ${WRKSRC}/man/man5/$$f \
|
1999-03-29 20:15:09 +00:00
|
|
|
${PREFIX}/man/man5/$$f ;\
|
|
|
|
done
|
|
|
|
@for f in ${MAN8} ; do \
|
1999-05-02 20:26:38 +00:00
|
|
|
${INSTALL} -C -o root -g wheel -m 0755 ${WRKSRC}/man/man8/$$f \
|
1999-03-29 20:15:09 +00:00
|
|
|
${PREFIX}/man/man8/$$f ;\
|
|
|
|
done
|
1999-08-22 23:33:47 +00:00
|
|
|
@${MKDIR} -m 0755 /var/spool/postfix
|
1999-03-29 20:15:09 +00:00
|
|
|
@if [ ! -e ${PREFIX}/etc/postfix/main.cf ]; then \
|
|
|
|
${CP} -p ${PREFIX}/etc/postfix/sample-main.cf \
|
|
|
|
${PREFIX}/etc/postfix/main.cf; \
|
|
|
|
fi
|
|
|
|
@if [ ! -e ${PREFIX}/etc/postfix/master.cf ]; then \
|
|
|
|
${CP} -p ${PREFIX}/etc/postfix/sample-master.cf \
|
|
|
|
${PREFIX}/etc/postfix/master.cf; \
|
|
|
|
fi
|
1999-05-02 20:26:38 +00:00
|
|
|
@${ECHO_MSG} "--------------------------------------------------"
|
|
|
|
@${ECHO_MSG} "- To replace your existing sendmail with postfix -"
|
|
|
|
@${ECHO_MSG} "- type \"make replace\" -"
|
|
|
|
@${ECHO_MSG} "--------------------------------------------------"
|
1999-03-29 20:15:09 +00:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@PREFIX=${PREFIX} ${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL
|
|
|
|
|
|
|
|
replace:
|
1999-05-02 20:26:38 +00:00
|
|
|
@${ECHO_MSG} "===> Replacing sendmail"
|
1999-03-29 20:15:09 +00:00
|
|
|
@if [ -e /usr/sbin/sendmail ]; then \
|
|
|
|
${MV} -f /usr/sbin/sendmail /usr/sbin/sendmail.OFF; \
|
1999-08-22 19:01:07 +00:00
|
|
|
${CHMOD} 0 /usr/sbin/sendmail.OFF; \
|
1999-03-29 20:15:09 +00:00
|
|
|
fi
|
|
|
|
@if [ -e ${PREFIX}/sbin/sendmail ]; then \
|
1999-05-02 20:26:38 +00:00
|
|
|
${LN} -s ${PREFIX}/sbin/sendmail /usr/sbin/sendmail; \
|
1999-03-29 20:15:09 +00:00
|
|
|
fi
|
1999-05-02 20:26:38 +00:00
|
|
|
@${ECHO_MSG} "===> Replacing mailq"
|
1999-03-29 20:15:09 +00:00
|
|
|
@if [ -e /usr/bin/mailq ]; then \
|
|
|
|
${MV} -f /usr/bin/mailq /usr/bin/mailq.OFF; \
|
1999-08-22 19:01:07 +00:00
|
|
|
${CHMOD} 0 /usr/bin/mailq.OFF; \
|
1999-03-29 20:15:09 +00:00
|
|
|
fi
|
|
|
|
@if [ -e ${PREFIX}/sbin/sendmail ]; then \
|
1999-05-02 20:26:38 +00:00
|
|
|
${LN} -s ${PREFIX}/sbin/sendmail /usr/bin/mailq; \
|
1999-03-29 20:15:09 +00:00
|
|
|
fi
|
1999-05-02 20:26:38 +00:00
|
|
|
@${ECHO_MSG} "===> Replacing newaliases"
|
1999-03-29 20:15:09 +00:00
|
|
|
@if [ -e /usr/bin/newaliases ]; then \
|
|
|
|
${MV} -f /usr/bin/newaliases /usr/bin/newaliases.OFF; \
|
1999-08-22 19:01:07 +00:00
|
|
|
${CHMOD} 0 /usr/bin/newaliases.OFF; \
|
1999-03-29 20:15:09 +00:00
|
|
|
fi
|
|
|
|
@if [ -e ${PREFIX}/sbin/sendmail ]; then \
|
1999-05-02 20:26:38 +00:00
|
|
|
${LN} -s ${PREFIX}/sbin/sendmail /usr/bin/newaliases; \
|
1999-03-29 20:15:09 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|