diff options
author | nbm <nbm@FreeBSD.org> | 2002-03-23 12:24:12 +0000 |
---|---|---|
committer | nbm <nbm@FreeBSD.org> | 2002-03-23 12:24:12 +0000 |
commit | e3e71fb19db6f2a6d1023a2464c2a2d68e1150ef (patch) | |
tree | d4a1a294656c287275594f303ed80621136db9cc /databases/phpmyadmin/Makefile | |
parent | 83c4c2299e2b59533c5851611fb8d4bb3a6ba0bd (diff) | |
download | FreeBSD-ports-e3e71fb19db6f2a6d1023a2464c2a2d68e1150ef.zip FreeBSD-ports-e3e71fb19db6f2a6d1023a2464c2a2d68e1150ef.tar.gz |
Upgrade to version 2.2.4
PR: 35600
Submitted by: Simon 'corecode' Schubert <corecode@corecode.ath.cx>
Diffstat (limited to 'databases/phpmyadmin/Makefile')
-rw-r--r-- | databases/phpmyadmin/Makefile | 37 |
1 files changed, 28 insertions, 9 deletions
diff --git a/databases/phpmyadmin/Makefile b/databases/phpmyadmin/Makefile index f2e1f89..694c6b4 100644 --- a/databases/phpmyadmin/Makefile +++ b/databases/phpmyadmin/Makefile @@ -5,26 +5,45 @@ # $FreeBSD$ # -PORTNAME= phpmyadmin -PORTVERSION= 2.1.0 +PORTNAME= phpMyAdmin +PORTVERSION= 2.2.4 CATEGORIES= databases www -MASTER_SITES= http://phpwizard.net/projects/phpMyAdmin/ -DISTNAME= phpMyAdmin_${PORTVERSION} +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= phpmyadmin +DISTFILES= ${DISTNAME}-${PHP_VERSION}${EXTRACT_SUFX} MAINTAINER= nbm@FreeBSD.org RUN_DEPENDS= ${LOCALBASE}/lib/mysql/libmysqlclient.so:${PORTSDIR}/databases/mysql323-client -.if defined(WITH_PHP4) +.if !defined(WITH_PHP3) RUN_DEPENDS+= ${LOCALBASE}/libexec/apache/libphp4.so:${PORTSDIR}/www/mod_php4 +PHP_VERSION= php .else RUN_DEPENDS+= ${LOCALBASE}/libexec/apache/libphp3.so:${PORTSDIR}/www/mod_php3 +PHP_VERSION= php3 .endif -WRKSRC= ${WRKDIR}/phpMyAdmin -NO_BUILD= YES +USE_BZIP2= yes +NO_BUILD= yes + +MYADMDIR?= www/data.default/phpMyAdmin + +ORIG_PLIST= ${PKGDIR}/pkg-plist +PLIST= ${WRKDIR}/PLIST +PLIST_SUB+= MYADMDIR=${MYADMDIR} PHP_VERSION=${PHP_VERSION} + +post-patch: + @${MV} ${WRKSRC}/config.inc.${PHP_VERSION} ${WRKSRC}/config.inc.${PHP_VERSION}.sample do-install: - ${MKDIR} ${PREFIX}/www/data.default/phpMyAdmin/ - ${CP} -R ${WRKSRC}/* ${PREFIX}/www/data.default/phpMyAdmin/ + @${CP} ${ORIG_PLIST} ${PLIST} + @f=${MYADMDIR}; while ${TEST} $${#f} -gt 0; do \ + ${ECHO} "@unexec rmdir %D/$$f || true"; \ + f=`${ECHO} $$f | ${SED} -e 's,/*[^/]*$$,,'`; \ + done >> ${PLIST} + @${MKDIR} ${PREFIX}/${MYADMDIR} + @${FIND} ${WRKSRC} ! -path '*/CVS*' | ${XARGS} -n1 ${SH} -c 'if ${TEST} -d $$0; \ + then ${MKDIR} ${PREFIX}/${MYADMDIR}$${0#${WRKSRC}}; \ + else ${INSTALL_DATA} $$0 ${PREFIX}/${MYADMDIR}$${0#${WRKSRC}}; fi' .include <bsd.port.mk> |