diff options
Diffstat (limited to 'databases/phpmyadmin/Makefile')
-rw-r--r-- | databases/phpmyadmin/Makefile | 67 |
1 files changed, 32 insertions, 35 deletions
diff --git a/databases/phpmyadmin/Makefile b/databases/phpmyadmin/Makefile index c30976ac3b5..f98a59d9e80 100644 --- a/databases/phpmyadmin/Makefile +++ b/databases/phpmyadmin/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.18 2004/10/31 23:47:32 jdolecek Exp $ +# $NetBSD: Makefile,v 1.19 2004/11/06 13:28:32 jdolecek Exp $ DISTNAME= phpMyAdmin-${DIST_VERSION} PKGNAME= phpmyadmin-${DIST_VERSION} @@ -18,7 +18,7 @@ MESSAGE_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR} PMCONFFILE=${PMCONFFILE} \ PMDIR=${PMDIR} EXDIR=${EXDIR} CONF_INC_PHP= ${PREFIX}/share/phpmyadmin/config.inc.php -DIST_VERSION= 2.5.7-pl1 +DIST_VERSION= 2.6.0-pl2 DOC_FILES= CREDITS ChangeLog \ Documentation.txt INSTALL LICENSE README \ RELEASE-DATE-${DIST_VERSION} TODO @@ -27,62 +27,59 @@ EXDIR= ${PREFIX}/share/examples/phpmyadmin PMCONFFILE= ${PKG_SYSCONFDIR}/config.inc.php PMDIR= ${PREFIX}/share/phpmyadmin NO_BUILDLINK= YES -CONF_FILES= ${EXDIR}/phpmyadmin.conf ${PKG_SYSCONFDIR}/phpmyadmin.conf +CONF_FILES= ${EXDIR}/config.inc.php ${PKG_SYSCONFDIR}/config.inc.php USE_PKGINSTALL= YES PKG_SYSCONFSUBDIR?= phpmyadmin SUBST_CLASSES= paths -SUBST_STAGE.paths= post-build +SUBST_STAGE.paths= post-extract SUBST_FILES.paths= ${WRKDIR}/phpmyadmin.conf SUBST_SED.paths= -e "s|@PMDIR@|${PMDIR}|g" SUBST_MESSAGE.paths= "Fixing paths." -do-build: +NO_BUILD= # defined +NO_CONFIGURE= # defined + +INSTALL_DIRS= css lang libraries libraries/auth libraries/dbg \ + libraries/dbi libraries/export libraries/fpdf \ + libraries/fpdf/font libraries/transformations \ + themes themes/darkblue_orange \ + themes/darkblue_orange/css themes/darkblue_orange/img \ + themes/original themes/original/css themes/original/img + +pre-extract: @${CP} ${FILESDIR}/phpmyadmin.conf ${WRKDIR}/phpmyadmin.conf do-install: - #${INSTALL_DATA_DIR} ${PMCONFDIR} ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/phpmyadmin ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/phpmyadmin ${INSTALL_DATA_DIR} ${PMDIR} - ${INSTALL_DATA_DIR} ${PMDIR}/css - ${INSTALL_DATA_DIR} ${PMDIR}/images - ${INSTALL_DATA_DIR} ${PMDIR}/lang - ${INSTALL_DATA_DIR} ${PMDIR}/libraries - ${INSTALL_DATA_DIR} ${PMDIR}/libraries/auth - ${INSTALL_DATA_DIR} ${PMDIR}/libraries/dbg - ${INSTALL_DATA_DIR} ${PMDIR}/libraries/export - ${INSTALL_DATA_DIR} ${PMDIR}/libraries/fpdf - ${INSTALL_DATA_DIR} ${PMDIR}/libraries/fpdf/font - ${INSTALL_DATA_DIR} ${PMDIR}/libraries/transformations + for dir in ${INSTALL_DIRS}; do \ + ${INSTALL_DATA_DIR} ${PMDIR}/$$dir; \ + done ${INSTALL_DATA_DIR} ${PMDIR}/scripts - ${RM} -f ${CONF_INC_PHP} - ${INSTALL_SCRIPT} ${WRKSRC}/*.php ${PMDIR} - ${TEST} -f ${PMCONFFILE} || ${CP} -p ${CONF_INC_PHP} ${PMCONFFILE} + ${INSTALL_DATA} ${WRKSRC}/*.php ${PMDIR} + ${INSTALL_DATA} ${WRKSRC}/*.css ${PMDIR} ${MV} ${CONF_INC_PHP} ${EXDIR} ${LN} -s ${PMCONFFILE} ${CONF_INC_PHP} ${INSTALL_DATA} ${WRKSRC}/Documentation.html ${PMDIR} - ${INSTALL_DATA} ${WRKSRC}/images/*.* ${PMDIR}/images - ${INSTALL_SCRIPT} ${WRKSRC}/lang/*.php ${PMDIR}/lang - ${INSTALL_SCRIPT} ${WRKSRC}/css/*.php ${PMDIR}/css - - ${INSTALL_SCRIPT} ${WRKSRC}/libraries/*.* ${PMDIR}/libraries - ${INSTALL_SCRIPT} ${WRKSRC}/libraries/auth/*.php ${PMDIR}/libraries/auth - ${INSTALL_SCRIPT} ${WRKSRC}/libraries/dbg/*.php ${PMDIR}/libraries/dbg - ${INSTALL_SCRIPT} ${WRKSRC}/libraries/export/*.php \ - ${PMDIR}/libraries/export - ${INSTALL_SCRIPT} ${WRKSRC}/libraries/fpdf/*.php ${PMDIR}/libraries/fpdf - ${INSTALL_SCRIPT} ${WRKSRC}/libraries/fpdf/font/*.php \ - ${PMDIR}/libraries/fpdf/font - ${INSTALL_SCRIPT} ${WRKSRC}/libraries/transformations/*.php \ - ${PMDIR}/libraries/transformations - ${INSTALL_SCRIPT} ${WRKSRC}/scripts/*.* ${PMDIR}/scripts + ${INSTALL_DATA} ${WRKSRC}/translators.html ${PMDIR} + + for dir in ${INSTALL_DIRS}; do \ + for file in "${WRKSRC}/$$dir"/*; do \ + ${TEST} -f "$$file" -a `${BASENAME} "$$file" .sh` = `${BASENAME} "$$file"` && \ + ${INSTALL_DATA} $$file ${PMDIR}/$$dir; \ + done \ + done + + ${INSTALL_DATA} ${WRKSRC}/scripts/*.sql ${PMDIR}/scripts + ${INSTALL_SCRIPT} ${WRKSRC}/scripts/convertcfg.pl ${PMDIR}/scripts cd ${WRKSRC} && \ ${INSTALL_DATA} ${DOC_FILES} ${PREFIX}/share/doc/phpmyadmin - ${INSTALL_DATA} ${WRKDIR}/phpmyadmin.conf ${EXDIR} + ${INSTALL_DATA} ${WRKDIR}/phpmyadmin.conf ${EXDIR}/apache.conf .include "../../mk/bsd.pkg.mk" |