diff options
author | David W. Chapman Jr. <dwcjr@FreeBSD.org> | 2002-01-30 19:47:44 +0000 |
---|---|---|
committer | David W. Chapman Jr. <dwcjr@FreeBSD.org> | 2002-01-30 19:47:44 +0000 |
commit | 54413ef8d703a0a01af901118f212f4bbb22b483 (patch) | |
tree | 91cf62c1e09819dd5247ce78abd9c2ed5952bc6d /mail/postfix-current/Makefile | |
parent | add clarence 0.1.8 (diff) |
Update to 20020115
Give originator maintainership
Submitted by: khera@kcilink.com
Notes
Notes:
svn path=/head/; revision=54040
Diffstat (limited to 'mail/postfix-current/Makefile')
-rw-r--r-- | mail/postfix-current/Makefile | 176 |
1 files changed, 29 insertions, 147 deletions
diff --git a/mail/postfix-current/Makefile b/mail/postfix-current/Makefile index 4d1d50123bcc..747b9c35f3e6 100644 --- a/mail/postfix-current/Makefile +++ b/mail/postfix-current/Makefile @@ -6,7 +6,7 @@ # PORTNAME= postfix -PORTVERSION= 20020107 +PORTVERSION= 20020115 CATEGORIES= mail ipv6 MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/experimental/ \ ftp://ftp.aet.tu-cottbus.de/pub/postfix_tls/%SUBDIR%/ \ @@ -18,7 +18,7 @@ MASTER_SITE_SUBDIR= . old related/postfix DISTNAME= snapshot-${PORTVERSION} DIST_SUBDIR= ${PORTNAME} -MAINTAINER= dwcjr@FreeBSD.org +MAINTAINER= khera@kciLink.com MAN1= mailq.1 newaliases.1 postalias.1 postcat.1 postconf.1 postdrop.1 \ postfix.1 postkick.1 postlock.1 postlog.1 postmap.1 postqueue.1 \ @@ -31,39 +31,8 @@ MAN8= bounce.8 cleanup.8 defer.8 error.8 flush.8 lmtp.8 local.8 \ master.8 nqmgr.8 pickup.8 pipe.8 qmgr.8 qmqpd.8 showq.8 smtp.8 \ smtpd.8 spawn.8 trivial-rewrite.8 virtual.8 -CONF1= access aliases canonical main.cf master.cf \ - regexp_table relocated transport virtual - -CONF2= sample-aliases.cf sample-canonical.cf sample-debug.cf \ - sample-filter.cf sample-flush.cf sample-local.cf sample-misc.cf \ - sample-qmqpd.cf \ - sample-rate.cf sample-regexp-access.cf sample-regexp-body.cf \ - sample-regexp-header.cf sample-relocated.cf \ - sample-resource.cf sample-rewrite.cf sample-smtp.cf \ - sample-smtpd.cf sample-transport.cf sample-virtual.cf install.cf - -BIN1= bounce cleanup error flush lmtp local master nqmgr pickup \ - pipe qmgr qmqpd showq smtp smtpd spawn trivial-rewrite virtual - -BIN2= postalias postcat postconf postdrop postfix \ - postkick postlock postlog postmap postqueue postsuper sendmail - -DOC1= 0README COMPATIBILITY HISTORY INSTALL LICENSE \ - PORTING RELEASE_NOTES TODO - -DOC2= DB_README DEBUG_README ETRN_README FILTER_README LDAP_README \ - LINUX_README LMTP_README MACOSX_README MYSQL_README NFS_README \ - PCRE_README QMQP_README SASL_README ULTRIX_README UUCP_README \ - VERP_README VIRTUAL_README - NO_LATEST_LINK= yes -.if defined(NOPORTDOCS) -PLIST_SUB+= SUB_DOCS="@comment " -.else -PLIST_SUB+= SUB_DOCS="" -.endif - .if !defined(DEBUG) MAKEFILEFLAGS+= DEBUG= .endif @@ -81,148 +50,61 @@ pre-fetch: .include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc" .endif -post-extract: - @${CP} ${FILESDIR}/install.cf ${WRKSRC}/conf - post-patch: (cd ${WRKSRC} && ${MAKE} -f Makefile.init makefiles ${MAKEFILEFLAGS} \ CCARGS="${POSTFIX_CCARGS}" AUXLIBS="${POSTFIX_AUXLIBS}" && \ - ${ECHO_CMD} "all: default" >> Makefile) + ${ECHO} "all: default" >> Makefile) pre-install: @PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL -do-install: - @${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m 0755 \ - ${PREFIX}/etc/postfix \ - ${PREFIX}/libexec/postfix \ - /var/spool/postfix - @${INSTALL_DATA} ${WRKSRC}/conf/LICENSE ${PREFIX}/etc/postfix - -.for file in ${CONF1} - @${INSTALL_DATA} \ - ${WRKSRC}/conf/${file} \ - ${PREFIX}/etc/postfix/sample-${file} -.endfor +.if defined(NOPORTDOCS) +READMEDIR=no +.else +READMEDIR=${PREFIX}/share/doc/postfix +.endif -.for file in ${CONF2} - @${INSTALL_DATA} \ - ${WRKSRC}/conf/${file} \ - ${PREFIX}/etc/postfix -.endfor +do-install: + cd ${WRKSRC}; sh postfix-install -non-interactive install_root=/ tempdir=/tmp \ + config_directory=${PREFIX}/etc/postfix \ + daemon_directory=${PREFIX}/libexec/postfix \ + command_directory=${PREFIX}/sbin \ + queue_directory=/var/spool/postfix \ + sendmail_path=${PREFIX}/sbin/sendmail \ + newaliases_path=${PREFIX}/bin/newaliases \ + mailq_path=${PREFIX}/bin/mailq \ + mail_owner=postfix \ + setgid_group=maildrop \ + manpage_directory=${PREFIX}/man \ + sample_directory=${PREFIX}/etc/postfix \ + readme_directory=${READMEDIR} @${INSTALL_SCRIPT} \ - ${WRKSRC}/conf/postfix-script \ - ${PREFIX}/etc/postfix - @${INSTALL_SCRIPT} \ ${WRKSRC}/auxiliary/rmail/rmail \ ${PREFIX}/bin/rmail +# optional TEST binaries .for file in ${BIN1} @${INSTALL_PROGRAM} \ - ${WRKSRC}/libexec/${file} \ - ${PREFIX}/libexec/postfix -.endfor - -.for file in ${BIN2} - @${INSTALL_PROGRAM} \ - ${WRKSRC}/src/${file}/${file} \ - ${PREFIX}/sbin -.endfor - -.for file in ${BIN3} - @${INSTALL_PROGRAM} \ ${WRKSRC}/src/smtpstone/${file} \ ${PREFIX}/sbin .endfor -.for file in ${MAN1} - @${INSTALL_MAN} \ - ${WRKSRC}/man/man1/${file} \ - ${PREFIX}/man/man1 -.endfor - -.for file in ${MAN5} - @${INSTALL_MAN} \ - ${WRKSRC}/man/man5/${file} \ - ${PREFIX}/man/man5 -.endfor - -.for file in ${MAN8} - @${INSTALL_MAN} \ - ${WRKSRC}/man/man8/${file} \ - ${PREFIX}/man/man8 -.endfor - .if !defined(NOPORTDOCS) @${INSTALL} -d -o ${DOCOWN} -g ${DOCGRP} -m 555 ${DOCSDIR} @cd ${WRKSRC}/html && ${INSTALL_DATA} *.html *.gif ${DOCSDIR} && \ ${ECHO_MSG} "Installed HTML documentation in ${DOCSDIR}" - @cd ${WRKSRC} && for i in ${DOC1} ; do \ - ${INSTALL_DATA} $$i ${DOCSDIR} ; done && \ - ${ECHO_MSG} "Installed text documentation in ${DOCSDIR}" - @cd ${WRKSRC}/README_FILES && for i in ${DOC2} ; do \ - ${INSTALL_DATA} $$i ${DOCSDIR} ; done && \ - ${ECHO_MSG} "Installed readme in ${DOCSDIR}" .endif - @${ECHO_MSG} '--------------------------------------------------' - @${ECHO_MSG} '- To replace your existing sendmail with postfix -' - @${ECHO_MSG} '- type "make replace" -' - @${ECHO_MSG} '--------------------------------------------------' - @${ECHO_MSG} '******You may need to update your master.cf*******' - @${ECHO_MSG} '**************due to recent changes***************' - post-install: @PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL +# need to fixup ${PREFIX}/etc/postfix/postfix-files to indicate compressed +# man pages, since the ports software compresses them after this step, and +# if we run etc/postfix/post-install again during package installation, +# it will complain about missing files. + @${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/fix-files-list post-clean: @${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc -.include <bsd.port.pre.mk> - -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_CMD} "#" > /etc/mail/mailer.conf - ${ECHO_CMD} -n "# Execute the Postfix sendmail program" >> /etc/mail/mailer.conf - ${ECHO_CMD} ", named ${PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf - ${ECHO_CMD} "#" >> /etc/mail/mailer.conf - ${ECHO_CMD} "sendmail ${PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf - ${ECHO_CMD} "send-mail ${PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf - ${ECHO_CMD} "mailq ${PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf - ${ECHO_CMD} "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 <bsd.port.post.mk> +.include <bsd.port.mk> |