# New ports collection makefile for: postfix # Date created: 18 Mar 1999 # Whom: torstenb # # $FreeBSD$ # PORTNAME= postfix PORTVERSION= 19991231.08 CATEGORIES= mail 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/ DISTNAME= ${PORTNAME}-19991231-pl08 MAINTAINER= torstenb@FreeBSD.org # WARNING: this is based on a patch submitted by a user and has not been # tested. Use it at your own risk ! .if defined(WITH_MYSQL) BUILD_DEPENDS+= ${LOCALBASE}/lib/mysql/libmysqlclient.a:${PORTSDIR}/databases/mysql322-client POSTFIX_CCARGS+= -DHAS_MYSQL -I${LOCALBASE}/include/mysql POSTFIX_AUXLIBS+= ${LOCALBASE}/lib/mysql/libmysqlclient.a -lm .endif # WARNING: this is based on a patch submitted by a user and has not been # tested. Use it at your own risk ! .if defined(WITH_LDAP) BUILD_DEPENDS+= ${LOCALBASE}/lib/libldap.a:${PORTSDIR}/net/openldap POSTFIX_CCARGS+= -DHAS_LDAP -I${LOCALBASE}/include POSTFIX_AUXLIBS+= ${LOCALBASE}/lib/libldap.a ${PREFIX}/lib/liblber.a .endif ALL_TARGET= CCARGS="${POSTFIX_CCARGS}" AUXLIBS="${POSTFIX_AUXLIBS}" SCRIPTS_ENV+= MAN1="${MAN1}" MAN5="${MAN5}" MAN8="${MAN8}" MAKE_ENV+= "OPT=${CFLAGS}" 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 \ showq.8 smtp.8 smtpd.8 trivial-rewrite.8 error.8 SHAREMODE= 0444 PDOC= ${PREFIX}/share/doc/postfix do-install: @${MKDIR} -m 755 ${PREFIX}/etc/postfix @${CHOWN} root:wheel ${PREFIX}/etc/postfix @${INSTALL} -C -o root -g wheel -m 0644 ${WRKSRC}/conf/LICENSE \ ${PREFIX}/etc/postfix/LICENSE @for f in access main.cf master.cf ; do \ ${INSTALL} -C -o root -g wheel -m 0644 ${WRKSRC}/conf/$$f \ ${PREFIX}/etc/postfix/sample-$$f ; \ done @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 \ ${INSTALL} -C -o root -g wheel -m 0644 ${WRKSRC}/conf/$$f \ ${PREFIX}/etc/postfix/$$f ;\ done @${INSTALL} -C -o root -g wheel -m 755 ${WRKSRC}/conf/postfix-script-sgid \ ${PREFIX}/etc/postfix/postfix-script @${MKDIR} -m 0755 ${PREFIX}/libexec/postfix @for f in bounce cleanup error local master pickup pipe qmgr \ showq smtp smtpd trivial-rewrite ; do \ ${INSTALL} -C -o root -g wheel -m 0755 -s \ ${WRKSRC}/libexec/$$f ${PREFIX}/libexec/postfix/$$f ;\ done @for f in postalias postcat postconf postfix postkick postlock postlog\ postmap postsuper sendmail smtp-sink smtp-source ; do \ ${INSTALL} -C -o root -g wheel -m 0755 -s ${WRKSRC}/bin/$$f \ ${PREFIX}/sbin/$$f ;\ done @${INSTALL} -C -o root -g maildrop -m 2755 -s ${WRKSRC}/bin/postdrop \ ${PREFIX}/sbin/postdrop @for f in ${MAN1} ; do \ ${INSTALL} -C -o root -g wheel -m 0755 ${WRKSRC}/man/man1/$$f \ ${PREFIX}/man/man1/$$f ;\ done @for f in ${MAN5} ; do \ ${INSTALL} -C -o root -g wheel -m 0755 ${WRKSRC}/man/man5/$$f \ ${PREFIX}/man/man5/$$f ;\ done @for f in ${MAN8} ; do \ ${INSTALL} -C -o root -g wheel -m 0755 ${WRKSRC}/man/man8/$$f \ ${PREFIX}/man/man8/$$f ;\ done @${INSTALL} -d -m 555 -o ${DOCOWN} -g ${DOCGRP} ${PDOC} @cd ${WRKSRC} && ${INSTALL_DATA} \ html/*.html html/*.gif ${PDOC} && \ ${ECHO_MSG} "Installed HTML documentation in ${PDOC}" @${MKDIR} -m 0755 /var/spool/postfix @${ECHO_MSG} "--------------------------------------------------" @${ECHO_MSG} "- To replace your existing sendmail with postfix -" @${ECHO_MSG} "- type \"make replace\" -" @${ECHO_MSG} "--------------------------------------------------" pre-install: @PKG_PREFIX=${PREFIX} ${SH} ${PKGDIR}/INSTALL ${PKGNAME} PRE-INSTALL post-install: @PKG_PREFIX=${PREFIX} ${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL .include replace: .if ${OSVERSION} >= 400014 @${ECHO_MSG} "===> Activating postfix in /etc/mail/mailer.conf" ${MV} -f /etc/mail/mailer.conf /etc/mail/mailer.conf.bak ${ECHO} 'sendmail ${PREFIX}/sbin/sendmail' > /etc/mail/mailer.conf ${ECHO} 'send-mail ${PREFIX}/sbin/sendmail' >>/etc/mail/mailer.conf ${ECHO} 'mailq ${PREFIX}/sbin/sendmail' >>/etc/mail/mailer.conf ${ECHO} 'newaliases ${PREFIX}/sbin/sendmail' >>/etc/mail/mailer.conf .else @${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/sendmail ]; then \ ${LN} -s ${PREFIX}/sbin/sendmail /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/sendmail ]; then \ ${LN} -s ${PREFIX}/sbin/sendmail /usr/bin/newaliases; \ fi .endif .include /a>commitdiffstats
Commit message (Expand)AuthorAgeFilesLines
* Update CONFIGURE_ARGS for how we pass CONFIGURE_TARGET to configure script.rafan2008-08-211-2/+0
* Use ${MASTER_SITE_GOOGLE_CODE} instead ofedwin2008-03-071-1/+1
* - Update to 0.11.8.3.1beech2007-08-172-4/+4
* - Set --mandir and --infodir in CONFIGURE_ARGS if the configure scriptrafan2007-07-231-1/+0
* - update to 0.11.8.2.1itetcu2007-01-082-6/+7
* Drop maintainership:edwin2006-10-061-1/+1
* - Update naim to naim 0.11.8.2clsung2006-05-112-4/+4
* Update to 0.11.8.1lawrance2005-12-162-5/+5
* Move instant messaging related ports to newly created net-im category:pav2005-11-091-1/+1
* Fix screen location.krion2005-11-071-1/+1
* Restore maintainership and unbreak port. There was a problem inehaupt2005-10-251-3/+1
* - Mark broken, distfile is unfetchableehaupt2005-10-241-1/+3
* PR: 86853ehaupt2005-10-044-116/+20
* - Allow naim to connect to AIM network againpav2005-09-052-0/+93
* At Kris's request, back out the MACHINE_ARCH spelling correction untilobrien2005-04-121-1/+1
* Assist getting more ports working on AMD64 by obeying theobrien2005-04-111-1/+1
* - Update to 0.11.7.3.1sem2005-02-142-3/+3
* Update to 0.11.7.3kevlo2005-01-262-3/+3
* . Update to 0.11.7.2.glewis2004-07-232-3/+3
* Update to 0.11.7.1vs2004-07-122-3/+3
* Make COMMENT/pkg-descr more accuratevs2004-07-092-5/+15
* . Update to 0.11.7.glewis2004-06-192-3/+3
* - Update to 0.11.6.7pav2004-04-183-4/+4
* - Update to 0.11.6.4pav2003-12-222-4/+4
* - Update to 0.11.6.3pav2003-11-194-14/+5
* update net/naim: 0.11.5.9 -> 0.11.6daichi2003-07-285-22/+37
* Update to 0.11.5.9. MASTER_SITES change, and some pkg-plistadamw2003-06-143-11/+11
* Update to 0.11.5.6.adamw2003-03-232-6/+6
* update port: net/naim to latest version 0.11.5.5leeym2003-02-233-3/+8
* De-pkg-comment.knu2003-02-212-1/+1
* update to naim-0.11.5.4leeym2003-02-153-4/+4
* Update to 0.11.5.2arved2003-01-194-27/+11
* Update to 0.11.5.petef2003-01-03