aboutsummaryrefslogtreecommitdiff
path: root/databases/postgresql-docs/Makefile
diff options
context:
space:
mode:
authorSean Chittenden <seanc@FreeBSD.org>2003-02-10 04:54:18 +0000
committerSean Chittenden <seanc@FreeBSD.org>2003-02-10 04:54:18 +0000
commit277b5ad6c81c3617623daa612d5cce6a3060b240 (patch)
tree359e5bff79017ac33ce8765fcf7dbf1d96ccc5d8 /databases/postgresql-docs/Makefile
parent35e3f1661ab34dc871d75dc8aa16b4125234776c (diff)
Notes
Diffstat (limited to 'databases/postgresql-docs/Makefile')
-rw-r--r--databases/postgresql-docs/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/databases/postgresql-docs/Makefile b/databases/postgresql-docs/Makefile
index 5ee08f15f5a4..6326189e0af9 100644
--- a/databases/postgresql-docs/Makefile
+++ b/databases/postgresql-docs/Makefile
@@ -14,12 +14,22 @@ POSTGRESQL_SUBPORT= YES
POSTGRESQL_PORT?= databases/postgresql7
.include <${.CURDIR}/../../${POSTGRESQL_PORT}/Makefile>
DISTFILES= postgresql-docs-${PORTVERSION}${EXTRACT_SUFX}
+.undef USE_GMAKE
.undef GNU_CONFIGURE
NO_BUILD= YES
do-install:
- $(MKDIR) ${PREFIX}/share/doc/postgresql/html; \
+ @ $(MKDIR) ${PREFIX}/share/doc/postgresql/html; \
${GZIP_CMD} -dc ${WRKSRC}/doc/postgres.tar.gz | \
( cd $(PREFIX)/share/doc/postgresql/html && $(TAR) xf - )
+post-install:
+ @ ${TAR} ztf ${WRKSRC}/doc/postgres.tar.gz | ${GREP} -v /$$ | \
+ ${XARGS} printf "share/doc/postgresql/html/%s\n" >> ${TMPPLIST} ;\
+ for dir in `$(TAR) ztf ${WRKSRC}/doc/postgres.tar.gz | ${GREP} /$$` ; do \
+ ${ECHO} @dirrm $$dir >> ${TMPPLIST} ;\
+ done ;\
+ ${ECHO} @dirrm share/doc/postgresql/html >> ${TMPPLIST} ;\
+ ${ECHO} '@unexec rmdir %D/share/postgresql 2> /dev/null || true' >> ${TMPPLIST}
+
.include <bsd.port.mk>