aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2011-06-09 00:32:33 +0800
committerbapt <bapt@FreeBSD.org>2011-06-09 00:32:33 +0800
commitc8bc68be935a32414dc0d4121ed9560f365b84e1 (patch)
treeacf4c8e663b64644a94e66ebd1e0f05b571b04ff /databases
parentcbfe8b08a0586f0eade9d6aea81b2aa8aa82984d (diff)
downloadfreebsd-ports-gnome-c8bc68be935a32414dc0d4121ed9560f365b84e1.tar.gz
freebsd-ports-gnome-c8bc68be935a32414dc0d4121ed9560f365b84e1.tar.zst
freebsd-ports-gnome-c8bc68be935a32414dc0d4121ed9560f365b84e1.zip
- Switch to USERS/GROUPS macros
- Bump portrevision
Diffstat (limited to 'databases')
-rw-r--r--databases/pgcluster/Makefile8
-rw-r--r--databases/pgcluster/pkg-install65
2 files changed, 3 insertions, 70 deletions
diff --git a/databases/pgcluster/Makefile b/databases/pgcluster/Makefile
index 2f56d37f77bc..59c88427150f 100644
--- a/databases/pgcluster/Makefile
+++ b/databases/pgcluster/Makefile
@@ -6,7 +6,7 @@
PORTNAME= pgcluster
PORTVERSION= 1.0.7
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_PGSQL}
MASTER_SITE_SUBDIR= source/OLD/v${BASEPGSQL}
@@ -26,6 +26,8 @@ WRKSRC?= ${WRKDIR}/postgresql-${BASEPGSQL}
USE_GMAKE= yes
GNU_CONFIGURE= yes
USE_AUTOTOOLS= autoconf
+USERS= pgsql
+GROUPS= pgsql
MAKE_FLAGS= # empty
MAKEFILE= # empty
CONFLICTS= postgresql-*
@@ -92,10 +94,6 @@ post-build:
${MAKE} WRKSRC=${WRKSRC}/src/pgcluster/pglb AUTOCONF=${AUTOCONF} do-build
.endif
-pre-install:
- @${SETENV} PKG_PREFIX=${PREFIX} \
- ${SH} ${PKGINSTALL} ${PORTNAME} PRE-INSTALL
-
post-install:
.if !defined(WITHOUT_PGCLUSTER_REPLICATION)
${MAKE} WRKSRC=${WRKSRC}/src/pgcluster/pgrp do-install
diff --git a/databases/pgcluster/pkg-install b/databases/pgcluster/pkg-install
deleted file mode 100644
index e2cf87838347..000000000000
--- a/databases/pgcluster/pkg-install
+++ /dev/null
@@ -1,65 +0,0 @@
-#! /bin/sh
-
-# Original: FreeBSD: ports/databases/postgresql7/pkg-install,v 1.8 2003/12/04 12:00:48 seanc Exp
-
-PATH=/bin:/usr/sbin
-
-DB_DIR=${PKG_PREFIX}/pgsql
-
-backupwarning() {
- echo "
- =========== BACKUP YOUR DATA! =============
- As always, backup your data before
- upgrading. If the upgrade leads to a higher
- minor revision (e.g. 7.3.x -> 7.4), a dump
- and restore of all databases is
- required. This is *NOT* done by the port!
-
- Press ctrl-C *now* if you need to pg_dump.
- ===========================================
-"
- sleep 5
-}
-
-case $2 in
-PRE-INSTALL)
-# backupwarning
- USER=pgsql
- GROUP=${USER}
- UID=70
- GID=${UID}
-
- if pw group show "${GROUP}" 2>/dev/null; then
- echo "You already have a group \"${GROUP}\", so I will use it."
- else
- if pw groupadd ${GROUP} -g ${GID}; then
- echo "Added group \"${GROUP}\"."
- else
- echo "Adding group \"${GROUP}\" failed..."
- exit 1
- fi
- fi
-
- if pw user show "${USER}" 2>/dev/null; then
- echo "You already have a user \"${USER}\", so I will use it."
- else
- if pw useradd ${USER} -u ${UID} -g ${GROUP} -h - \
- -d ${DB_DIR} -c "PostgreSQL Daemon"
- then
- echo "Added user \"${USER}\"."
- else
- echo "Adding user \"${USER}\" failed..."
- exit 1
- fi
- fi
-
- if ! [ -x ~pgsql ] ; then
- mkdir -p ${DB_DIR}
- chown pgsql:pgsql ${DB_DIR}
- fi
- ;;
-
-BACKUPWARNING)
-# backupwarning
- ;;
-esac