diff options
author | pav <pav@FreeBSD.org> | 2005-07-07 02:15:04 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2005-07-07 02:15:04 +0800 |
commit | 44e40751344374bf6a1c662fa88934b93a4184a5 (patch) | |
tree | 7dd6672ee8e5c8a5460851577a5058f82903df12 /www/phpmyfaq | |
parent | 69038e303077105feb61246fc056baeec7c6583b (diff) | |
download | freebsd-ports-gnome-44e40751344374bf6a1c662fa88934b93a4184a5.tar.gz freebsd-ports-gnome-44e40751344374bf6a1c662fa88934b93a4184a5.tar.zst freebsd-ports-gnome-44e40751344374bf6a1c662fa88934b93a4184a5.zip |
- Update to 1.4.9
- Take maintainership
PR: ports/83052
Submitted by: chinsan <chinsan.tw@gmail.com>
Security: CAN-2005-1921
http://www.phpmyfaq.de/advisory_2005-06-29.php
Diffstat (limited to 'www/phpmyfaq')
-rw-r--r-- | www/phpmyfaq/Makefile | 63 | ||||
-rw-r--r-- | www/phpmyfaq/distinfo | 4 | ||||
-rw-r--r-- | www/phpmyfaq/pkg-message | 4 |
3 files changed, 38 insertions, 33 deletions
diff --git a/www/phpmyfaq/Makefile b/www/phpmyfaq/Makefile index 3a54948ff877..b4ee53481ebc 100644 --- a/www/phpmyfaq/Makefile +++ b/www/phpmyfaq/Makefile @@ -6,64 +6,69 @@ # PORTNAME= phpmyfaq -PORTVERSION= 1.4.8 -PORTREVISION= 1 +PORTVERSION= 1.4.9 CATEGORIES= www MASTER_SITES= http://www.phpmyfaq.de/download/ DISTNAME= ${PORTNAME}.${PORTVERSION}.full EXTRACT_SUFX= .zip -MAINTAINER= ports@FreeBSD.org +MAINTAINER= chinsan.tw@gmail.com COMMENT= A multilingual, completely database-driven FAQ-system -WRKSRC= ${WRKDIR}/${PORTNAME}.${PORTVERSION}.full/${PORTNAME}.${PORTVERSION} +WRKSRC= ${WRKDIR}/${PORTNAME}.${PORTVERSION} USE_ZIP= YES -USE_PHP= mysql pcre session +USE_PHP= mysql pcre pdf session xml xmlrpc zlib PHP4_PORT?= www/mod_php4 NO_BUILD= YES WANT_PHP_WEB= YES +pre-fetch: +.if !defined(PHPMYFAQ_DIR) + @${ECHO_MSG} "" + @${ECHO_MSG} "Define PHPMYFAQ_DIR to override default of '${PHPMYFAQ_DIR}'." + @${ECHO_MSG} "" +.endif + WWWDOCROOT?= www/data -PHPMYFAQURL?= faq +PHPMYFAQ_URL?= faq WWWOWN?= www WWWGRP?= www - -PHPMYFAQDIR?= ${WWWDOCROOT}/${PHPMYFAQURL} +PHPMYFAQ_DIR?= ${WWWDOCROOT}/${PHPMYFAQ_URL} PLIST= ${WRKDIR}/pkg-plist .include <bsd.port.pre.mk> pre-install: cd ${WRKSRC} && ${FIND} -s . -type f | \ - ${SED} -e 's|^./||;s|^|${PHPMYFAQDIR}/|' > ${PLIST} \ + ${SED} -e 's|^./||;s|^|${PHPMYFAQ_DIR}/|' > ${PLIST} \ && ${FIND} -d * -type d | \ - ${SED} -e 's|^|@dirrm ${PHPMYFAQDIR}/|' >> ${PLIST} \ - && ${ECHO_CMD} @dirrm ${PHPMYFAQDIR}/attachments/ >> ${PLIST} \ - && ${ECHO_CMD} @dirrm ${PHPMYFAQDIR}/data/ >> ${PLIST} \ - && ${ECHO_CMD} @dirrm ${PHPMYFAQDIR}/pdf/ >> ${PLIST} \ - && ${ECHO_CMD} @dirrm ${PHPMYFAQDIR} >> ${PLIST} + ${SED} -e 's|^|@dirrm ${PHPMYFAQ_DIR}/|' >> ${PLIST} \ + && ${ECHO_CMD} @dirrm ${PHPMYFAQ_DIR}/attachments/ >> ${PLIST} \ + && ${ECHO_CMD} @dirrm ${PHPMYFAQ_DIR}/data/ >> ${PLIST} \ + && ${ECHO_CMD} @dirrm ${PHPMYFAQ_DIR}/pdf/ >> ${PLIST} \ + && ${ECHO_CMD} @dirrm ${PHPMYFAQ_DIR} >> ${PLIST} do-install: # Data files - -${MKDIR} ${PREFIX}/${PHPMYFAQDIR} - @${CHMOD} 755 ${PREFIX}/${PHPMYFAQDIR} - @${CP} -R ${WRKSRC}/ ${PREFIX}/${PHPMYFAQDIR} - @${MKDIR} ${PREFIX}/${PHPMYFAQDIR}/attachments/ - @${MKDIR} ${PREFIX}/${PHPMYFAQDIR}/data/ - @${MKDIR} ${PREFIX}/${PHPMYFAQDIR}/pdf/ + -${MKDIR} ${PREFIX}/${PHPMYFAQ_DIR} + @${CHMOD} 755 ${PREFIX}/${PHPMYFAQ_DIR} + @${CP} -R ${WRKSRC}/ ${PREFIX}/${PHPMYFAQ_DIR} + @${MKDIR} ${PREFIX}/${PHPMYFAQ_DIR}/attachments/ + @${MKDIR} ${PREFIX}/${PHPMYFAQ_DIR}/data/ + @${MKDIR} ${PREFIX}/${PHPMYFAQ_DIR}/pdf/ # set the correct permissions - @${CHMOD} 777 ${PREFIX}/${PHPMYFAQDIR}/inc/ - @${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} + @${CHMOD} 777 ${PREFIX}/${PHPMYFAQ_DIR}/inc/ + @${CHMOD} 777 ${PREFIX}/${PHPMYFAQ_DIR}/attachments/ + @${CHMOD} 777 ${PREFIX}/${PHPMYFAQ_DIR}/data/ + @${CHMOD} 777 ${PREFIX}/${PHPMYFAQ_DIR}/images/ + @${CHMOD} 777 ${PREFIX}/${PHPMYFAQ_DIR}/pdf/ + @${CHMOD} 777 ${PREFIX}/${PHPMYFAQ_DIR}/xml/ + @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${PHPMYFAQ_DIR} post-install: @${SED} \ - -e 's|%%PHPMYFAQURL%%|${PHPMYFAQURL}|' \ - -e 's|%%PHPMYFAQDIR%%|${PREFIX}/${PHPMYFAQDIR}|' ${PKGMESSAGE} + -e 's|%%PHPMYFAQ_URL%%|${PHPMYFAQ_URL}|' \ + -e 's|%%PHPMYFAQ_DIR%%|${PREFIX}/${PHPMYFAQ_DIR}|' ${PKGMESSAGE} .include <bsd.port.post.mk> diff --git a/www/phpmyfaq/distinfo b/www/phpmyfaq/distinfo index b6cd506db5ad..12e743c07c1a 100644 --- a/www/phpmyfaq/distinfo +++ b/www/phpmyfaq/distinfo @@ -1,2 +1,2 @@ -MD5 (phpmyfaq.1.4.8.full.zip) = 8bedaf800505a784de24de9b70acdcd7 -SIZE (phpmyfaq.1.4.8.full.zip) = 737145 +MD5 (phpmyfaq.1.4.9.full.zip) = 1d383a35f2df8b9d7edd2359ca738694 +SIZE (phpmyfaq.1.4.9.full.zip) = 730758 diff --git a/www/phpmyfaq/pkg-message b/www/phpmyfaq/pkg-message index eb927cf2df78..b94ecaada5d9 100644 --- a/www/phpmyfaq/pkg-message +++ b/www/phpmyfaq/pkg-message @@ -7,8 +7,8 @@ database access method. To configure phpMyFAQ point your browser to - http://localhost/%%PHPMYFAQURL%%/install/installer.php - http://localhost/%%PHPMYFAQURL%%/admin/index.php + http://localhost/%%PHPMYFAQ_URL%%/install/installer.php + http://localhost/%%PHPMYFAQ_URL%%/admin/index.php Use the username admin and your selected password for your first login into the admin section. |