2002-08-27 01:14:23 +02:00
|
|
|
# New ports collection makefile for: PostgreSQL docs
|
|
|
|
# Date created: August 26, 2002
|
2003-01-04 04:36:53 +01:00
|
|
|
# Whom: Palle Girgensohn <girgen@pingpong.net>
|
2002-08-27 01:14:23 +02:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2005-01-31 01:35:55 +01:00
|
|
|
PORTNAME= postgresql
|
2003-12-04 13:00:49 +01:00
|
|
|
PORTREVISION= 0
|
2002-08-27 01:14:23 +02:00
|
|
|
PKGNAMESUFFIX= -docs
|
|
|
|
|
2012-03-04 22:10:56 +01:00
|
|
|
MAINTAINER= pgsql@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= The PostgreSQL documentation set
|
2002-08-27 01:14:23 +02:00
|
|
|
|
2012-03-04 22:10:56 +01:00
|
|
|
MASTERDIR= ${.CURDIR}/../../databases/postgresql${WANT_PGSQL_VER}-server
|
2005-01-31 01:35:55 +01:00
|
|
|
|
2012-03-04 22:10:56 +01:00
|
|
|
USE_PGSQL= yes
|
|
|
|
WANT_PGSQL_VER?=84
|
2005-01-31 01:35:55 +01:00
|
|
|
|
2002-08-27 01:14:23 +02:00
|
|
|
NO_BUILD= YES
|
2005-01-31 01:35:55 +01:00
|
|
|
SLAVE_ONLY= YES
|
|
|
|
PATCHDIR= mustnotexist
|
2002-08-27 01:14:23 +02:00
|
|
|
|
2007-09-17 18:45:00 +02:00
|
|
|
PGDOCSDIR?= ${DOCSDIR}/release-${PGSQL_VER}
|
|
|
|
|
2002-08-27 01:14:23 +02:00
|
|
|
do-install:
|
2007-09-17 18:45:00 +02:00
|
|
|
@ $(MKDIR) ${PGDOCSDIR}; \
|
2002-08-27 01:14:23 +02:00
|
|
|
${GZIP_CMD} -dc ${WRKSRC}/doc/postgres.tar.gz | \
|
2007-09-17 18:45:00 +02:00
|
|
|
( cd ${PGDOCSDIR} && $(TAR) xf - )
|
2002-08-27 01:14:23 +02:00
|
|
|
|
2003-02-10 05:54:18 +01:00
|
|
|
post-install:
|
|
|
|
@ ${TAR} ztf ${WRKSRC}/doc/postgres.tar.gz | ${GREP} -v /$$ | \
|
2007-09-17 18:45:00 +02:00
|
|
|
${SED} "s,^,${PGDOCSDIR:S,^${PREFIX}/,,}/," >> ${TMPPLIST} ;\
|
2003-12-04 13:00:49 +01:00
|
|
|
${TAR} ztf ${WRKSRC}/doc/postgres.tar.gz | ${GREP} /$$ | \
|
|
|
|
${SED} "s,^,@dirrm\ ," >> ${TMPPLIST} ;\
|
2007-09-17 18:45:00 +02:00
|
|
|
${ECHO} @dirrm ${PGDOCSDIR:S,^${PREFIX}/,,} >> ${TMPPLIST} ;\
|
2007-09-28 02:06:22 +02:00
|
|
|
${ECHO} "@unexec rmdir %D/${DOCSDIR:S,^${PREFIX}/,,} 2> /dev/null || true" >> ${TMPPLIST}
|
2003-02-10 05:54:18 +01:00
|
|
|
|
2005-01-31 01:35:55 +01:00
|
|
|
.include "${MASTERDIR}/Makefile"
|