diff options
author | vsevolod <vsevolod@FreeBSD.org> | 2005-09-29 06:45:27 +0800 |
---|---|---|
committer | vsevolod <vsevolod@FreeBSD.org> | 2005-09-29 06:45:27 +0800 |
commit | b71f6d9bbf6ccfaa822e39dba7d48ea787f65e9c (patch) | |
tree | 2f68f9390507e3dd976dc678a9816b80a972692e /www/phpmyfaq/Makefile | |
parent | 7937e38e100910640908c15a0ec0e61a633580ea (diff) | |
download | freebsd-ports-gnome-b71f6d9bbf6ccfaa822e39dba7d48ea787f65e9c.tar.gz freebsd-ports-gnome-b71f6d9bbf6ccfaa822e39dba7d48ea787f65e9c.tar.zst freebsd-ports-gnome-b71f6d9bbf6ccfaa822e39dba7d48ea787f65e9c.zip |
- Update to 1.5.2 that fixes some security issues and have lots of
features
- Do not define WWWOWN and WWWGRP, also fix bug with PHPMYFAQ_URL variable
- Take maintainership as I use this system somewhere
Diffstat (limited to 'www/phpmyfaq/Makefile')
-rw-r--r-- | www/phpmyfaq/Makefile | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/www/phpmyfaq/Makefile b/www/phpmyfaq/Makefile index a6f2584f3bae..9d1301b922ca 100644 --- a/www/phpmyfaq/Makefile +++ b/www/phpmyfaq/Makefile @@ -6,13 +6,13 @@ # PORTNAME= phpmyfaq -PORTVERSION= 1.4.11 +PORTVERSION= 1.5.2 CATEGORIES= www MASTER_SITES= http://www.phpmyfaq.de/download/ DISTNAME= ${PORTNAME}.${PORTVERSION}.full EXTRACT_SUFX= .zip -MAINTAINER= ports@FreeBSD.org +MAINTAINER= vsevolod@FreeBSD.org COMMENT= A multilingual, completely database-driven FAQ-system WRKSRC= ${WRKDIR}/${PORTNAME}.${PORTVERSION} @@ -30,7 +30,6 @@ pre-fetch: @${ECHO_MSG} "" .endif - # Get HOSTNAME .if exists(/sbin/sysctl) HOSTNAME!= /sbin/sysctl -n kern.hostname @@ -39,22 +38,20 @@ HOSTNAME!= /usr/sbin/sysctl -n kern.hostname .endif WWWDOCROOT?= www/data -PHPMYFAQ_URL?= faq -WWWOWN?= www -WWWGRP?= www -PHPMYFAQ_URL?= ${WWWDOCROOT}/${PHPMYFAQ_URL} +PHPMYFAQ_URL?= ${WWWDOCROOT}/faq PLIST= ${WRKDIR}/pkg-plist .include <bsd.port.pre.mk> pre-install: - cd ${WRKSRC} && ${FIND} -s . -type f | \ + cd ${WRKSRC} && ${FIND} -s . \( ! -path "*CVS*" -and -type f \) | \ ${SED} -e 's|^./||;s|^|${PHPMYFAQ_URL}/|' > ${PLIST} \ - && ${FIND} -d * -type d | \ + && ${FIND} -d * \( ! -path "*CVS*" -and -type d \) | \ ${SED} -e 's|^|@dirrm ${PHPMYFAQ_URL}/|' >> ${PLIST} \ && ${ECHO_CMD} @dirrm ${PHPMYFAQ_URL}/attachments/ >> ${PLIST} \ && ${ECHO_CMD} @dirrm ${PHPMYFAQ_URL}/data/ >> ${PLIST} \ && ${ECHO_CMD} @dirrm ${PHPMYFAQ_URL}/pdf/ >> ${PLIST} \ + && ${ECHO_CMD} @dirrm ${PHPMYFAQ_URL}/xml/ >> ${PLIST} \ && ${ECHO_CMD} @dirrm ${PHPMYFAQ_URL} >> ${PLIST} do-install: @@ -65,6 +62,7 @@ do-install: @${MKDIR} ${PREFIX}/${PHPMYFAQ_URL}/attachments/ @${MKDIR} ${PREFIX}/${PHPMYFAQ_URL}/data/ @${MKDIR} ${PREFIX}/${PHPMYFAQ_URL}/pdf/ + @${MKDIR} ${PREFIX}/${PHPMYFAQ_URL}/xml/ # set the correct permissions @${CHMOD} 777 ${PREFIX}/${PHPMYFAQ_URL}/inc/ @${CHMOD} 777 ${PREFIX}/${PHPMYFAQ_URL}/attachments/ @@ -72,6 +70,8 @@ do-install: @${CHMOD} 777 ${PREFIX}/${PHPMYFAQ_URL}/images/ @${CHMOD} 777 ${PREFIX}/${PHPMYFAQ_URL}/pdf/ @${CHMOD} 777 ${PREFIX}/${PHPMYFAQ_URL}/xml/ + @${FIND} ${PREFIX}/${PHPMYFAQ_URL} \( -type f -and -path "*CVS*" \) | ${XARGS} ${RM} + @${FIND} ${PREFIX}/${PHPMYFAQ_URL} \( -type d -and -path "*CVS*" \) | ${XARGS} ${RM} -r @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${PHPMYFAQ_URL} post-install: |