From owner-svn-ports-head@FreeBSD.ORG Thu Jan 10 01:36:22 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 958B9F5F; Thu, 10 Jan 2013 01:36:22 +0000 (UTC) (envelope-from mandree@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 78BC3CDD; Thu, 10 Jan 2013 01:36:22 +0000 (UTC) Received: from svn.freebsd.org (svn.FreeBSD.org [8.8.178.70]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id r0A1aMdV000117; Thu, 10 Jan 2013 01:36:22 GMT (envelope-from mandree@svn.freebsd.org) Received: (from mandree@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id r0A1aL65000113; Thu, 10 Jan 2013 01:36:21 GMT (envelope-from mandree@svn.freebsd.org) Message-Id: <201301100136.r0A1aL65000113@svn.freebsd.org> From: Matthias Andree Date: Thu, 10 Jan 2013 01:36:21 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r310167 - in head/mail/fetchmail: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jan 2013 01:36:22 -0000 Author: mandree Date: Thu Jan 10 01:36:21 2013 New Revision: 310167 URL: http://svnweb.freebsd.org/changeset/ports/310167 Log: Changes by Po-Chien Lin: - Update to 6.3.24 - Switch to OptionsNG - Remove unused variables: PATCH_STRIP, MAKE_ENV - Rearrange ordering of some sections - Use PORTDOCS to handle document list instead of pkg-plist - Alter pkg-plst to make portlint(1) happier - Cleanup TABs - Set USE_PYTHON_RUN only if X11 option is set. - Rename files/fetchmailconf to files/fetchmailconf.in, add it into SUB_FILES, and make the corresponding change in pre-patch target. - The `fetchmailconf' wrapper will only be installed when X11 option is unset, otherwise we use the native wrapper which will directly call the script under PYTHON_SITELIBDIR. - Add %%X11%% and %%NOX11%% prefix to PLIST_SUB. Changes by Corey Halpin (maintainer): - Update MASTER_SITES PR: 174873 Submitted by: Po-Chien Lin Approved by: Corey Halpin (maintainer) Added: head/mail/fetchmail/files/fetchmailconf.in (contents, props changed) Deleted: head/mail/fetchmail/files/fetchmailconf Modified: head/mail/fetchmail/Makefile head/mail/fetchmail/distinfo (contents, props changed) head/mail/fetchmail/pkg-plist Modified: head/mail/fetchmail/Makefile ============================================================================== --- head/mail/fetchmail/Makefile Thu Jan 10 00:27:02 2013 (r310166) +++ head/mail/fetchmail/Makefile Thu Jan 10 01:36:21 2013 (r310167) @@ -1,7 +1,4 @@ -# New ports collection makefile for: fetchmail -# Date created: 25 Feb 2000 -# Whom: Ville Eerola -# +# Created by: Ville Eerola # $FreeBSD$ # # NOTE: The fetchmailconf program (an interactive program for @@ -11,12 +8,10 @@ # want fetchmailconf to work, define the X11 option. PORTNAME= fetchmail -PORTVERSION= 6.3.22 +PORTVERSION= 6.3.24 CATEGORIES= mail ipv6 -MASTER_SITES= BERLIOS/${PORTNAME}/ \ - SF/${PORTNAME}/branch_6.3/ \ - http://mandree.home.pages.de/${PORTNAME}/ \ - SUNSITE/system/mail/pop/${PORTNAME}/ +MASTER_SITES= SF/${PORTNAME}/branch_6.3/ \ + http://mandree.home.pages.de/${PORTNAME}/ MAINTAINER= chalpin@cs.wisc.edu COMMENT= Batch mail retrieval utility for IMAP/POP3/ETRN/ODMR @@ -24,61 +19,63 @@ COMMENT= Batch mail retrieval utility fo RUN_DEPENDS= ${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss # Note USERS can only contain a single word as parts below rely on that. -USERS= ${PORTNAME} -GROUPS= ${USERS} +USERS= ${PORTNAME} +GROUPS= ${USERS} USE_RC_SUBR= fetchmail FETCHMAILRC= ${PREFIX}/etc/fetchmailrc SUB_FILES= pkg-message -PATCH_STRIP= -p1 -USE_XZ= yes +USE_XZ= yes USE_GMAKE= yes MAKE_JOBS_SAFE= yes GNU_CONFIGURE= yes USE_OPENSSL= yes CONFIGURE_ARGS= --enable-opie --enable-RPA --enable-SDPS \ - --with-hesiod=no --enable-fallback=no PYTHON=: -# bsd.openssl.mk will add the LDFLAGS to CONFIGURE_ENV: + --without-hesiod --enable-fallback=no \ + --with-ssl=${OPENSSLBASE} + LDFLAGS+= -L${LOCALBASE}/lib -MAKE_ENV+= ${CONFIGURE_ENV} -MAN1= fetchmail.1 -MLINKS= fetchmail.1 fetchmailconf.1 - -OPTIONS= X11 "Python/Tkinter dependencies for fetchmailconf" off \ - NLS "National language support (NLS)." on \ - NTLM "Build in support for NTLM/MSN authentication." off \ - GSSAPI "Build GSSAPI/Kerberos 5 support" on +MAN1= fetchmail.1 +MLINKS= fetchmail.1 fetchmailconf.1 -.include +OPTIONS_DEFINE= X11 NLS NTLM GSSAPI +OPTIONS_DEFAULT= GSSAPI +X11_DESC= Python/Tkinter dependencies for ``fetchmailconf'' +NTLM_DESC= Build in support for NTLM/MSN authentication +GSSAPI_DESC= Build GSSAPI/Kerberos 5 support -.if defined(WITH_X11) -USE_PYTHON= yes -RUN_DEPENDS+= ${LOCALBASE}/lib/${PYTHON_VERSION}/site-packages/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter -.endif +PORTDOCS= FAQ FEATURES NEWS NOTES README README.SSL \ + design-notes.html fetchmail-FAQ.html fetchmail-features.html \ + esrs-design-notes.html -.include +.include # Pop2 is obsolete .if defined(WITH_POP2) -CONFIGURE_ARGS+=--enable-POP2 +CONFIGURE_ARGS+= --enable-POP2 .endif -CONFIGURE_ARGS+= --with-ssl=${OPENSSLBASE} - -DOCS= FAQ FEATURES NEWS NOTES README README.SSL \ - design-notes.html fetchmail-FAQ.html fetchmail-features.html \ - esrs-design-notes.html +.if ${PORT_OPTIONS:MX11} +USE_PYTHON_RUN= yes +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}tkinter>=0:${PORTSDIR}/x11-toolkits/py-tkinter +PLIST_SUB+= X11="" NOX11="@comment " +.else +CONFIGURE_ARGS+= PYTHON=: +SUB_FILES+= fetchmailconf +PLIST_SUB+= X11="@comment " NOX11="" +.endif -.if !defined(WITHOUT_NLS) +.if ${PORT_OPTIONS:MNLS} CONFIGURE_ARGS+= --enable-nls -PLIST_SUB+= NLS="" -USE_GETTEXT= yes +PLIST_SUB+= NLS="" +USE_GETTEXT= yes .else CONFIGURE_ARGS+= --disable-nls -PLIST_SUB+= NLS="@comment " +PLIST_SUB+= NLS="@comment " .endif +.if ${PORT_OPTIONS:MGSSAPI} .if !defined(KRB5_HOME) .if exists(${LOCALBASE}/lib/libkrb5.a) KRB5_HOME= ${LOCALBASE} @@ -88,42 +85,36 @@ KRB5_HOME= /usr .endif .if defined(KRB5_HOME) && !exists(${KRB5_HOME}/lib/libkrb5.a) -BROKEN= KRB5_HOME is set but doesn't provide lib/libkrb5.a +BROKEN= KRB5_HOME is set but doesn\'t provide lib/libkrb5.a .endif -.if defined(WITH_GSSAPI) .if defined(KRB5_HOME) && exists(${KRB5_HOME}/lib/libkrb5.a) -CONFIGURE_ARGS += --with-gssapi=${KRB5_HOME} +CONFIGURE_ARGS+= --with-gssapi=${KRB5_HOME} .endif .endif -.if defined(WITH_NTLM) -CONFIGURE_ARGS += --enable-NTLM -DOCS+= README.NTLM -PLIST_SUB+= NTLMDOCS="%%PORTDOCS%%" -.else -PLIST_SUB+= NTLMDOCS="%%PORTDOCS%%@comment " +.if ${PORT_OPTIONS:MNTLM} +CONFIGURE_ARGS+= --enable-NTLM +PORTDOCS+= README.NTLM .endif pre-patch: @${REINPLACE_CMD} -e "s,^#!/usr/bin/env python,#!${LOCALBASE}/bin/python,g" \ ${WRKSRC}/fetchmailconf.py - @${CP} ${FILESDIR}/fetchmailconf ${WRKDIR}/fetchmailconf - @${REINPLACE_CMD} -e "s,@LOCALBASE@,${LOCALBASE},g" \ - ${WRKDIR}/fetchmailconf post-build: - @cd ${WRKSRC} && ${MAKE} check + @${MAKE} -C ${WRKSRC} check post-install: -.if !defined(NOPORTDOCS) - ${INSTALL} -d -m 555 -o ${DOCOWN} -g ${DOCGRP} ${DOCSDIR} - cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR} +.if ${PORT_OPTIONS:MDOCS} + ${MKDIR} ${DOCSDIR} + cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR} .endif +.if empty(PORT_OPTIONS:MX11) ${INSTALL_SCRIPT} ${WRKDIR}/fetchmailconf ${PREFIX}/bin ${INSTALL_SCRIPT} ${WRKSRC}/fetchmailconf.py ${PREFIX}/libexec - +.endif ${MKDIR} -m 0755 "/var/run/${PORTNAME}" ${CHOWN} "${USERS}:${GROUPS}" "/var/run/${PORTNAME}" ${INSTALL} -m 644 -o ${USERS} -g ${GROUPS} ${FILESDIR}/fetchmailrc.sample ${PREFIX}/etc/fetchmailrc.sample @@ -136,4 +127,4 @@ post-install: @${CAT} ${PKGMESSAGE} @${ECHO_CMD} "" -.include +.include Modified: head/mail/fetchmail/distinfo ============================================================================== --- head/mail/fetchmail/distinfo Thu Jan 10 00:27:02 2013 (r310166) +++ head/mail/fetchmail/distinfo Thu Jan 10 01:36:21 2013 (r310167) @@ -1,2 +1,2 @@ -SHA256 (fetchmail-6.3.22.tar.xz) = 9ab51a851f79e16258f068e791c39e3e378a99927f70c9635132f4295d70b1a4 -SIZE (fetchmail-6.3.22.tar.xz) = 1260296 +SHA256 (fetchmail-6.3.24.tar.xz) = f6882f00f0d69bbabaa4fbdaccb9231c7c441781fcb95ff763f75589f2328daf +SIZE (fetchmail-6.3.24.tar.xz) = 1263156 Added: head/mail/fetchmail/files/fetchmailconf.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/mail/fetchmail/files/fetchmailconf.in Thu Jan 10 01:36:21 2013 (r310167) @@ -0,0 +1,44 @@ +#!/bin/sh +# +# Wrapper for the real fetchmailconf. Checks whether Python and Tkinter are +# installed, and runs the real fetchmailconf or alerts the user, as appropriate. +# +# $FreeBSD$ + +LOCALBASE=%%LOCALBASE%% + +if [ -x $LOCALBASE/bin/python ] ; then + PYTHON_VERSION=python$(${LOCALBASE}/bin/python -c 'import sys; print sys.version[:3]' 2>/dev/null) + if [ -e ${LOCALBASE}/lib/${PYTHON_VERSION}/site-packages/_tkinter.so ]; then + exec ${LOCALBASE}/libexec/fetchmailconf.py "$@" + fi +fi +cat </dev/null) + if [ -e ${LOCALBASE}/lib/${PYTHON_VERSION}/site-packages/_tkinter.so ]; then + exec ${LOCALBASE}/libexec/fetchmailconf.py "$@" + fi +fi +cat </dev/null || true -@unexec rmdir /var/run/fetchmail 2>/dev/null || true +@cwd /var/run +@unexec rm -f %D/fetchmail/fetchmail.pid 2>/dev/null || true +@dirrmtry fetchmail