freebsd-ports/databases/pglesslog/Makefile
Rene Ladan 27ff0e5582 databases/pglesslog: update to 1.4.2 to be compatible with PostgreSQL 9.0
The previous version of this port was compatible with PostgreSQL 8.4 which
expired on 2015-05-10.

While here, strip binaries.

PR:		200096
Submitted by:	myself
Approved by:	maintainer timeout (kuriyama, 14 days)
2015-05-24 13:21:26 +00:00

25 lines
724 B
Makefile

# $FreeBSD$
PORTNAME= pglesslog
PORTVERSION= 1.4.2
CATEGORIES= databases
MASTER_SITES= http://pgfoundry.org/frs/download.php/2718/
DISTNAME= pg_lesslog_${PORTVERSION}_pg90_beta
MAINTAINER= kuriyama@FreeBSD.org
COMMENT= Reduce size of PostgreSQL archive log files by replacing backup blocks
USES= gmake pgsql:9.0
WANT_PGSQL= server:build
WRKSRC= ${WRKDIR}/pg_lesslog_${PORTVERSION}_pg90
PGSQL_PORT= databases/postgresql${PGSQL_VER:S,.,,}
PGSQL_SRCDIR= `cd ${PORTSDIR}/${PGSQL_PORT}-server; ${MAKE} -VWRKSRC`
pre-build:
${REINPLACE_CMD} "s|top_builddir = ../..|top_builddir = ${PGSQL_SRCDIR}|" ${WRKSRC}/Makefile.*
post-build:
${STRIP_CMD} ${WRKSRC}/pg_compresslog ${WRKSRC}/pg_decompresslog
.include <bsd.port.mk>