diff options
author | Roman Bogorodskiy <novel@FreeBSD.org> | 2005-04-27 12:06:59 +0000 |
---|---|---|
committer | Roman Bogorodskiy <novel@FreeBSD.org> | 2005-04-27 12:06:59 +0000 |
commit | e7dd1592356c578dcc86b14cf4db05eb1e0af05e (patch) | |
tree | 8b36ecdb7bd5dc9fcc61961b98f0fabab0476171 /www | |
parent | 7bd02c0947b2ca915161f232a7c34937357e0cc2 (diff) | |
download | ports-e7dd1592356c578dcc86b14cf4db05eb1e0af05e.tar.gz ports-e7dd1592356c578dcc86b14cf4db05eb1e0af05e.zip |
Notes
Diffstat (limited to 'www')
-rw-r--r-- | www/phpmyfaq/Makefile | 20 | ||||
-rw-r--r-- | www/phpmyfaq/pkg-message | 8 |
2 files changed, 8 insertions, 20 deletions
diff --git a/www/phpmyfaq/Makefile b/www/phpmyfaq/Makefile index 7a8794345da7..3a54948ff877 100644 --- a/www/phpmyfaq/Makefile +++ b/www/phpmyfaq/Makefile @@ -7,6 +7,7 @@ PORTNAME= phpmyfaq PORTVERSION= 1.4.8 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= http://www.phpmyfaq.de/download/ DISTNAME= ${PORTNAME}.${PORTVERSION}.full @@ -30,21 +31,15 @@ WWWGRP?= www PHPMYFAQDIR?= ${WWWDOCROOT}/${PHPMYFAQURL} PLIST= ${WRKDIR}/pkg-plist -EXCEPTFILES= ${PREFIX}/${PHPMYFAQDIR}/install/bbcode2xhtml.php \ - ${PREFIX}/${PHPMYFAQDIR}/install/index.html \ - ${PREFIX}/${PHPMYFAQDIR}/install/installer.php \ - ${PREFIX}/${PHPMYFAQDIR}/install/update.php .include <bsd.port.pre.mk> pre-install: - cd ${WRKSRC} && ${MV} inc/data.php.original inc/data.php \ - && ${MV} inc/config.php.original inc/config.php \ - && ${FIND} -s . -type f | \ + cd ${WRKSRC} && ${FIND} -s . -type f | \ ${SED} -e 's|^./||;s|^|${PHPMYFAQDIR}/|' > ${PLIST} \ && ${FIND} -d * -type d | \ ${SED} -e 's|^|@dirrm ${PHPMYFAQDIR}/|' >> ${PLIST} \ - && ${ECHO_CMD} @dirrm ${PHPMYFAQDIR}/attachment/ >> ${PLIST} \ + && ${ECHO_CMD} @dirrm ${PHPMYFAQDIR}/attachments/ >> ${PLIST} \ && ${ECHO_CMD} @dirrm ${PHPMYFAQDIR}/data/ >> ${PLIST} \ && ${ECHO_CMD} @dirrm ${PHPMYFAQDIR}/pdf/ >> ${PLIST} \ && ${ECHO_CMD} @dirrm ${PHPMYFAQDIR} >> ${PLIST} @@ -52,23 +47,22 @@ pre-install: do-install: # Data files -${MKDIR} ${PREFIX}/${PHPMYFAQDIR} - @${CHOWN} www:www ${PREFIX}/${PHPMYFAQDIR} @${CHMOD} 755 ${PREFIX}/${PHPMYFAQDIR} @${CP} -R ${WRKSRC}/ ${PREFIX}/${PHPMYFAQDIR} - @${MKDIR} ${PREFIX}/${PHPMYFAQDIR}/attachment/ + @${MKDIR} ${PREFIX}/${PHPMYFAQDIR}/attachments/ @${MKDIR} ${PREFIX}/${PHPMYFAQDIR}/data/ @${MKDIR} ${PREFIX}/${PHPMYFAQDIR}/pdf/ - #set the correct permissions + # set the correct permissions @${CHMOD} 777 ${PREFIX}/${PHPMYFAQDIR}/inc/ - @${CHMOD} 777 ${PREFIX}/${PHPMYFAQDIR}/attachment/ + @${CHMOD} 777 ${PREFIX}/${PHPMYFAQDIR}/attachments/ @${CHMOD} 777 ${PREFIX}/${PHPMYFAQDIR}/data/ @${CHMOD} 777 ${PREFIX}/${PHPMYFAQDIR}/images/ @${CHMOD} 777 ${PREFIX}/${PHPMYFAQDIR}/pdf/ @${CHMOD} 777 ${PREFIX}/${PHPMYFAQDIR}/xml/ + @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${PHPMYFAQDIR} post-install: @${SED} \ - -e 's|%%DELETEFILES%%|${EXCEPTFILES}|' \ -e 's|%%PHPMYFAQURL%%|${PHPMYFAQURL}|' \ -e 's|%%PHPMYFAQDIR%%|${PREFIX}/${PHPMYFAQDIR}|' ${PKGMESSAGE} diff --git a/www/phpmyfaq/pkg-message b/www/phpmyfaq/pkg-message index 554c094fd847..eb927cf2df78 100644 --- a/www/phpmyfaq/pkg-message +++ b/www/phpmyfaq/pkg-message @@ -7,16 +7,10 @@ database access method. To configure phpMyFAQ point your browser to - http://localhost/%%PHPMYFAQURL%%/install/index.php + http://localhost/%%PHPMYFAQURL%%/install/installer.php http://localhost/%%PHPMYFAQURL%%/admin/index.php Use the username admin and your selected password for your first login into the admin section. - After configuring phpMyFAQ and ensuring that it is operational, - you MUST delete the following files manually for security purposes - from %%PHPMYFAQDIR%%: - - %%DELETEFILES%% - ---------------------------------------------------------------------------- |