2002-08-26 23:14:23 +00:00
|
|
|
# New ports collection makefile for: PostgreSQL docs
|
|
|
|
# Date created: August 26, 2002
|
2003-01-04 03:36:53 +00:00
|
|
|
# Whom: Palle Girgensohn <girgen@pingpong.net>
|
2002-08-26 23:14:23 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2003-12-04 12:00:49 +00:00
|
|
|
PORTREVISION= 0
|
2002-08-26 23:14:23 +00:00
|
|
|
PKGNAMESUFFIX= -docs
|
|
|
|
|
2003-01-04 03:36:53 +00:00
|
|
|
MAINTAINER= girgen@pingpong.net
|
2003-03-07 06:14:21 +00:00
|
|
|
COMMENT= The PostgreSQL documentation set
|
2002-08-26 23:14:23 +00:00
|
|
|
|
2003-12-04 12:00:49 +00:00
|
|
|
POSTGRESQL_SUBPORT= YES
|
|
|
|
POSTGRESQL_PORT?= databases/postgresql7
|
|
|
|
.include <${.CURDIR}/../../${POSTGRESQL_PORT}/Makefile>
|
|
|
|
DISTFILES= postgresql-docs-${PORTVERSION}${EXTRACT_SUFX}
|
|
|
|
.undef USE_GMAKE
|
|
|
|
.undef GNU_CONFIGURE
|
2002-08-26 23:14:23 +00:00
|
|
|
NO_BUILD= YES
|
|
|
|
|
|
|
|
do-install:
|
2003-09-04 11:16:38 +00:00
|
|
|
@ $(MKDIR) ${DOCSDIR}/html; \
|
2002-08-26 23:14:23 +00:00
|
|
|
${GZIP_CMD} -dc ${WRKSRC}/doc/postgres.tar.gz | \
|
2003-12-04 12:00:49 +00:00
|
|
|
( cd ${DOCSDIR}/html && $(TAR) xf - )
|
2002-08-26 23:14:23 +00:00
|
|
|
|
2003-02-10 04:54:18 +00:00
|
|
|
post-install:
|
|
|
|
@ ${TAR} ztf ${WRKSRC}/doc/postgres.tar.gz | ${GREP} -v /$$ | \
|
2003-12-04 12:00:49 +00:00
|
|
|
${SED} "s,^,${DOCSDIR:S,^${PREFIX}/,,}/html/," >> ${TMPPLIST} ;\
|
|
|
|
${TAR} ztf ${WRKSRC}/doc/postgres.tar.gz | ${GREP} /$$ | \
|
|
|
|
${SED} "s,^,@dirrm\ ," >> ${TMPPLIST} ;\
|
|
|
|
${ECHO} @dirrm ${DOCSDIR:S,^${PREFIX}/,,}/html >> ${TMPPLIST} ;\
|
|
|
|
${ECHO} "@unexec rmdir %D/${DOCSDIR:S,^${PREFIX}/,,} 2> /dev/null || true" >> ${TMPPLIST}
|
2003-02-10 04:54:18 +00:00
|
|
|
|
2002-08-26 23:14:23 +00:00
|
|
|
.include <bsd.port.mk>
|