Alexander Pyhalov wrote on 01.09.2011 10:09:
Hello.
Could someone look at ports/160313 ? It is a port for pg_reorg, which is
used to rebuild your PostgreSQL tables, for example, to eliminate table
bloat.

Hi Alexander,
please consider patch attached. Major changes are:

- do not depend on postresql90 explicitly, use USE_PGSQL instead

Minor changes:

- fix tabs, portname and $FreeBSD$ string in Makefile's header
- remove PORTREVISION and DISTNAME that is not needed actually
- do not list each documentation file, install
- add LICENSE
- remove some unneded tabs, sort knobs
- use ${PORTNAME} in ${WRKSRC}
- do not list each documentation filem install them with COPYTREE_SHARE

The port runs fine here with postgresql84.


--
Regards,
Ruslan

Tinderboxing kills... the drives.
diff -ruNa pg_reorg.orig/Makefile pg_reorg/Makefile
--- pg_reorg.orig/Makefile      2011-09-01 14:14:51.000000000 +0400
+++ pg_reorg/Makefile   2011-09-01 14:40:57.000000000 +0400
@@ -1,34 +1,28 @@
-# New ports collection makefile for:   pgreorg
-# Date created:                                January 15, 2011
+# New ports collection makefile for:   pg_reorg
+# Date created:                        January 15, 2011
 # Whom:                                        a...@sfedu.ru
-# $FreeBSD: ports/databases/pgreorg/Makefile
+# $FreeBSD$
 
-PORTNAME=              pg_reorg
-PORTVERSION=           1.1.7
-PORTREVISION=          0
-CATEGORIES=            databases
-MASTER_SITES=          http://pgfoundry.org/frs/download.php/3104/
-DISTNAME=              pg_reorg-${PORTVERSION}
+PORTNAME=      pg_reorg
+PORTVERSION=   1.1.7
+CATEGORIES=    databases
+MASTER_SITES=  http://pgfoundry.org/frs/download.php/3104/
 
-MAINTAINER=            a...@sfedu.ru
-COMMENT=               PostgreSQL utility to reorganize tables
+MAINTAINER=    a...@sfedu.ru
+COMMENT=       PostgreSQL utility to reorganize tables
 
-BUILD_DEPENDS+=                
postgresql-client>=9.0:${PORTSDIR}/databases/postgresql90-client
-RUN_DEPENDS=           
postgresql-server>=9.0:${PORTSDIR}/databases/postgresql90-server
+LICENSE=       BSD
 
-USE_GMAKE=             yes
-MAKE_ENV=              USE_PGXS=0
+MAKE_ENV=      USE_PGXS=0
+USE_GMAKE=     yes
+USE_PGSQL=     yes
 
-WRKSRC=                        ${WRKDIR}/pg_reorg
+WRKSRC=                ${WRKDIR}/${PORTNAME}
 
 post-install:
 .if !defined(NOPORTDOCS)
-       ${MKDIR} ${DOCSDIR}
-       ${INSTALL_DATA} ${WRKSRC}/doc/index-ja.html    ${DOCSDIR}
-       ${INSTALL_DATA} ${WRKSRC}/doc/index.html    ${DOCSDIR}
-       ${INSTALL_DATA} ${WRKSRC}/doc/pg_reorg-ja.html    ${DOCSDIR}
-       ${INSTALL_DATA} ${WRKSRC}/doc/pg_reorg.html    ${DOCSDIR}
-       ${INSTALL_DATA} ${WRKSRC}/doc/style.css    ${DOCSDIR}
+       @${MKDIR} ${DOCSDIR}
+       @(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} \* ${DOCSDIR}/)
 .endif
 
 .include <bsd.port.mk>
_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to