From bd8b33273e5241b22b1f3b50a53b3ed7b5f0de9c Mon Sep 17 00:00:00 2001 From: Chris Rees Date: Sun, 4 Mar 2012 21:10:56 +0000 Subject: - Replace single magic postgresql-docs port with versioned ports. - Fix docs for 90 and 91-- as of 9+ the docs require building Discussed with: girgen --- databases/postgresql84-docs/Makefile | 39 ++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 databases/postgresql84-docs/Makefile (limited to 'databases/postgresql84-docs/Makefile') diff --git a/databases/postgresql84-docs/Makefile b/databases/postgresql84-docs/Makefile new file mode 100644 index 000000000000..c1a5658d8c81 --- /dev/null +++ b/databases/postgresql84-docs/Makefile @@ -0,0 +1,39 @@ +# New ports collection makefile for: PostgreSQL docs +# Date created: August 26, 2002 +# Whom: Palle Girgensohn +# +# $FreeBSD$ +# + +PORTNAME= postgresql +PORTREVISION= 0 +PKGNAMESUFFIX= -docs + +MAINTAINER= pgsql@FreeBSD.org +COMMENT= The PostgreSQL documentation set + +MASTERDIR= ${.CURDIR}/../../databases/postgresql${WANT_PGSQL_VER}-server + +USE_PGSQL= yes +WANT_PGSQL_VER?=84 + +NO_BUILD= YES +SLAVE_ONLY= YES +PATCHDIR= mustnotexist + +PGDOCSDIR?= ${DOCSDIR}/release-${PGSQL_VER} + +do-install: + @ $(MKDIR) ${PGDOCSDIR}; \ + ${GZIP_CMD} -dc ${WRKSRC}/doc/postgres.tar.gz | \ + ( cd ${PGDOCSDIR} && $(TAR) xf - ) + +post-install: + @ ${TAR} ztf ${WRKSRC}/doc/postgres.tar.gz | ${GREP} -v /$$ | \ + ${SED} "s,^,${PGDOCSDIR:S,^${PREFIX}/,,}/," >> ${TMPPLIST} ;\ + ${TAR} ztf ${WRKSRC}/doc/postgres.tar.gz | ${GREP} /$$ | \ + ${SED} "s,^,@dirrm\ ," >> ${TMPPLIST} ;\ + ${ECHO} @dirrm ${PGDOCSDIR:S,^${PREFIX}/,,} >> ${TMPPLIST} ;\ + ${ECHO} "@unexec rmdir %D/${DOCSDIR:S,^${PREFIX}/,,} 2> /dev/null || true" >> ${TMPPLIST} + +.include "${MASTERDIR}/Makefile" -- cgit v1.2.3