diff options
author | Akinori MUSHA <knu@FreeBSD.org> | 2008-09-03 09:06:58 +0000 |
---|---|---|
committer | Akinori MUSHA <knu@FreeBSD.org> | 2008-09-03 09:06:58 +0000 |
commit | 4bd89b559981187fb30942cd50b921d51530d827 (patch) | |
tree | 4bcc88822c97aed5ddd6deade9ac5045dc9dbb90 /databases | |
parent | f87b92ad22f7a76dc1eccbd8db441226a366b02c (diff) | |
download | ports-4bd89b559981187fb30942cd50b921d51530d827.tar.gz ports-4bd89b559981187fb30942cd50b921d51530d827.zip |
Notes
Diffstat (limited to 'databases')
-rw-r--r-- | databases/mysql-q4m/Makefile | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/databases/mysql-q4m/Makefile b/databases/mysql-q4m/Makefile index 87b8864be653..e107e30c39db 100644 --- a/databases/mysql-q4m/Makefile +++ b/databases/mysql-q4m/Makefile @@ -7,6 +7,7 @@ PORTNAME= q4m PORTVERSION= 0.8.3 +PORTREVISION= 1 CATEGORIES= databases MASTER_SITES= http://q4m.31tools.com/dist/ PKGNAMEPREFIX= mysql${MYSQL_VER}- @@ -28,23 +29,33 @@ CONFIGURE_ARGS= --prefix="${PREFIX}" \ --libdir="${PREFIX}/lib/mysql/plugin" \ --with-mysql="$$(cd ${PORTSDIR}/databases/mysql${MYSQL_VER}-server; ${MAKE} -V WRKSRC)" +COPYTREE_AUTO= ${SH} -c '(${FIND} -d $$0 $$2 | ${CPIO} -dumpl $$1 >/dev/null \ + 2>&1) && \ + ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} $$1 && \ + ${FIND} $$1 -type d -exec chmod 755 {} \; && \ + ${FIND} $$1 -type f \! -perm +100 -exec chmod ${SHAREMODE} {} \; && \ + ${FIND} $$1 -type f -perm +100 -exec ${CHOWN} ${BINOWN}:${BINGRP} {} \; && \ + ${FIND} $$1 -type f -perm +100 -exec chmod ${BINMODE} {} \;' -- + +post-extract: + ${CP} -p ${WRKSRC}/support-files/install.sql ${WRKSRC}/examples/ + .if !defined(NOPORTDOCS) PORTDOCS= AUTHORS ChangeLog README doc -PORTEXAMPLES= examples support-files +PORTEXAMPLES= crawler install.sql post-install: ${MKDIR} ${DOCSDIR} .for f in ${PORTDOCS} - cd ${INSTALL_WRKSRC}; ${COPYTREE_SHARE} ${f} ${DOCSDIR} + cd ${WRKSRC}; ${COPYTREE_SHARE} ${f} ${DOCSDIR} .endfor ${MKDIR} ${EXAMPLESDIR} .for f in ${PORTEXAMPLES} - cd ${INSTALL_WRKSRC}; ${COPYTREE_SHARE} ${f} ${EXAMPLESDIR} + cd ${WRKSRC}/examples; ${COPYTREE_AUTO} ${f} ${EXAMPLESDIR} .endfor - ${RM} ${EXAMPLESDIR}/support-files/q4m-forward .endif test: - cd ${BUILD_WRKSRC}; ${PERL} run_tests.pl + cd ${WRKSRC}; ${PERL} run_tests.pl .include <bsd.port.mk> |