mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
- Patch configure.in so it accepts --infodir option [1]
- While I'm here, use USE_RC_SUBR facility for rc scripts - Other cosmetic changes Reported by: pointyhat exp run
This commit is contained in:
parent
728946bb60
commit
505427c489
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=195720
6 changed files with 35 additions and 18 deletions
|
@ -18,7 +18,7 @@ PATCHFILES= pgcluster-${PORTVERSION}-patch.bz2
|
|||
PATCH_DIST_STRIP= -p0
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT=The multi-master and synchronous replication system for PostgreSQL
|
||||
COMMENT= The multi-master and synchronous replication system for PostgreSQL
|
||||
|
||||
RUN_DEPENDS= rsync:${PORTSDIR}/net/rsync
|
||||
|
||||
|
@ -29,7 +29,7 @@ USE_AUTOTOOLS= autoconf:259
|
|||
MAKE_FLAGS= # empty
|
||||
MAKEFILE= # empty
|
||||
CONFLICTS= postgresql-*
|
||||
USE_RC_SUBR= yes
|
||||
USE_RC_SUBR= pgcluster
|
||||
USE_LDCONFIG= yes
|
||||
.if defined(WITH_DEBUG)
|
||||
CONFIGURE_ARGS+= --enable-debug
|
||||
|
@ -41,13 +41,15 @@ INSTALL_TARGET= install-strip
|
|||
BASEPGSQL= 7.3.6
|
||||
.if defined(WITHOUT_PGCLUSTER_REPLICATION)
|
||||
PGRP= "@comment "
|
||||
.else
|
||||
USE_RC_SUBR+= pgreplicate
|
||||
.endif
|
||||
.if defined(WITHOUT_PGCLUSTER_LOADBALANCER)
|
||||
PGLB= "@comment "
|
||||
.else
|
||||
USE_RC_SUBR+= pglb
|
||||
.endif
|
||||
PLIST_SUB= PGRP=${PGRP} PGLB=${PGLB}
|
||||
RCSUBR_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
|
||||
RCSUBR_SED= ${SED} ${RCSUBR_SUB:S|$|!g|:S|^| -e s!%%|:S|=|%%!|}
|
||||
|
||||
MAN1= clusterdb.1 createdb.1 createlang.1 createuser.1 dropdb.1 droplang.1 \
|
||||
dropuser.1 ecpg.1 initdb.1 initlocation.1 ipcclean.1 \
|
||||
|
@ -97,17 +99,9 @@ pre-install:
|
|||
post-install:
|
||||
.if !defined(WITHOUT_PGCLUSTER_REPLICATION)
|
||||
${MAKE} WRKSRC=${WRKSRC}/src/pgcluster/pgrp do-install
|
||||
${RCSUBR_SED} ${FILESDIR}/pgreplicate.sh.tmpl > \
|
||||
${PREFIX}/etc/rc.d/pgreplicate.sh
|
||||
${CHMOD} +x ${PREFIX}/etc/rc.d/pgreplicate.sh
|
||||
.endif
|
||||
.if !defined(WITHOUT_PGCLUSTER_LOADBALANCER)
|
||||
${MAKE} WRKSRC=${WRKSRC}/src/pgcluster/pglb do-install
|
||||
${RCSUBR_SED} ${FILESDIR}/pglb.sh.tmpl > ${PREFIX}/etc/rc.d/pglb.sh
|
||||
${CHMOD} +x ${PREFIX}/etc/rc.d/pglb.sh
|
||||
.endif
|
||||
${RCSUBR_SED} ${FILESDIR}/pgcluster.sh.tmpl > \
|
||||
${PREFIX}/etc/rc.d/pgcluster.sh
|
||||
${CHMOD} +x ${PREFIX}/etc/rc.d/pgcluster.sh
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
26
databases/pgcluster/files/patch-configure.in
Normal file
26
databases/pgcluster/files/patch-configure.in
Normal file
|
@ -0,0 +1,26 @@
|
|||
--- configure.in.orig Tue Mar 2 08:44:53 2004
|
||||
+++ configure.in Mon Jul 16 16:20:48 2007
|
||||
@@ -19,11 +19,7 @@
|
||||
dnl
|
||||
dnl The GNU folks apparently haven't heard that some people don't use
|
||||
dnl Texinfo. Use this sorcery to use "docdir" instead of "infodir".
|
||||
-m4_define([info], [doc])
|
||||
-m4_define([infodir], [docdir])
|
||||
AC_INIT([PostgreSQL], [7.3.6], [pgsql-bugs@postgresql.org])
|
||||
-m4_undefine([infodir])
|
||||
-m4_undefine([info])
|
||||
AC_SUBST(docdir)
|
||||
|
||||
AC_PREREQ(2.53)
|
||||
@@ -506,6 +502,11 @@
|
||||
])
|
||||
|
||||
AC_SUBST(with_openssl)
|
||||
+
|
||||
+#
|
||||
+# Replication
|
||||
+#
|
||||
+AC_DEFINE([USE_REPLICATION], 1, [Define to build with Replication support])
|
||||
|
||||
|
||||
#
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD$
|
||||
# $FreeBSD: /tmp/pcvs/ports/databases/pgcluster/files/Attic/pgcluster.in,v 1.1 2007-07-16 10:53:48 rafan Exp $
|
||||
#
|
||||
# PROVIDE: pgcluster
|
||||
# REQUIRE: DAEMON
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD$
|
||||
# $FreeBSD: /tmp/pcvs/ports/databases/pgcluster/files/Attic/pglb.in,v 1.1 2007-07-16 10:53:48 rafan Exp $
|
||||
#
|
||||
# PROVIDE: pglb
|
||||
# REQUIRE: DAEMON
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD$
|
||||
# $FreeBSD: /tmp/pcvs/ports/databases/pgcluster/files/Attic/pgreplicate.in,v 1.1 2007-07-16 10:53:48 rafan Exp $
|
||||
#
|
||||
# PROVIDE: pgreplicate
|
||||
# REQUIRE: DAEMON
|
|
@ -26,9 +26,6 @@ bin/psql
|
|||
bin/vacuumdb
|
||||
%%PGLB%%etc/pglb.conf.sample
|
||||
%%PGRP%%etc/pgreplicate.conf.sample
|
||||
etc/rc.d/pgcluster.sh
|
||||
%%PGLB%%etc/rc.d/pglb.sh
|
||||
%%PGRP%%etc/rc.d/pgreplicate.sh
|
||||
include/ecpgerrno.h
|
||||
include/ecpglib.h
|
||||
include/ecpgtype.h
|
||||
|
|
Loading…
Add table
Reference in a new issue