2001-04-10 20:56:15 +00:00
|
|
|
# New ports collection makefile for: phpnuke
|
|
|
|
# Date created: 10 April 2001
|
|
|
|
# Whom: will
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= phpnuke
|
2004-02-11 15:59:19 +00:00
|
|
|
PORTVERSION= 6.9
|
2001-04-10 20:56:15 +00:00
|
|
|
CATEGORIES= www
|
2001-07-22 05:06:44 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
2001-04-10 20:56:15 +00:00
|
|
|
DISTNAME= PHP-Nuke-${PORTVERSION}
|
|
|
|
|
2002-01-15 04:35:04 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 19:21:36 +00:00
|
|
|
COMMENT= An automated website package to distribute and manage content
|
2001-04-10 20:56:15 +00:00
|
|
|
|
2004-02-25 12:18:19 +00:00
|
|
|
FORBIDDEN= "SQL injection vulnerability in Php-Nuke <= 7.1.0"
|
2004-06-21 21:27:46 +00:00
|
|
|
EXPIRATION_DATE=2004-08-20
|
|
|
|
DEPRECATED= SQL injection vulnerability in Php-Nuke <= 7.1.0
|
2004-02-25 12:18:19 +00:00
|
|
|
|
2002-01-15 04:35:04 +00:00
|
|
|
.if defined(WITH_PHP3)
|
2004-02-11 22:16:16 +00:00
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/libexec/apache/libphp3.so:${PORTSDIR}/www/mod_php3
|
2002-01-15 04:35:04 +00:00
|
|
|
.else
|
2004-02-11 22:16:16 +00:00
|
|
|
USE_PHP= yes
|
|
|
|
WANT_PHP_WEB= yes
|
2001-05-19 17:22:07 +00:00
|
|
|
.endif
|
|
|
|
|
2003-08-28 12:57:52 +00:00
|
|
|
USE_MYSQL= yes
|
|
|
|
|
2001-04-10 20:56:15 +00:00
|
|
|
NO_BUILD= yes
|
|
|
|
NO_WRKSUBDIR= yes
|
2004-02-11 15:59:19 +00:00
|
|
|
PHPNUKEWWW= ${PREFIX}/www/${PORTNAME}
|
|
|
|
DOCS= ADDONS-MODULES BLOCKS CHANGES CREDITS INSTALL README SUPPORT TODO
|
2001-07-02 16:03:15 +00:00
|
|
|
|
2001-12-31 10:20:19 +00:00
|
|
|
pre-everything::
|
2002-01-15 04:35:04 +00:00
|
|
|
.if !defined(WITH_PHP3)
|
2001-07-02 16:03:15 +00:00
|
|
|
@${ECHO_MSG} ""
|
2002-01-15 04:35:04 +00:00
|
|
|
@${ECHO_MSG} "Press CTRL-C and define WITH_PHP3 if you want"
|
|
|
|
@${ECHO_MSG} "to use PHP Nuke with PHP3. PHP4 is used by default."
|
2001-07-02 16:03:15 +00:00
|
|
|
@${ECHO_MSG} ""
|
|
|
|
.endif
|
2001-04-10 20:56:15 +00:00
|
|
|
|
|
|
|
do-install:
|
2004-02-11 15:59:19 +00:00
|
|
|
@-${MKDIR} ${PHPNUKEWWW}/html ${PHPNUKEWWW}/sql
|
|
|
|
@${CP} -Rp ${WRKDIR}/html ${WRKDIR}/sql ${PHPNUKEWWW}
|
2001-04-10 20:56:15 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
.for FILE in ${DOCS}
|
2004-02-11 15:59:19 +00:00
|
|
|
@${INSTALL_DATA} ${WRKDIR}/${FILE} ${PHPNUKEWWW}
|
2001-04-10 20:56:15 +00:00
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
2004-02-11 15:59:19 +00:00
|
|
|
post-install:
|
|
|
|
@cd ${PREFIX}; ${FIND} ${PHPNUKEWWW:S/^${PREFIX}\///} -type f -o -type l | \
|
|
|
|
${SED} -e 's,^\.,${PHPNUKEWWW:S|${PREFIX}/||},' >>${TMPPLIST}
|
2004-02-11 22:16:16 +00:00
|
|
|
@cd ${PREFIX}; ${FIND} ${PHPNUKEWWW:S/^${PREFIX}\///} -type d | ${SORT} -r | ${SED} -e 's/^/@dirrm /g' >>${TMPPLIST}
|
2004-02-11 15:59:19 +00:00
|
|
|
|
2004-02-11 22:16:16 +00:00
|
|
|
.include <bsd.port.mk>
|