From owner-svn-ports-all@FreeBSD.ORG Sat Dec 21 21:18:38 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 24EDEE95; Sat, 21 Dec 2013 21:18:38 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 0445412EC; Sat, 21 Dec 2013 21:18:38 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rBLLIba0013343; Sat, 21 Dec 2013 21:18:37 GMT (envelope-from crees@svn.freebsd.org) Received: (from crees@localhost) by svn.freebsd.org (8.14.7/8.14.7/Submit) id rBLLIbUb013338; Sat, 21 Dec 2013 21:18:37 GMT (envelope-from crees@svn.freebsd.org) Message-Id: <201312212118.rBLLIbUb013338@svn.freebsd.org> From: Chris Rees Date: Sat, 21 Dec 2013 21:18:37 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r337163 - in head/mail/automx: . 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-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Dec 2013 21:18:38 -0000 Author: crees Date: Sat Dec 21 21:18:36 2013 New Revision: 337163 URL: http://svnweb.freebsd.org/changeset/ports/337163 Log: Update to 0.9.2 Stageify Remove bash dependency by shifying the test script Added: head/mail/automx/files/ head/mail/automx/files/patch-src-automx-test (contents, props changed) Modified: head/mail/automx/Makefile head/mail/automx/distinfo head/mail/automx/pkg-descr head/mail/automx/pkg-plist Modified: head/mail/automx/Makefile ============================================================================== --- head/mail/automx/Makefile Sat Dec 21 21:08:42 2013 (r337162) +++ head/mail/automx/Makefile Sat Dec 21 21:18:36 2013 (r337163) @@ -1,8 +1,7 @@ # $FreeBSD$ PORTNAME= automx -PORTVERSION= 0.9 -PORTREVISION= 1 +PORTVERSION= 0.9.2 CATEGORIES= mail MASTER_SITES= http://www.automx.org/download/ @@ -13,7 +12,6 @@ LICENSE= GPLv3 RUN_DEPENDS= ${LOCALBASE}/${APACHEMODDIR}/mod_wsgi.so:${PORTSDIR}/www/mod_wsgi2 \ ${PYTHON_PKGNAMEPREFIX}lxml>=0:${PORTSDIR}/devel/py-lxml \ - bash:${PORTSDIR}/shells/bash \ wget:${PORTSDIR}/ftp/wget USE_APACHE_RUN= 22+ @@ -22,42 +20,27 @@ NO_BUILD= yes PORTDATA= * PORTDOCS= * -MAN1= ${PORTNAME}-test.1 -MAN5= ${PORTNAME}.conf.5 ${PORTNAME}_ldap.5 ${PORTNAME}_sql.5 - PKGMESSAGE= ${WRKDIR}/pkg-message -NO_STAGE= yes .include post-patch: - ${REINPLACE_CMD} -e '1s,/bin/bash,${LOCALBASE}/bin/bash,' \ - ${WRKSRC}/src/automx-test # Generate pkg-message from INSTALL file; include lines from Section 5 onwards - line=$$(${SED} -ne '/^5. Web Server/=' ${WRKSRC}/INSTALL) && \ + line=$$(${SED} -ne '/^Web Server/=' ${WRKSRC}/INSTALL) && \ ${SED} -ne "$$line,\$$p" ${WRKSRC}/INSTALL > ${PKGMESSAGE} do-install: - ${MKDIR} ${DATADIR} - (cd ${WRKSRC}/src && ${COPYTREE_SHARE} ${PORTNAME} ${PYTHONPREFIX_SITELIBDIR}) - ${INSTALL_DATA} ${WRKSRC}/src/automx_wsgi.py ${DATADIR} - ${INSTALL_SCRIPT} ${WRKSRC}/src/automx-test ${PREFIX}/bin - ${INSTALL_DATA} ${WRKSRC}/src/automx.conf \ - ${PREFIX}/etc/automx.conf.sample + ${MKDIR} ${STAGEDIR}${DATADIR} + (cd ${WRKSRC}/src && \ + ${COPYTREE_SHARE} ${PORTNAME} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}) + ${INSTALL_DATA} ${WRKSRC}/src/automx_wsgi.py ${STAGEDIR}${DATADIR} + ${INSTALL_SCRIPT} ${WRKSRC}/src/automx-test ${STAGEDIR}${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/src/conf/automx.conf \ + ${STAGEDIR}${PREFIX}/etc/automx.conf.sample .for s in 1 5 -. for m in ${MAN$s} - ${INSTALL_MAN} ${WRKSRC}/doc/man/man$s/$m ${MAN$sPREFIX}/man/man$s -. endfor + ${INSTALL_MAN} ${WRKSRC}/doc/man/man$s/* ${STAGEDIR}${PREFIX}/man/man$s/ .endfor -.if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${DOCSDIR} - (cd ${WRKSRC}/doc && ${COPYTREE_SHARE} "[^m]*" ${DOCSDIR}) -.endif - -post-install: - [ -f ${PREFIX}/etc/${PORTNAME}.conf ] || \ - ${CP} -p ${PREFIX}/etc/${PORTNAME}.conf.sample \ - ${PREFIX}/etc/${PORTNAME}.conf - @${CAT} ${PKGMESSAGE} + ${MKDIR} ${STAGEDIR}${DOCSDIR} + (cd ${WRKSRC}/doc && ${COPYTREE_SHARE} "[^m]*" ${STAGEDIR}${DOCSDIR}) .include Modified: head/mail/automx/distinfo ============================================================================== --- head/mail/automx/distinfo Sat Dec 21 21:08:42 2013 (r337162) +++ head/mail/automx/distinfo Sat Dec 21 21:18:36 2013 (r337163) @@ -1,2 +1,2 @@ -SHA256 (automx-0.9.tar.gz) = 66dcd2f643c46f7046094beb3385e1129d70f28f438d83166e0b346f4c724e8c -SIZE (automx-0.9.tar.gz) = 81770 +SHA256 (automx-0.9.2.tar.gz) = 98cd634ea019f993bd5e361697b03c725f0172e3d34cc19e2e5c2c43a287c665 +SIZE (automx-0.9.2.tar.gz) = 55622 Added: head/mail/automx/files/patch-src-automx-test ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/mail/automx/files/patch-src-automx-test Sat Dec 21 21:18:36 2013 (r337163) @@ -0,0 +1,78 @@ +--- src/automx-test.orig 2013-03-30 18:45:31.000000000 +0000 ++++ src/automx-test 2013-12-21 20:34:11.520592847 +0000 +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/bin/sh + # + # automx - auto configuration service + # Copyright (c) 2011-2013 [*] sys4 AG +@@ -18,19 +18,20 @@ + # You should have received a copy of the GNU General Public License + # along with this program. If not, see . + # ++# Ported to sh to avoid a dependency on bash by crees@FreeBSD.org ++# + # + VERSION="0.9.2" + + trap clean_exit EXIT +-function clean_exit() { +- [[ -f "$OLREQUEST" ]] && rm "$OLREQUEST" +- [[ -f "$MBREQUEST" ]] && rm "$MBREQUEST" ++clean_exit() { ++ rm -f "$OLREQUEST" "$MBREQUEST" + } + + # We need a mail address +-if [[ $1 ]]; then ++if [ -n "$1" ]; then + PROFILE="$1" +-else ++else + echo "Provide the mail address for which configuration settings should be retrieved." + read -ep "Mail address: " PROFILE + fi +@@ -43,7 +44,7 @@ + + # Test Mozilla schema + AUTOCONF="autoconfig.$DOMAIN" +-if [[ $(dig +short $AUTOCONF) ]]; then ++if [ -n "$(dig +short $AUTOCONF)" ]; then + CON="http://$AUTOCONF/mail/config-v1.1.xml?emailaddress=$PROFILE" + echo + echo "Testing Autoconfig ..." +@@ -59,13 +60,12 @@ + + # Test Microsoft schema + AUTODISC="autodiscover.$DOMAIN" +-if [[ -z $(dig +short $AUTODISC) ]]; then ++if [ -z "$(dig +short $AUTODISC)" ]; then + # default domain does not exist, try to discover non-default + AUTODISC="$(dig +short -t srv _autodiscover._tcp.$DOMAIN)" +- AUTODISC="${AUTODISC//* /}" +- AUTODISC="${AUTODISC%.*}" ++ AUTODISC="$(echo $AUTODISC | sed 's,[^ ]* ,,g;s,\.[^.]*$,,')" + fi +-if [[ $AUTODISC ]]; then ++if [ -n "$AUTODISC" ]; then + # Test Microsoft Outlook schema + CON="https://$AUTODISC/autodiscover/autodiscover.xml" + cat <<-REQ >$OLREQUEST +@@ -76,7 +76,7 @@ + $PROFILE + + +- REQ ++REQ + + echo + echo "Testing Autodiscover (Microsoft Outlook(tm)) ..." +@@ -94,7 +94,7 @@ + $PROFILE + + +- REQ ++REQ + + echo + echo "Testing Autodiscover (mobilesync) ..." Modified: head/mail/automx/pkg-descr ============================================================================== --- head/mail/automx/pkg-descr Sat Dec 21 21:08:42 2013 (r337162) +++ head/mail/automx/pkg-descr Sat Dec 21 21:18:36 2013 (r337163) @@ -1,15 +1,15 @@ -automx makes setting up a mail account easy. All your users need to provide -is real name, mail address and password. Their mail client and automx will +automx makes setting up a mail account easy. All your users need to provide +is real name, mail address and password. Their mail client and automx will safely handle the rest. -automx runs on your server and handles mail account profile requests from -your mail clients. Put an end to endless phone calls trying to coach users to -configure settings, whose dialogs they can't find. Stop wasting your time +automx runs on your server and handles mail account profile requests from +your mail clients. Put an end to endless phone calls trying to coach users to +configure settings, whose dialogs they can't find. Stop wasting your time writing Tutorials nobody reads. -automx unifies Microsofts and Mozillas mail account provisioning standards in -one powerful Open Source tool. Choose from many backends, including LDAP and -SQL, and let automx create standard and individualized profiles for multiple -domains on the fly! +automx unifies Microsoft's and Mozilla's mail account provisioning standards +in one powerful Open Source tool. Choose from many backends, including LDAP +and SQL, and let automx create standard and individualized profiles for +multiple domains on the fly! WWW: http://www.automx.org/en/ Modified: head/mail/automx/pkg-plist ============================================================================== --- head/mail/automx/pkg-plist Sat Dec 21 21:08:42 2013 (r337162) +++ head/mail/automx/pkg-plist Sat Dec 21 21:18:36 2013 (r337163) @@ -1,7 +1,11 @@ bin/automx-test @unexec cmp -s %D/etc/automx.conf %D/etc/automx.conf.sample && rm -f %D/etc/automx.conf || true etc/automx.conf.sample -@exec [ -f %B/automx.conf ] || cp -p %D/%F %B/automx.conf +@exec cp -np %D/%F %B/automx.conf +man/man1/automx-test.1.gz +man/man5/automx.conf.5.gz +man/man5/automx_ldap.5.gz +man/man5/automx_sql.5.gz %%PYTHON_SITELIBDIR%%/automx/__init__.py %%PYTHON_SITELIBDIR%%/automx/config.py %%PYTHON_SITELIBDIR%%/automx/ordereddict.py