diff options
author | ale <ale@FreeBSD.org> | 2012-04-03 18:22:50 +0800 |
---|---|---|
committer | ale <ale@FreeBSD.org> | 2012-04-03 18:22:50 +0800 |
commit | a0dc7980cb7cf1c8e8d9e4c80565a2d4cd629abb (patch) | |
tree | 2a74c691df1cb826f487a0d52ad3f89db61055b0 /mail/nocc/Makefile | |
parent | 5e5b42fc1a925996c058da9989eba4b67110cf2f (diff) | |
download | freebsd-ports-gnome-a0dc7980cb7cf1c8e8d9e4c80565a2d4cd629abb.tar.gz freebsd-ports-gnome-a0dc7980cb7cf1c8e8d9e4c80565a2d4cd629abb.tar.zst freebsd-ports-gnome-a0dc7980cb7cf1c8e8d9e4c80565a2d4cd629abb.zip |
Update to 1.9.2 release and make pkg-plist dynamic.
Feature safe: yes
Diffstat (limited to 'mail/nocc/Makefile')
-rw-r--r-- | mail/nocc/Makefile | 35 |
1 files changed, 20 insertions, 15 deletions
diff --git a/mail/nocc/Makefile b/mail/nocc/Makefile index e119549884f3..cfc89e2aadce 100644 --- a/mail/nocc/Makefile +++ b/mail/nocc/Makefile @@ -6,12 +6,12 @@ # PORTNAME= nocc -PORTVERSION= 1.9.1 +PORTVERSION= 1.9.2 CATEGORIES= mail www MASTER_SITES= SF/${PORTNAME}/NOCC/${PORTVERSION} MAINTAINER= ale@FreeBSD.org -COMMENT= A web-based e-mail system which access POP3 and IMAP mail servers +COMMENT= A webmail system which access POP3 and IMAP mail servers USE_PHP= iconv imap mbstring pcre session WANT_PHP_WEB= yes @@ -20,24 +20,29 @@ SUB_FILES= pkg-message NO_BUILD= yes NO_WRKSUBDIR= yes +NOCCCOMP= .htaccess favicon.ico robots.txt \ + action.php common.php contacts.php contacts_manager.php \ + delete.php down_mail.php download.php get_img.php \ + help.php index.php logout.php rss.php send.php \ + ckeditor classes config html js lang themes utils + PORTDOCS= * do-install: - ${MKDIR} ${PREFIX}/www/nocc - ${CP} -Rp ${WRKSRC}/ckeditor ${WRKSRC}/classes ${WRKSRC}/config \ - ${WRKSRC}/html ${WRKSRC}/js ${WRKSRC}/lang ${WRKSRC}/themes \ - ${WRKSRC}/utils \ - ${PREFIX}/www/nocc - ${CP} -p ${WRKSRC}/*.php ${WRKSRC}/*.ico ${PREFIX}/www/nocc - @if [ ! -f ${PREFIX}/www/nocc/config/conf.php ]; then \ - ${CP} ${PREFIX}/www/nocc/config/conf.php.dist \ - ${PREFIX}/www/nocc/config/conf.php; \ - fi - ${CHOWN} -R www:www ${PREFIX}/www/nocc + @${MKDIR} ${WWWDIR} +.for i in ${NOCCCOMP} + @cd ${WRKSRC} && ${COPYTREE_SHARE} ${i} ${WWWDIR} +.endfor + @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR} .if !defined(NOPORTDOCS) - ${INSTALL} -d -o ${DOCOWN} -g ${DOCGRP} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/docs/* ${DOCSDIR} + @${MKDIR} ${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/docs/* ${DOCSDIR} .endif + @(cd ${WRKSRC}; ${FIND} ${NOCCCOMP} -not -type d) | ${SORT} | \ + ${SED} -ne 's,^,${WWWDIR_REL}/,p' >> ${TMPPLIST} + @(cd ${WRKSRC}; ${FIND} ${NOCCCOMP} -type d) | ${SORT} -r | \ + ${SED} -ne 's,^,@dirrm ${WWWDIR_REL}/,p' >> ${TMPPLIST} + @${ECHO_CMD} '@dirrm ${WWWDIR_REL}' >> ${TMPPLIST} post-install: @${CAT} ${PKGMESSAGE} |