#! /bin/sh # $FreeBSD$ PATH=/bin:/usr/sbin DB_DIR=${PKG_PREFIX}/pgsql case $2 in PRE-INSTALL) echo " =========== BACKUP YOUR DATA! ============= As always, backup your data before upgrading. If the upgrade leads to a higher minor revision (e.g. 7.1.x -> 7.2), 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 3 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 ;; esac it.cgi/freebsd-ports-gnome/'>freebsd-ports-gnome
FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
path: root/comms/locator
Commit message (Expand)AuthorAgeFilesLines
* MASTER_SITES cleanup.mat2015-05-141-1/+1
* - Change MAINTAINER on these hamradio ports to new ports group hamradio@db2014-11-231-1/+1
* Cleanup plistbapt2014-10-201-1/+0
* Add OPTIONS_DEFINE=DOCS for ports with %%PORTDOCS%% in the plist.adamw2014-07-161-0/+2
* - Enable stagedb2013-12-302-11/+6
* Add NO_STAGE all over the place in preparation for the staging support (cat: ...bapt2013-09-211-5/+2
* - remove maintainer tags from pkg-descreadler2011-10-231-3/+0
* - Unbreak clang builddb2011-07-012-5/+29
* - Get Rid MD5 supportmiwi2011-03-201-1/+0
* - Add a CONFLICTS with the new version of wwldb2007-10-301-0/+1
* - hamradio was inadvertantly left out of CATEGORIESdb2007-09-301-1/+1
* - Add even more ports to the new "geography" categorylaszlof2007-07-231-1/+1
* Change my MAINTAINER: line in Makfile to db@FreeBSD.orgdb2007-01-201-1/+1
* SHA256ifyedwin2006-01-221-0/+1
* - Fix typopav2005-07-061-1/+1