#!/bin/sh PATH=/bin:/usr/sbin if [ -z "${SYSCONF_DIR}" ]; then SYSCONF_DIR=${PKG_PREFIX}/etc/quagga fi if [ -z "${LOCALSTATE_DIR}" ]; then LOCALSTATE_DIR=/var/run/quagga fi if [ -z "${ENABLE_USER}" ]; then ENABLE_USER=quagga fi if [ -z "${ENABLE_GROUP}" ]; then ENABLE_GROUP=quagga fi case $2 in POST-INSTALL) UID=101 GID=${UID} if pw group show "${ENABLE_GROUP}" 2>/dev/null; then echo "You already have a group \"${ENABLE_GROUP}\", so I will use it." else if pw groupadd ${ENABLE_GROUP} -g ${GID}; then echo "Added group \"${ENABLE_GROUP}\"." else echo "Adding group \"${ENABLE_GROUP}\" failed." exit 1 fi fi if pw user show "${ENABLE_USER}" 2>/dev/null; then echo "You already have a user \"${ENABLE_USER}\", so I will use it." if pw usermod ${ENABLE_USER} -d ${SYSCONF_DIR} then echo "Changed home directory of \"${ENABLE_USER}\" to \"${SYSCONF_DIR}\"" else echo "Changing home directory of \"${ENABLE_USER}\" to \"${SYSCONF_DIR}\" failed..." exit 1 fi else if pw useradd ${ENABLE_USER} -u ${UID} -g ${ENABLE_GROUP} -h - \ -d ${SYSCONF_DIR} -s /sbin/nologin -c "Quagga Daemon" then echo "Added user \"${ENABLE_USER}\"." else echo "Adding user \"${ENABLE_USER}\" failed..." exit 1 fi fi mkdir ${LOCALSTATE_DIR} if [ ! -d ${LOCALSTATE_DIR} ]; then echo "Creating \"${LOCALSTATE_DIR}\" failed." exit 1 fi chown -R ${ENABLE_USER}:${ENABLE_GROUP} ${LOCALSTATE_DIR} if [ ! -d ${SYSCONF_DIR} ]; then mkdir -p ${SYSCONF_DIR} fi if [ ! -d ${SYSCONF_DIR} ]; then echo "Creating \"${SYSCONF_DIR}\" failed." exit 1 fi chown -R ${ENABLE_USER}:${ENABLE_GROUP} ${SYSCONF_DIR} ;; esac files/elliptic-6.5.3 FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
path: root/www/rekonq
Commit message (Expand)AuthorAgeFilesLines
* Update to 2.4.2makc2014-01-173-26/+4
* Update to 2.4.0makc2013-12-143-4/+7
* - Support stagingmakc2013-10-231-17/+8
* Add NO_STAGE all over the place in preparation for the staging support (cat: ...bapt2013-09-211-0/+1
* - Remove MAKE_JOBS_SAFE variableak2013-08-151-1/+0
* Update to 2.3.2makc2013-07-143-3/+10
* Update to 2.3.1makc2013-07-123-6/+6
* Update to 2.3.0makc2013-05-113-4/+8
* Fix typo in option spellingmakc2013-04-021-4/+4
* Enable Nepomuk support now, when we have KDE 4.10makc2013-03-271-4/+10
* - Update to 2.2.1makc2013-03-212-5/+5
* - Update to 2.2makc2013-03-083-4/+26
* Update to 2.1makc2013-02-044-57/+10
* Update to 1.3makc2012-10-293-3/+10
* Update to 1.2makc2012-10-092-8/+3
* Update to 1.1makc2012-08-293-8/+5
* Update to 1.0makc2012-07-233-15/+82
* - Convert USE_QT_VER=4 and QT_COMPONETS to USE_QT4miwi2012-06-061-2/+1
* - update png to 1.5.10dinoex2012-06-011-0/+1
* Update to 0.9.2.rakuco2012-05-27