Index: head/mail/squirrelmail/Makefile =================================================================== --- head/mail/squirrelmail/Makefile (revision 393491) +++ head/mail/squirrelmail/Makefile (revision 393492) @@ -1,94 +1,95 @@ # Created by: Simon Dick # $FreeBSD$ PORTNAME= squirrelmail PORTVERSION= 20150324 CATEGORIES= mail www MASTER_SITES= LOCAL/adamw/squirrelmail DISTNAME= ${PORTNAME}-${PORTVERSION}_0200-SVN.stable DIST_SUBDIR= ${PORTNAME} MAINTAINER= adamw@FreeBSD.org COMMENT= Webmail system which accesses mail over IMAP LICENSE= GPLv2 # This snapshot tarball contains php 5.4 and 5.5 compatibility # patches, but the only guaranteed compatibility is with php 5.3. # If you encounter problems, downgrade to php 5.3. USE_PHP= session mhash gettext mbstring pcre openssl xml WANT_PHP_WEB= yes USES= gettext tar:bzip2 cpe +NO_ARCH= yes WRKSRC= ${WRKDIR}/${PORTNAME}.stable/${PORTNAME} OPTIONS_DEFINE= DATABASE LDAP DOCS DATABASE_DESC= PEAR database support (must also install a driver) # if you were using WITHOUT_WWWDIR, use SQUIRRELDIR=${PREFIX}/squirrelmail SQUIRRELDIR?= ${WWWDIR} SMUSER?= ${WWWOWN} SMGROUP?= ${WWWGRP} USERS= ${SMUSER} GROUPS= ${SMGROUP} PLIST_SUB= PORTVERSION=${PORTVERSION} \ SQUIRRELDIR="${SQUIRRELDIR:S,^${PREFIX}/,,}" \ SMUSER=${SMUSER} \ SMGROUP=${SMGROUP} SUB_FILES= pkg-message SUB_LIST= SQUIRRELDIR=${SQUIRRELDIR} SMUSER=${SMUSER} SMGROUP=${SMGROUP} CONFLICTS= squirreloutlook-[0-9]* DATABASE_RUN_DEPENDS= ${LOCALBASE}/share/pear/DB.php:${PORTSDIR}/databases/pear-DB LDAP_USE= PHP=ldap post-patch: @${REINPLACE_CMD} -e 's|ispell|${LOCALBASE}/bin/ispell|g' \ ${WRKSRC}/plugins/squirrelspell/sqspell_config.php @${REINPLACE_CMD} -e 's|/usr/bin/fortune|/usr/games/fortune|g' \ ${WRKSRC}/plugins/fortune/fortune_functions.php @${REINPLACE_CMD} -e 's|/var/local/squirrelmail|${SQUIRRELDIR}|g' \ ${WRKSRC}/config/conf.pl ${WRKSRC}/config/config_default.php ${WRKSRC}/doc/INSTALL do-build: # Rearrange the documentation @${MV} ${WRKSRC}/themes/README.themes ${WRKSRC}/doc @(cd ${WRKSRC} && \ for f in `${FIND} -E plugins -regex \ '.*(README.*|INSTALL|HISTORY)'`; \ do \ ${MKDIR} doc/`dirname $$f`; \ ${MV} $$f doc/`dirname $$f`; \ done) @${MV} ${WRKSRC}/doc/plugins/squirrelspell/doc/README ${WRKSRC}/doc/plugins/squirrelspell @${RM} -rf ${WRKSRC}/doc/plugins/squirrelspell/doc @${MV} ${WRKSRC}/plugins/squirrelspell/doc/* ${WRKSRC}/doc/plugins/squirrelspell @${RM} -f ${WRKSRC}/doc/plugins/squirrelspell/index.php @${RM} -rf ${WRKSRC}/plugins/squirrelspell/doc @${ECHO} "left_refresh=300" >> ${WRKSRC}/data/default_pref @${MV} ${WRKSRC}/config/config_local.php ${WRKSRC}/config/config_local.php.sample @${MV} ${WRKSRC}/data/default_pref ${WRKSRC}/data/default_pref.sample @${MKDIR} ${WRKSRC}/attach @${CP} -p ${WRKSRC}/data/.htaccess ${WRKSRC}/attach/.htaccess do-install: @${MKDIR} ${STAGEDIR}${PREFIX}/etc/periodic/daily ${INSTALL_SCRIPT} ${FILESDIR}/111.clean-squirrelmail ${STAGEDIR}${PREFIX}/etc/periodic/daily @${MKDIR} ${STAGEDIR}${SQUIRRELDIR} ${INSTALL_DATA} ${WRKSRC}/index.php ${STAGEDIR}${SQUIRRELDIR} ${INSTALL_SCRIPT} ${WRKSRC}/configure ${STAGEDIR}${SQUIRRELDIR} (cd ${WRKSRC} && \ ${COPYTREE_SHARE} "attach class config data functions help images include locale plugins po scripts src themes" \ ${STAGEDIR}${SQUIRRELDIR}) @${MKDIR} ${STAGEDIR}${DOCSDIR} (cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}) .include Index: head/mail/squirrelmail/bsd.squirrelmail.mk =================================================================== --- head/mail/squirrelmail/bsd.squirrelmail.mk (revision 393491) +++ head/mail/squirrelmail/bsd.squirrelmail.mk (revision 393492) @@ -1,118 +1,119 @@ # $FreeBSD$ # # $LastChangedDate: 2010-02-01 22:21:34 -0500 (Mon, 01 Feb 2010) $ # # To create a plugin, put the following at the bottom of your makefile: # # .include # .include "${.CURDIR}/../squirrelmail/bsd.squirrelmail.mk" # .include # # Variables you can set: # USE_SM_COMPAT = creates a dependency on mail/squirrelmail-compatibility-plugin # USE_GENERIC_PKGMESSAGE = to use a default message about editing config.php # *****NOTE this clobbers FILESDIR, so you cannot use this if you have any files/patch-* # SQUIRREL_PLUGIN_NAME = defaults to PORTNAME # SQUIRREL_PLUGIN_CONFIG = the config file name (for the PKGMESSAGE) # _SMSRCDIR = WRKSRC=${WRKDIR}/${_SMSRCDIR} # # # Created & tested by # Thomas Abthorpe # Philippe Audeoud # Some enhancements by # Ion-Mihai "IOnut" Tetcu # Adam Weinberger # # This code is still a work in progress, and will likely need further # tweaking. Feedback is always welcome. # MASTER_SITES?= http://www.squirrelmail.org/plugins/ PKGNAMEPREFIX?= squirrelmail- PKGNAMESUFFIX?= -plugin DIST_SUBDIR?= squirrelmail RUN_DEPENDS+= ${SQUIRRELDIR}/index.php:${PORTSDIR}/mail/squirrelmail .ifdef USE_SM_COMPAT RUN_DEPENDS+= squirrelmail-compatibility-plugin>0:${PORTSDIR}/mail/squirrelmail-compatibility-plugin .endif .ifndef WITHOUT_ACTIVATE USES+= perl5 USE_PERL5+= run .endif NO_BUILD= yes +NO_ARCH= yes NO_WRKSUBDIR= yes USE_PHP?= yes WANT_PHP_WEB= yes SQUIRREL_PLUGIN_NAME?= ${PORTNAME} PLIST_SUB+= SQUIRREL_PLUGIN_NAME=${SQUIRREL_PLUGIN_NAME} SUB_LIST+= SQUIRREL_PLUGIN_NAME=${SQUIRREL_PLUGIN_NAME} # As with mail/squirreldir, if you were using WITHOUT_WWWDIR=yes, # set SQUIRRELDIR=${PREFIX}/squirrelmail SQUIRRELDIR?= ${PREFIX}/www/squirrelmail SQUIRRELDIR_REL=${SQUIRRELDIR:S,${PREFIX}/,,} PLIST_SUB+= SQUIRRELDIR=${SQUIRRELDIR_REL} SUB_LIST+= SQUIRRELDIR=${SQUIRRELDIR} SQUIRREL_PLUGIN_CONFIG?= config.php PLIST_SUB+= SQUIRREL_PLUGIN_CONFIG=${SQUIRREL_PLUGIN_CONFIG} SUB_LIST+= SQUIRREL_PLUGIN_CONFIG=${SQUIRREL_PLUGIN_CONFIG} .if defined(USE_GENERIC_PKGMESSAGE) # NOTE: we have to change FILESDIR to make this work... FILESDIR= ${.CURDIR}/../squirrelmail/files SUB_FILES+= plugin-pkg-message PKGMESSAGE= ${WRKDIR}/plugin-pkg-message .elif exists(${FILESDIR}/pkg-message.in) SUB_FILES+= pkg-message .endif .if !target(pre-everything) pre-everything:: @${ECHO_CMD} "" .ifndef WITHOUT_ACTIVATE @${ECHO_CMD} "Activating plug-in in SquirrelMail after installation." @${ECHO_CMD} "If you don't want to automatically activate the plug-in set" @${ECHO_CMD} "WITHOUT_ACTIVATE=yes" .else @${ECHO_CMD} "NOT Activating plug-in in SquirrelMail after installation." @${ECHO_CMD} "If you want to automatically activate the plug-in unset" @${ECHO_CMD} "WITHOUT_ACTIVATE" .endif @${ECHO_CMD} "" .endif _SMSRCDIR?= ${SQUIRREL_PLUGIN_NAME} .if !target(do-install) do-install: (cd ${WRKSRC}/${_SMSRCDIR} && ${FIND} -d . | \ ${CPIO} -dump ${STAGEDIR}${SQUIRRELDIR}/plugins/${SQUIRREL_PLUGIN_NAME} >/dev/null 2>&1 && \ ${FIND} ${STAGEDIR}${SQUIRRELDIR}/plugins/${SQUIRREL_PLUGIN_NAME} \ -type d -exec chmod 755 {} \; && \ ${FIND} ${STAGEDIR}${SQUIRRELDIR}/plugins/${SQUIRREL_PLUGIN_NAME} \ -type f -exec chmod 644 {} \;) .endif .if !target(post-install) post-install: .ifndef WITHOUT_ACTIVATE @${ECHO_CMD} \ '@exec if [ -f %D/${SQUIRRELDIR_REL}/config/conf.pl -a -z "$$PACKAGE_BUILDING" ]; then %D/${SQUIRRELDIR_REL}/config/conf.pl --install-plugin ${SQUIRREL_PLUGIN_NAME}; fi' \ >> ${TMPPLIST} @${ECHO_CMD} \ '@unexec if [ -f %D/${SQUIRRELDIR_REL}/config/conf.pl -a -z "$$PACKAGE_BUILDING" ]; then %D/${SQUIRRELDIR_REL}/config/conf.pl --remove-plugin ${SQUIRREL_PLUGIN_NAME}; fi' \ >> ${TMPPLIST} .else @${ECHO_CMD} \ '@exec echo "To activate the plug-in in SquirrelMail use" && echo ""%D/${SQUIRRELDIR_REL}/config/conf.pl --install-plugin ${SQUIRREL_PLUGIN_NAME}"' \ >> ${TMPPLIST} .endif .endif