Date: Fri, 18 Jan 2013 15:06:30 +0000 (GMT) From: Chris Rees <crees@FreeBSD.org> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/175407: [PATCH] mail/courier Update to OPTIONSng Message-ID: <20130118150630.A85DC1C5D0@pegasus.bayofrum.net> Resent-Message-ID: <201301181510.r0IFA0Vp055173@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 175407 >Category: ports >Synopsis: [PATCH] mail/courier Update to OPTIONSng >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Jan 18 15:10:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Chris Rees >Release: FreeBSD 9.0-RELEASE amd64 >Organization: >Environment: System: FreeBSD pegasus.bayofrum.net 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Sun Apr 29 12:29:02 BST 2012 root@pegasus.bayofrum.net:/usr/obj/usr/src/sys/PEGASUS amd64 >Description: Update to OPTIONSng I've not attempted to recreate the autodetection, because it didn't work in the first place (PREFIX is not defined before bsd.port.options.mk inclusion). >How-To-Repeat: >Fix: --- patch.txt begins here --- Index: Makefile =================================================================== --- Makefile (revision 310609) +++ Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: Courier MTA -# Date created: 17 Oct 2001 -# Whom: Yarema <yds@CoolRat.org> -# +# Created by: Yarema <yds@CoolRat.org> # $FreeBSD$ -# PORTNAME= courier PORTVERSION= 0.65.3 @@ -114,114 +110,34 @@ SUB_LIST:= ${PLIST_SUB} SUB_FILES+= pkg-install pkg-message crontab sharedindexupdate -OPTIONS+=LDAP "LDAP-based mail aliasing support" -.if (exists(${LOCALBASE}/lib/libldap.a) && exists(${LOCALBASE}/lib/liblber.a)) || defined(WITH_LDAP) -OPTIONS+=on -.else -OPTIONS+=off -.endif +OPTIONS_DEFINE= LDAP GNUPG PROCMAIL SENDFAX UUCP IPV6 MAILDROPFLAGS \ + WEBMAILFLAGS WEBMAILXFACE WEBMAILRSENT SYSTEMALIASES \ + EMPTYALIASES +OPTIONS_RADIO= SPELL +OPTIONS_RADIO_SPELL= ASPELL ISPELL -.if exists(${.CURDIR}/../../security/courier-authlib/Makefile.opt) -.include "${.CURDIR}/../../security/courier-authlib/Makefile.opt" -.endif +OPTIONS_DEFAULT=WEBMAILRSENT SYSTEMALIASES -OPTIONS+=GNUPG "GNU Privacy Guard support for WebMail" -.if exists(${LOCALBASE}/bin/gpg) || defined(WITH_GNUPG) -OPTIONS+=on -.else -OPTIONS+=off -.endif +LDAP_DESC= LDAP-based mail aliasing support +GNUPG_DESC= GNU Privacy Guard support for WebMail +ASPELL_DESC= ASpell support for WebMail +ISPELL_DESC= ISpell support for WebMail +PROCMAIL_DESC= Procmail local delivery support +SENDFAX_DESC= mgetty+sendfax support +UUCP_DESC= UUCP support +MAILDROPFLAGS_DESC= maildrop set flags patch +WEBMAILFLAGS_DESC= webmail show flags patch +WEBMAILXFACE_DESC= experimental webmail X-Face patch +WEBMAILRSENT_DESC= enable Autorename Sent folder +SYSTEMALIASES_DESC= symlink system /etc/aliases +EMPTYALIASES_DESC= create empty aliases file -OPTIONS+=ASPELL "ASpell support for WebMail / mutually" -.if exists(${LOCALBASE}/bin/aspell) || defined(WITH_ASPELL) -OPTIONS+=on -.else -OPTIONS+=off -.endif - -OPTIONS+=ISPELL "ISpell support for WebMail \ exclusive" -.if exists(${LOCALBASE}/bin/ispell) || defined(WITH_ISPELL) -OPTIONS+=on -.else -OPTIONS+=off -.endif - -OPTIONS+=PROCMAIL "Procmail local delivery support" -.if exists(${LOCALBASE}/bin/procmail) || defined(WITH_PROCMAIL) -OPTIONS+=on -.else -OPTIONS+=off -.endif - -OPTIONS+=SENDFAX "mgetty+sendfax support" -.if exists(${LOCALBASE}/sbin/sendfax) && exists(${LOCALBASE}/bin/pnmscale) && exists(${LOCALBASE}/bin/gs) || defined(WITH_SENDFAX) -OPTIONS+=on -.else -OPTIONS+=off -.endif - -OPTIONS+=UUCP "UUCP support" -.if exists(/usr/bin/uux) || exists(${LOCALBASE}/bin/uux) || defined(WITH_UUCP) -OPTIONS+=on -.else -OPTIONS+=off -.endif - -OPTIONS+=IPV6 "IPv6 support" -.if defined(WITH_IPV6) -OPTIONS+=on -.else -OPTIONS+=off -.endif - -OPTIONS+=MAILDROPFLAGS "maildrop set flags patch" -.if defined(WITH_MAILDROPFLAGS) -OPTIONS+=on -.else -OPTIONS+=off -.endif - -OPTIONS+=WEBMAILFLAGS "webmail show flags patch" -.if defined(WITH_WEBMAILFLAGS) -OPTIONS+=on -.else -OPTIONS+=off -.endif - -OPTIONS+=WEBMAILXFACE "experimental webmail X-Face patch" -.if defined(WITH_WEBMAILXFACE) -OPTIONS+=on -.else -OPTIONS+=off -.endif - -OPTIONS+=WEBMAILRSENT "enable Autorename Sent folder" -.if !defined(WITHOUT_WEBMAILRSENT) -OPTIONS+=on -.else -OPTIONS+=off -.endif - -OPTIONS+=SYSTEMALIASES "symlink system /etc/aliases" -.if !defined(WITHOUT_SYSTEMALIASES) -OPTIONS+=on -.else -OPTIONS+=off -.endif - -OPTIONS+=EMPTYALIASES "create empty aliases file" -.if defined(WITH_EMPTYALIASES) -OPTIONS+=on -.else -OPTIONS+=off -.endif - -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> .include "${.CURDIR}/Makefile.doc" .include "${.CURDIR}/Makefile.man" .include "${.CURDIR}/Makefile.own" -.if defined(WITH_LDAP) && !defined(WITHOUT_LDAP) +.if ${PORT_OPTIONS:MLDAP} USE_OPENLDAP= yes WITH_AUTH_LDAP= yes RUN_DEPENDS+= ${LOCALBASE}/lib/courier-authlib/libauthldap.so:${PORTSDIR}/net/courier-authlib-ldap @@ -234,7 +150,7 @@ SUB_LIST+= WITHLDAP="@comment " .endif -.if defined(WITH_SYSTEMALIASES) && !defined(WITHOUT_SYSTEMALIASES) +.if ${PORT_OPTIONS:MSYSTEMALIASES} PLIST_SUB+= WITHSYSTEMALIASES="" SUB_LIST+= WITHSYSTEMALIASES="" .else @@ -242,7 +158,7 @@ SUB_LIST+= WITHSYSTEMALIASES="@comment " .endif -.if defined(WITH_EMPTYALIASES) && !defined(WITHOUT_EMPTYALIASES) +.if ${PORT_OPTIONS:MEMPTYALIASES} PLIST_SUB+= WITHEMPTYALIASES="" SUB_LIST+= WITHEMPTYALIASES="" .else @@ -254,37 +170,29 @@ .include "${.CURDIR}/../../security/courier-authlib/Makefile.dep" .endif -.if defined(WITH_GNUPG) && !defined(WITHOUT_GNUPG) +.if ${PORT_OPTIONS:MGNUPG} BUILD_DEPENDS+= gpg:${PORTSDIR}/security/gnupg RUN_DEPENDS+= gpg:${PORTSDIR}/security/gnupg .endif -.if defined(WITH_ASPELL) && !defined(WITHOUT_ASPELL) && !defined(WITH_ISPELL) +.if ${PORT_OPTIONS:MASPELL} BUILD_DEPENDS+= aspell:${PORTSDIR}/textproc/aspell RUN_DEPENDS+= aspell:${PORTSDIR}/textproc/aspell CONFIGURE_ARGS+=--with-ispell=${LOCALBASE}/bin/aspell -.endif - -.if defined(WITH_ISPELL) && !defined(WITHOUT_ISPELL) && !defined(WITH_ASPELL) +.elif ${PORT_OPTIONS:MISPELL} BUILD_DEPENDS+= ispell:${PORTSDIR}/textproc/ispell RUN_DEPENDS+= ispell:${PORTSDIR}/textproc/ispell CONFIGURE_ARGS+=--with-ispell=${LOCALBASE}/bin/ispell -.endif - -.if defined(WITH_ASPELL) && defined(WITH_ISPELL) -BROKEN= ASpell and ISpell are mutually exclusive. Run 'make config' to (re)configure ${PKGNAME} -.endif - -.if !defined(WITH_ASPELL) && !defined(WITH_ISPELL) +.else CONFIGURE_ARGS+=--without-ispell .endif -.if defined(WITH_PROCMAIL) && !defined(WITHOUT_PROCMAIL) +.if ${PORT_OPTIONS:MPROCMAIL} BUILD_DEPENDS+= procmail:${PORTSDIR}/mail/procmail RUN_DEPENDS+= procmail:${PORTSDIR}/mail/procmail .endif -.if defined(WITH_SENDFAX) && !defined(WITHOUT_SENDFAX) +.if ${PORT_OPTIONS:MSENDFAX} USE_GHOSTSCRIPT=yes SENDFAX_DEPENDS=sendfax:${PORTSDIR}/comms/mgetty+sendfax \ pnmscale:${PORTSDIR}/graphics/netpbm @@ -298,7 +206,7 @@ SUB_LIST+= WITHFAX="@comment " .endif -.if defined(WITH_UUCP) && !defined(WITHOUT_UUCP) +.if ${PORT_OPTIONS:MUUCP} .if !exists(/usr/bin/uux) BUILD_DEPENDS+= uux:${PORTSDIR}/net/freebsd-uucp RUN_DEPENDS+= uux:${PORTSDIR}/net/freebsd-uucp @@ -309,26 +217,26 @@ PLIST_SUB+= WITHUUCP="@comment " .endif -.if defined(WITH_IPV6) || !defined(WITHOUT_IPV6) +.if ${PORT_OPTIONS:MIPV6} CONFIGURE_ARGS+=--with-ipv6 .else CONFIGURE_ARGS+=--without-ipv6 .endif -.if defined(WITH_MAILDROPFLAGS) || !defined(WITHOUT_MAILDROPFLAGS) +.if ${PORT_OPTIONS:MMAILDROPFLAGS} EXTRA_PATCHES+= ${FILESDIR}/extra-patch-maildrop__maildir.C .endif -.if defined(WITH_WEBMAILXFACE) || !defined(WITHOUT_WEBMAILXFACE) +.if ${PORT_OPTIONS:MWEBMAILXFACE} EXTRA_PATCHES+= ${FILESDIR}/extra-patch-webmail__msg2html.c .endif -.if defined(WITH_WEBMAILFLAGS) || !defined(WITHOUT_WEBMAILFLAGS) +.if ${PORT_OPTIONS:MWEBMAILFLAGS} EXTRA_PATCHES+= ${FILESDIR}/extra-patch-webmail__folder.c ${FILESDIR}/extra-patch-webmail__maildir.c EXTRA_PATCHES+= ${FILESDIR}/extra-patch-webmail__maildir.h ${FILESDIR}/extra-patch-webmail__images__sqwebmail.css .endif -.if defined(WITH_WEBMAILRSENT) || !defined(WITHOUT_WEBMAILRSENT) +.if ${PORT_OPTIONS:MWEBMAILRSENT} CONFIGURE_ARGS+=--enable-autorenamesent .else CONFIGURE_ARGS+=--disable-autorenamesent @@ -408,7 +316,7 @@ | ${SED} -e 's:^@exec ::' -e 's:%D:${PREFIX}:g' \ > ${WRKDIR}/.PLIST.exec \ && ${SH} ${WRKDIR}/.PLIST.exec -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${INSTALL} ${_DOCOWNGRP} -d ${DOCSDIR}/html .for f in ${DOCS} @${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} @@ -437,4 +345,4 @@ @PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> --- patch.txt ends here --- -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130118150630.A85DC1C5D0>