#! /bin/sh # $FreeBSD$ 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.2.x -> 7.3), 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 name='id' value='28e656942fa7f509c736af619e5c9d7e55f96e19'/> FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
path: root/mail/dcc-dccd
Commit message (Expand)AuthorAgeFilesLines
* Fix tripple quoting that will cause problems when the ports tree is switched ...eadler2013-03-221-6/+2
* Move the rc.d scripts of the form *.sh.in to *.indougb2012-08-065-9/+12
* - Update to 1.3.141scheidell2012-02-162-6/+11
* In the rc.d scripts, change assignments to rcvar to use thedougb2012-01-144-4/+4
* - Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)amdmi32011-09-241-1/+0
* - Use USERS and GROUPScrees2011-07-053-50/+7
* - Update to 1.3.140miwi2011-06-283-4/+7
* Begin the process of deprecating sysutils/rc_subr bydougb2010-03-274-4/+4
* - Use SUB_FILES to Update pkg-install & deinstallpgollucci2010-01-314-21/+9
* - Update to 1.3.116sylvio2009-11-132-4/+4
* - Update to 1.3.115miwi2009-08-292-4/+4
* - Update to 1.3.113amdmi32009-08-043-4/+5
* - Update to 1.3.108dhn2009-06-166-23/+73
* - Update to 1.3.103dhn2009-03-283-6/+7
* - Update to 1.3.102beat2009-02-132-5/+5