ports/80004: [NEW PORT] www/phpmyfaq: A multilingual, completely database-driven FAQ-system
chinsan
chinsan at mail2000.com.tw
Sat Apr 16 14:40:14 UTC 2005
>Number: 80004
>Category: ports
>Synopsis: [NEW PORT] www/phpmyfaq: A multilingual, completely database-driven FAQ-system
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sat Apr 16 14:40:13 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: chinsan
>Release: FreeBSD 5.3-RELEASE i386
>Organization:
>Environment:
System: FreeBSD chinsan.twbbs.org 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri Nov 5 04:19:18 UTC 2004 root at harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
>Description:
phpMyFAQ is a multilingual, completely database-driven FAQ-system. It
supports various databases to store all data, PHP 4.1.0 (or higher) is
needed in order to access this data. phpMyFAQ also offers a Content
Management-System with a WYSIWYG editor and an Image Manager, flexible
multi-user support with LDAP support, a news-system, user-tracking, language
modules, enhanced automatic content negotiation, templates, extensive
XML-support, PDF-support, a backup-system and an easy to use installation
script.
WWW: http://www.phpmyfaq.de/
>How-To-Repeat:
>Fix:
--- phpmyfaq.shar begins here ---
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# .
# ./Makefile
# ./distinfo
# ./pkg-descr
# ./pkg-message
# ./pkg-plist
#
echo c - .
mkdir -p . > /dev/null 2>&1
echo x - ./Makefile
sed 's/^X//' >./Makefile << 'END-of-./Makefile'
X# New ports collection makefile for: phpmyfaq
X# Date created: 2005-04-15
X# Whom: chinsan <chinsan at mail2000.com.tw>
X#
X# $FreeBSD$
X#
X
XPORTNAME= phpmyfaq
XPORTVERSION= 1.4.8
XCATEGORIES= www
XMASTER_SITES= http://www.phpmyfaq.de/download/
XDISTNAME= ${PORTNAME}.${PORTVERSION}.full
XEXTRACT_SUFX= .zip
X
XMAINTAINER= ports at FreeBSD.org
XCOMMENT= A multilingual, completely database-driven FAQ-system
X
XWRKSRC= ${WRKDIR}/${PORTNAME}.${PORTVERSION}
XUSE_ZIP= YES
X
XUSE_PHP= mysql pcre session
XPHP4_PORT?= www/mod_php4
XNO_BUILD= YES
XWANT_PHP_WEB= YES
X
XWWWDOCROOT?= www/data
XPHPMYFAQURL?= faq
XWWWOWN?= www
XWWWGRP?= www
X
XPHPMYFAQDIR?= ${WWWDOCROOT}/${PHPMYFAQURL}
XPLIST= ${WRKDIR}/pkg-plist
XEXCEPTFILES= ${PREFIX}/${PHPMYFAQDIR}/install/bbcode2xhtml.php \
X ${PREFIX}/${PHPMYFAQDIR}/install/index.html \
X ${PREFIX}/${PHPMYFAQDIR}/install/installer.php \
X ${PREFIX}/${PHPMYFAQDIR}/install/update.php
X
X.include <bsd.port.pre.mk>
X
Xpre-install:
X cd ${WRKSRC} && ${MV} inc/data.php.original inc/data.php \
X && ${MV} inc/config.php.original inc/config.php \
X && ${FIND} -s . -type f | \
X ${SED} -e 's|^./||;s|^|${PHPMYFAQDIR}/|' > ${PLIST} \
X && ${FIND} -d * -type d | \
X ${SED} -e 's|^|@dirrm ${PHPMYFAQDIR}/|' >> ${PLIST} \
X && ${ECHO_CMD} @dirrm ${PHPMYFAQDIR}/attachment/ >> ${PLIST} \
X && ${ECHO_CMD} @dirrm ${PHPMYFAQDIR}/data/ >> ${PLIST} \
X && ${ECHO_CMD} @dirrm ${PHPMYFAQDIR}/pdf/ >> ${PLIST} \
X && ${ECHO_CMD} @dirrm ${PHPMYFAQDIR} >> ${PLIST}
X
Xdo-install:
X # Data files
X -${MKDIR} ${PREFIX}/${PHPMYFAQDIR}
X @${CHOWN} ${WWWOWN}:${WWWGRP} ${PREFIX}/${PHPMYFAQDIR}
X @${CHMOD} 755 ${PREFIX}/${PHPMYFAQDIR}
X @${CP} -R ${WRKSRC}/ ${PREFIX}/${PHPMYFAQDIR}
X @${MKDIR} ${PREFIX}/${PHPMYFAQDIR}/attachment/
X @${MKDIR} ${PREFIX}/${PHPMYFAQDIR}/data/
X @${MKDIR} ${PREFIX}/${PHPMYFAQDIR}/pdf/
X #set the correct permissions
X @${CHMOD} 757 ${PREFIX}/${PHPMYFAQDIR}/inc/
X @${CHMOD} 757 ${PREFIX}/${PHPMYFAQDIR}/attachment/
X @${CHMOD} 757 ${PREFIX}/${PHPMYFAQDIR}/data/
X @${CHMOD} 757 ${PREFIX}/${PHPMYFAQDIR}/images/
X @${CHMOD} 757 ${PREFIX}/${PHPMYFAQDIR}/pdf/
X @${CHMOD} 757 ${PREFIX}/${PHPMYFAQDIR}/xml/
X
Xpost-install:
X @${SED} \
X -e 's|%%DELETEFILES%%|${EXCEPTFILES}|' \
X -e 's|%%PHPMYFAQURL%%|${PHPMYFAQURL}|' \
X -e 's|%%PHPMYFAQDIR%%|${PREFIX}/${PHPMYFAQDIR}|' ${PKGMESSAGE}
X
X.include <bsd.port.post.mk>
END-of-./Makefile
echo x - ./distinfo
sed 's/^X//' >./distinfo << 'END-of-./distinfo'
XMD5 (phpmyfaq.1.4.8.full.zip) = e413365279287eb56e9dd0277f15472d
XSIZE (phpmyfaq.1.4.8.full.zip) = 720999
END-of-./distinfo
echo x - ./pkg-descr
sed 's/^X//' >./pkg-descr << 'END-of-./pkg-descr'
XphpMyFAQ is a multilingual, completely database-driven FAQ-system. It
Xsupports various databases to store all data, PHP 4.1.0 (or higher) is
Xneeded in order to access this data. phpMyFAQ also offers a Content
XManagement-System with a WYSIWYG editor and an Image Manager, flexible
Xmulti-user support with LDAP support, a news-system, user-tracking, language
Xmodules, enhanced automatic content negotiation, templates, extensive
XXML-support, PDF-support, a backup-system and an easy to use installation
Xscript.
X
XWWW: http://www.phpmyfaq.de/
END-of-./pkg-descr
echo x - ./pkg-message
sed 's/^X//' >./pkg-message << 'END-of-./pkg-message'
X----------------------------------------------------------------------------
X phpMyFAQ has been installed, but is not quite ready to be used yet!
X
X You have to ensure that you have a database server (or ODBC access to a
X remote database) installed and configured, and you have to ensure that
X your PHP installation has been compiled with support for your database or
X database access method.
X
X To configure phpMyFAQ point your browser to
X http://localhost/%%PHPMYFAQURL%%/install/index.php
X http://localhost/%%PHPMYFAQURL%%/admin/index.php
X
X Use the username admin and your selected password
X for your first login into the admin section.
X
X After configuring phpMyFAQ and ensuring that it is operational,
X you MUST delete the following files manually for security purposes
X from %%PHPMYFAQDIR%%:
X
X %%DELETEFILES%%
X
X----------------------------------------------------------------------------
END-of-./pkg-message
echo x - ./pkg-plist
sed 's/^X//' >./pkg-plist << 'END-of-./pkg-plist'
X at comment real PLIST will be generated in pre-install phase
END-of-./pkg-plist
exit
--- phpmyfaq.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list