1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

- correct directories needed by phpMyFAQ

- fix pkg-message

PR:		80399
Submitted by:	chinsan <chinsan@mail2000.com.tw>
This commit is contained in:
Roman Bogorodskiy 2005-04-27 12:06:59 +00:00
parent 7bd02c0947
commit e7dd159235
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=134250
2 changed files with 8 additions and 20 deletions

View File

@ -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}

View File

@ -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%%
----------------------------------------------------------------------------